问题描述
我已经在 Google 和 Stack Overflow 上搜索过,但我无法解决这个问题.
I've searched on Google and Stack Overflow, but I'm unable to resolve this problem.
我的应用程序有一个 AdHoc 和 Appstore 配置文件,这两个配置文件都在我的 X Code 控制台中给出了错误没有为应用程序找到有效的‘aps-environment’权利字符串",我无法发送推送通知.到目前为止,我采取的步骤是:- 在开发门户中编辑配置文件,下载新配置文件并检查 .mobliprovision 文件.找到
My app has an AdHoc and Appstore provisioning profiles, both of which are giving the error "no valid 'aps-environment' entitlement string found for application" in my X Code console, and I'm unable to send push notifications. So far the steps I've taken are:- edited profile in development portal, downloaded new profile and inspected the .mobliprovision file. Found
aps-环境:生产获取任务允许:假
aps-environment: productionget-task-allow : false
我还是把它提交到了应用商店,它通过了验证,正在等待审核.当我在 iTunes Connect 门户中检查二进制详细信息时,我可以看到 aps-environment 也被列为生产"
I submitted it to the App store anyway, and it passed validation and it is awaiting review. When I inspect the binary detail in iTunes Connect portal, I can ses that aps-environment is listed as "production" as well
我可能做错了什么?
推荐答案
在从您使用的应用程序 ID 生成推送证书之后,您是否创建了配置文件?
Did you create the provisioning profile AFTER you generated the push certificates from the Application ID you are using?
很可能您首先创建了配置文件,然后生成了推送证书.
It is very likely you created the provisioning profile first and then generated the push certificates.
为了将来参考,PushIO 有一个方便的分步指南来创建 PEM 文件,其中包含有关在生成 PEM 证书后重新生成配置文件的警告:
For future reference PushIO has a handy step-by-step guide to creating a PEM file that includes the warning about re-generating the provisioning profile after generating the PEM certificate :
http://docs.oracle.com/云/最新/marketingcs_gs/OMCFA/ios/distribution-pem/
这篇关于没有有效的“aps-environment"权利字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!