aps-环境永远是发展 [英] aps-environment is always development
问题描述
我已经在启用 APNS 的情况下创建了应用程序 ID,并且我配置了开发和生产证书
I have created the app id with APNS enabled and I configured both development and production certificate
现在,当我创建权利时,它总是显示开发,即使我将配置文件更改为 iTunes 部署,权利也会显示为开发
Now when I create entitlements it is always displaying development even If I change the Provisioning profile to iTunes deployment also the entitlements is displayed as development
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
</dict>
</plist>
推荐答案
您不能在调试/开发中使用生产证书.即使你这样做,那么,当你存档"时,Xcode 会自动将它设置为生产(Apple 参考).当您尝试将您的应用提交到 iTunes Connect 以进行 TestFlight/Review 或 Adhoc 部署时,您会看到这一点.
You can't use a production certificate in debug/development. Even if you do it, then, when you 'Archive', Xcode will automatically set it to production (Apple reference). You can see this when you try to submit your app to iTunes connect for TestFlight/Review or for Adhoc deployment.
Xcode 8:
Xcode 9:
这篇关于aps-环境永远是发展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!