Xcode 的组织标识符是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34978398/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:27:23  来源:igfitidea点击:

What is Xcode's Organization Identifier?

xcodeapp-store

提问by Rafael

I have some questions around the Organization Identifier when creating a new project in Xcode.

在 Xcode 中创建新项目时,我对组织标识符有一些疑问。

Creation of new project in Xcode

在 Xcode 中创建新项目

With a quick search, I have found that the Organization Identifier is used to identify your app.

通过快速搜索,我发现组织标识符用于识别您的应用程序。

My questions are the following:

我的问题如下:

  1. Should I choose a unique identifier between my apps or between developers?
  2. Usually, the comat the beginning of the identifier is used to identify that the following word describes a company? Is that something to do with the domain-notation like org, netetc?
  3. Finally, any suggestions when creating this identifier? What problems can this identifier create if not set properly in the first place?
  1. 我应该在我的应用程序之间还是在开发人员之间选择唯一标识符?
  2. 通常,com标识符开头的 用于标识以下单词描述的公司?那是什么做的域符号一样orgnet等?
  3. 最后,在创建此标识符时有什么建议吗?如果一开始没有正确设置,这个标识符会产生什么问题?

采纳答案by Rafael

The Organization Identifier needs to be unique. Usually, is the developer's website in reverse DNS notation. That is, if the developer's website is example.com, then the Organization Identifier will become com.example.

组织标识符需要是唯一的。通常,是使用反向 DNS 表示法的开发人员网站。也就是说,如果开发者的网站是example.com,那么组织标识符就会变成com.example

According to Apple, this Bundle Identifier should be unique among the apps on the App Store (if you want to distribute your app on Apple's App Store). Therefore, one way to ensure this uniqueness is to choose a unique Organisation Identifier.

根据 Apple 的说法,这个 Bundle Identifier 在 App Store 上的应用程序中应该是唯一的(如果您想在 Apple 的 App Store 上分发您的应用程序)。因此,确保这种唯一性的一种方法是选择唯一的组织标识符。

Creating two versions of your application (iOS, macOS) then the identifier needs also to be different, and one way is to append .Macor .iOSbefore the App name in the Identifier field.

创建两个版本的应用程序(iOS、macOS),那么标识符也需要不同,一种方法是在标识符字段中附加.Mac.iOS在应用程序名称之前。

Once the App is distributed to the App Store, the identifier can't be changed.

应用发布到应用商店后,标识符将无法更改。

Finally, for the last question, I can't see any problems with this part. Choosing a good, unique and nice looking Organisation Identifier is more than enough.

最后,对于最后一个问题,我看不出这部分有什么问题。选择一个好的、独特的和漂亮的组织标识符就足够了。

References

参考