简体   繁体   English

需要强制Xcode 5不使用通配符配置文件

[英]Need to force Xcode 5 to not use wildcard provisioning profile

I'm trying to use the new Automatic Configuration in Xcode 5 and it seems that when I run builds on my iPhone it is downloading the wildcard provisioning profile and using that to run the app. 我正在尝试在Xcode 5中使用新的自动配置,似乎当我在我的iPhone上运行构建时,它正在下载通配符配置文件并使用它来运行应用程序。 This is no good because my app uses push notifications and the wildcard will not have the correct entitlements to register for push notifications. 这不好,因为我的应用程序使用推送通知,并且通配符将没有正确的权利来注册推送通知。

Is there a way to specify to use the provisioning profile for the qualified app id so I can test push notifications? 有没有办法指定使用配置文件来获取合格的应用程序ID,以便我可以测试推送通知?

Strategies I have considered: 我考虑过的策略:

  • Delete wildcard app id - You cannot do this 删除通配符应用程序ID - 您无法执行此操作
  • Delete wildcard provisioning profile - Xcode will recreate the wildcard provisioning profile 删除通配符配置文件 - Xcode将重新创建通配符配置文件
  • Specify the provisioning profile explicitly in the target's build settings 在目标的构建设置中明确指定配置文件
    1. I don't know how to determine the explicit name with Xcode 5. I could download and open the profile in a text editor, but that can't possibly be the right way to do this 我不知道如何使用Xcode 5确定显式名称。我可以在文本编辑器中下载并打开配置文件,但这不可能是正确的方法来执行此操作
    2. If I specify the provisioning profile, I will need to update it every time a new profile is generated (add a new device, profile expires, signing certificate expires). 如果我指定配置文件,我将需要在每次生成新配置文件时更新它(添加新设备,配置文件过期,签名证书过期)。 This defeats the purpose of automatic configuration. 这违背了自动配置的目的。
  • I've poked around Xcode looking for such a setting and haven't seen anything useful 我在Xcode周围寻找这样的设置,并没有看到任何有用的东西
  • I have followed the steps here (for configuring Push Notifications) and when I refresh my provisioning profiles they are not updated. 我已按照此处的步骤(用于配置推送通知),当我刷新配置文件时,它们不会更新。

Any ideas? 有任何想法吗?

Xcode was not downloading the provisioning profiles because it did not find any app id MATCHES. Xcode没有下载配置文件,因为它没有找到任何app id MATCHES。 It did not find any matches because the capabilities in the "Certificates, Identifiers, Devices" website did not match the capabilities listed in the project in Xcode. 它找不到任何匹配项,因为“证书,标识符,设备”网站中的功能与Xcode中项目中列出的功能不匹配。 Because the app identifier has In-App Purchase and Game Center enabled on the website but once I enabled it in the project it automatically downloaded the relevant provisioning profiles. 由于应用程序标识符在网站上启用了应用内购买和游戏中心,但是一旦我在项目中启用它,它就会自动下载相关的配置文件。

Hope this helps someone else. 希望这有助于其他人。

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

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