The executable gets signed with invalid entitlements in Xcode

前端 未结 30 1831
走了就别回头了
走了就别回头了 2020-11-29 03:43

I got this error with Xcode 5 when I try to run the app on my device.

The executable was signed with invalid entitlement

It work

30条回答
  •  执笔经年
    2020-11-29 04:17

    The solution for latest Xcode:

    First you have to check what is enabled in your Member center for your specific AppID:

    enter image description here

    Then in your appropriate target in Xcode you have to enabled the same capabilities: In this case: App Group, Game Center, In-App Purchase. All of them have to be enabled in your target in Xcode.

    enter image description here

    However it doesn't matter for DEBUG mode:

    enter image description here

    it very matters for your RELEASE mode: enter image description here

    Note that Game Center and In-App Purchase are enabled by default in Member Center but are disabled in Xcode's target.

提交回复
热议问题