How to fix “no valid 'aps-environment' entitlement string found for application” in Xcode 4.3?

前端 未结 23 2176
长情又很酷
长情又很酷 2020-11-27 10:43

I\'ve been trying very very hard to create a simple simple iOS app which can recieve push notifications. My only reason for doing this is to establish a procedure for some

23条回答
  •  情书的邮戳
    2020-11-27 11:09

    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.

提交回复
热议问题