The executable gets signed with invalid entitlements in Xcode

前端 未结 30 1727
走了就别回头了
走了就别回头了 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:16

    I had a similar issue when I updated to Xcode 10, I solved the issue going to File > Project Setting, in the "New Build System" option select "Legacy Build System". This made the trick for me, I hope this helps to someone.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-29 04:17

    I solve this by deleting all "PROVISIONING_PROFILE=..." and "PROVISIONING_PROFILE[sdk=iphoneos*]" = ... in project.pbxproj and restart Xcode and set provisioning profiles for the target again.

    0 讨论(0)
  • 2020-11-29 04:20

    (Xcode 6.1)

    The problem for me was in my Build Settings; I had my Provisioning Profile set to an App Store Production Profile when trying to deploy to a device. I switched it to 'Automatic' and it resolved my issue. You could also set it to your Dev Provision Profile.

    I also have 2 Certificates, so I added my second Certificate to my dev provision. Others probably won't have this problem.

    0 讨论(0)
  • 2020-11-29 04:22

    No solution worked for me until I've checked and set app Tests target to same provisioning profile as main app. Or if you are using automatic singing make sure you have same team selected in Tests target.

    0 讨论(0)
  • 2020-11-29 04:23

    I had to match the app's capabilities in Xcode5 under

    Capabilities -> 
    In-App purchase -> ON
    Game Center -> ON
    

    with that in the provisoning profile.

    0 讨论(0)
提交回复
热议问题