当我使用命令行工具模板时,它在向导中有一个包标识符。包标识符是什么意思?这类似于命名空间吗?
最佳答案
根据 Apple docs :
捆绑标识符可让 iOS 和 macOS 识别您应用的任何更新。您的 bundle ID 必须在 Apple 注册并且对于您的应用程序是唯一的。 Bundle ID 特定于应用程序类型(iOS 或 macOS)。 iOS 和 macOS 应用不能使用相同的包 ID。
编辑
从 Xcode 11.4 开始,如果您想支持通用购买功能,您可以为 iOS 和 macOS 应用程序使用相同的包标识符。
来自 Release Note
Xcode 11.4 supports building and distributing macOS apps as a universal purchase. To distribute your macOS app as a universal purchase, specify the same bundle identifier as your iOS app in the Xcode template assistant when creating a new project. If you have an existing project, edit its bundle identifier in the Project Editor.
关于ios - iOS 项目中的 bundle identifier 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11347470/