简体   繁体   English

Bundle Identifier和Product Bundle Identifier有什么区别?

[英]What is the difference between Bundle Identifier and Product Bundle Identifier?

I want to know the difference between the bundle Identifier (in info.plist ). 我想知道bundle Identifier (在info.plist )之间的区别。 And the Product Bundle Identifier (in the Build Setting -> Packaging -> Product Bundle Identifier ). 和产品Bundle Identifier (在Build Setting -> Packaging -> Product Bundle Identifier )。

Thanks in advance . 提前致谢 。

BUNDLE IDENTIFIER is the namespace of your app, must be unique in the App Store world BUNDLE IDENTIFIER是您的应用程序的命名空间,在App Store世界中必须是唯一的

PRODUCT_BUNDLE_IDENTIFIER is a variable in your project.pbxproj file. PRODUCT_BUNDLE_IDENTIFIER是project.pbxproj文件中的变量。 Apple says from the Xcode 7 release notes that PRODUCT_BUNDLE_IDENTIFIER is now "the recommended place to set the Bundle Identifier for a target." Apple在Xcode 7发布说明中指出,PRODUCT_BUNDLE_IDENTIFIER现在是“为目标设置Bundle Identifier的推荐位置”。 So if you're using BUNDLE_IDENTIFIER anyplace else in your project, you have to change it to PRODUCT_BUNDLE_IDENTIFIER to keep things in sync. 因此,如果您在项目中的任何其他位置使用BUNDLE_IDENTIFIER,则必须将其更改为PRODUCT_BUNDLE_IDENTIFIER以保持同步。

Bundle Identifier - 捆绑标识符 -

This is unique identifier for your application. 这是您的应用程序的唯一标识符。 Operating System uses this to uniquely identify your app. 操作系统使用它来唯一标识您的应用程序。 On App Store, every app has this as unique. 在App Store上,每个应用都将此作为唯一。

CFBundleIdentifier (String - iOS, OS X) uniquely identifies the bundle. CFBundleIdentifier(String - iOS,OS X)唯一标识捆绑包。 Each distinct app or bundle on the system must have a unique bundle ID. 系统上的每个不同应用或捆绑包都必须具有唯一的捆绑ID。 The system uses this string to identify your app in many ways. 系统使用此字符串以多种方式识别您的应用。 For example, the preferences system uses this string to identify the app for which a given preference applies; 例如,首选项系统使用此字符串来标识应用给定首选项的应用程序; Launch Services uses the bundle identifier to locate an app capable of opening a particular file, using the first app it finds with the given identifier; Launch Services使用包标识符来查找能够打开特定文件的应用程序,使用它找到的第一个应用程序和给定的标识符; in iOS, the bundle identifier is used in validating the app's signature. 在iOS中,包标识符用于验证应用程序的签名。

The bundle ID string must be a uniform type identifier (UTI) that contains only alphanumeric (AZ,az,0-9), hyphen (-), and period (.) characters. 捆绑ID字符串必须是统一类型标识符(UTI),其仅包含字母数字(AZ,az,0-9),连字符( - )和句点(。)字符。 The string should also be in reverse-DNS format. 该字符串也应采用反向DNS格式。 For example, if your company's domain is Ajax.com and you create an app named Hello, you could assign the string com.Ajax.Hello as your app's bundle identifier. 例如,如果您公司的域名是Ajax.com并且您创建了名为Hello的应用程序,则可以将字符串com.Ajax.Hello指定为应用程序的包标识符。

Product Bundle Identifier - 产品包标识符 -

This is a variable in Xcode Project File, form XCode 7.0 Apple recommends to set Product Bundle Identifier and then user $(PRODUCT_BUNDLE_IDENTIFIER) in CFBundleIdentifier in Info.plist 这是Xcode项目文件中的变量,形式为XCode 7.0 Apple建议在Info.plist中的CFBundleIdentifier中设置Product Bundle Identifier,然后设置用户$(PRODUCT_BUNDLE_IDENTIFIER)

The new build setting Product Bundle Identifier (PRODUCT_BUNDLE_IDENTIFIER) is the recommended place to set the Bundle Identifier for a target. 新构建设置Product Bundle Identifier(PRODUCT_BUNDLE_IDENTIFIER)是为目标设置Bundle Identifier的推荐位置。 The target's Info.plist should be configured to use this build setting by referencing it as $(PRODUCT_BUNDLE_IDENTIFIER) in the value for the CFBundleIdentifier key. 应将目标的Info.plist配置为使用此构建设置,方法是在CFBundleIdentifier键的值中将其引用为$(PRODUCT_BUNDLE_IDENTIFIER)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 $(PRODUCT_BUNDLE_IDENTIFIER) 不是有效的捆绑标识符 - $(PRODUCT_BUNDLE_IDENTIFIER) is not a valid bundle identifier 使用捆绑标识符而不是产品捆绑标识符与Xcode 7 - Use Bundle Identifier instead of Product Bundle Identifier with Xcode 7 WatchKit:捆绑包标识符和WKAppBundleIdentifer之间有什么区别,为什么它会导致App组无法正常工作? - WatchKit: What is the difference between bundle identifier and WKAppBundleIdentifer and why can it cause App groups to not work? $(PRODUCT_BUNDLE_IDENTIFIER)和适用于iOS的URL方案 - $(PRODUCT_BUNDLE_IDENTIFIER) and URL Scheme for iOS 如何在Xcode中更改$(PRODUCT_BUNDLE_IDENTIFIER)? - How to change $(PRODUCT_BUNDLE_IDENTIFIER) in Xcode? 捆绑包标识符和产品名称中的区分大小写 - Case sensitivity in bundle Identifier and the product name Xcode - 更改包标识符,但不更改产品名称 - Xcode - change bundle identifier but not product name 捆绑包标识符与先前的捆绑包标识符不同 - Bundle Identifier differs from prior bundle identifier 缺少捆绑包标识符。 x 没有包标识符。 在构建设置编辑器中为 PRODUCT_BUNDLE_IDENTIFIER 添加一个值 - Bundle identifier is missing. x doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor iOS中包标识符的正确格式是什么? - what is correct format of bundle identifier in iOS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM