ios - iOS 项目中的 bundle identifier 是什么意思?

标签 ios

当我使用命令行工具模板时,它在向导中有一个包标识符。包标识符是什么意思?这类似于命名空间吗?

最佳答案

根据 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/

相关文章:

iphone - 是否可以删除应用程序中设置的所有 NSUserDefaults?

ios - 为什么 waitForDuration : method only works once in the update method in sprite kit?

ios - 如何手动设置在应用程序委托(delegate)中显示哪个 Storyboard View

ios - 识别慢速代码以优化构建时间

ios - React Native - 获取当前组件的高度,反向 ScrollView

ios - 当所述行靠近表格 View 的底部时,ScrollToRow 不起作用

ios - ScrollView 中基于平移手势的移动 View Controller

ios - 当我收到 Parse 的推送通知时,如何播放声音?

ios - 获取非空智能相册

ios - 禁用 UIScrollView 向特定方向拖动事件并将事件发送到 super