aps-environment始终是发展 [英] aps-environment is always development

查看:368
本文介绍了aps-environment始终是发展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经启用了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会自动将其设置为生产,当您尝试将应用程序提交到iTunes Connect for TestFlight / Review或进行adHoc部署时,您可以看到此信息。

You can't use production certificate in debug/development. When you do and 'Archive' Xcode automatically set it to production and you can see this when you try to submit your app to iTunes connect for TestFlight/Review or for adHoc deployment.

Xcode 8:

Xcode 8:

Xcode 9:

Xcode 9:

这篇关于aps-environment始终是发展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆