简体   繁体   English

XCode-Bundle标识符前缀混淆

[英]XCode-Bundle Identifier prefix confusion

I am brand new to push notifications and I am having some trouble setting up my provisioning profile. 我是推送通知的新手,但是在设置配置文件时遇到了一些麻烦。 The bundle id for my app is com.mycompany.myapp in my info.plist file. 我的应用程序的捆绑包ID是info.plist文件中的com.mycompany.myapp。 However, when I am creating my development provisioning profile to test push notifications the drop-down menu 'App ID:' only has an option that reads: 'PREFIX.com.mycompany.myapp' where PREFIX is 10 characters numbers and letters. 但是,当我创建开发配置文件以测试推送通知时,下拉菜单“应用程序ID:”只有一个选项显示为:“ PREFIX.com.mycompany.myapp”,其中PREFIX是10个字符的数字和字母。 When I try to add my provisioning profile to my application in the Organizer, the downloaded provisioning profile file is greyed out, which prevents me from setting up push notifications. 当我尝试将配置文件添加到管理器中的应用程序时,下载的配置文件文件显示为灰色,这使我无法设置推送通知。 My question is: do I need to change the bundle identifier in my info.plist to include the prefix as shown in the 'APP ID' drop-down menu in my provisioning profile? 我的问题是: 我是否需要在我的info.plist中更改捆绑标识符,以包括预配置文件中“ APP ID”下拉菜单中所示的前缀? If not, what else could be causing this problem? 如果没有,还有什么可能导致此问题? Sorry about the seemingly basic question, I am new to this process and don't fully understand what needs to be accomplished. 对这个看似基本的问题很抱歉,我是这个过程的新手,并不完全了解需要完成的工作。 Thanks in advance for the help. 先谢谢您的帮助。

If Bundle Identifier is in Xcode Project and Provisional Profile is the same, then Provisional profile is displayed in black color. 如果捆绑包标识符在Xcode项目中并且临时配置文件相同,则临时配置文件将以黑色显示。 If it's not the same, then it would be greyed out. 如果不相同,则将显示为灰色。

Make Sure that the Bundle identifier which you set in while creating provisional profile should be same bundle identifier is set in Xcode Project. 确保在创建临时配置文件时设置的捆绑包标识符应与Xcode Project中设置的捆绑包标识符相同。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM