no valid 'aps-environment' entitlement string

感情迁移 提交于 2019-12-04 03:35:08

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.

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/cloud/latest/marketingcs_gs/OMCFA/ios/distribution-pem/

It took me hours to solve it. Given that someone is using custom scripts to sign and pack while others are using xcode itself, there's only one way to check what ended in your app. Dump you entitlements with

codesign --display --entitlements :- path/to/MyApp.app

and check aps-environment and application-identifier.

You should also check that hose entries are in your profile and that they match

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!