The executable gets signed with invalid entitlements in Xcode

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

    If this problem same me.You maybe forget set team in unittest in your target project try do this picture

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

    Simple clean-and-build seemed to fix it for me.

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

    It seems to be a little bug inside Xcode. Try to archive it anyway, even there is a problem with entitlements. If your entitlements are fine, it will be uploaded without any problem. Apple accept it, and your app will be published to the AppStore.

    I did it, and it worked:)

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

    In my case APNS certificate is expired, remove the expired certificate and regenerate the provisioning profile fixes the issue.

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

    For those who have the same problem with Provisioning Profile Automatic in the targets Build Settings:

    Be very careful when you edit your targets entitlements file! This might break the correspondence to the automatically generated provisioning profile, and you will get this error.

    In my case, I had to use temporarily the iCloud production containers with debug builds. To do so, I inserted

    <key>com.apple.developer.icloud-container-environment</key>
    <string>Production</string>  
    

    in the entitlements file and this worked!
    To remind me that I had later to remove these lines, I further inserted simply the following comment:

    <key>TODO</key>
    <string>The entry below must be out commented or deleted to use the iCloud development environment.</string>  
    

    And this broke the correspondence, and created the error.

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

    xcode 6.1 (HealthKit sample)

    I was getting this error due to HealthKit integration: I had enabled In-App Purchase, Game Center and Healkit solved my issue.. The same I have enabled in Provision profile.

    enter image description here

    enter image description here

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