The executable was signed with invalid entitlements

前端 未结 19 2617
花落未央
花落未央 2020-11-28 04:09

I am having a problem with ad-hoc distribution on my iPhone. I have developed an application with SDK 3.0. I have a developer\'s license. I have added certificates and provi

相关标签:
19条回答
  • 2020-11-28 04:34

    John's answer is 99% correct. I found that (at least in my configuration), you have to open the Build settings inspector for the PROJECT. The build settings for the target do not contain "Code Signing Entitlements". Perhaps this doesn't make a difference if you have only one target in your project. But if you have multiple targets, you need to go to the project build settings. In any case, after doing what John said, my ad-hoc distribution build worked perfectly.

    0 讨论(0)
  • 2020-11-28 04:34

    Just got this same error code. It seems there are different things that cause this and therefore different ways to fix it.

    In my case, I had two different devices with the same name (an iPhone 4 and an iPhone 4S). Changing the name of one of them fixed this error completely for me...

    0 讨论(0)
  • 2020-11-28 04:38

    I also spent several hours fighting with this as well. The fix is real simple. Edit your Entitlements.plist file in the root of your project's directory. Find the line that says <key>get-task-allow</key>. Underneath it should be <false/>. Change that to <true/>.

    0 讨论(0)
  • 2020-11-28 04:38

    Had this issue occur when everything seemed to be setup correctly, build setting were pointing to correct provisioning profile, code signing was properly setup, etc.

    Issue occurred because I had just created a new scheme and hadn't regenerated my CocoaPods for the new configurations. As you can see from the image, the new ad-hoc configuration is pointing to the Pods.production configuration, instead of a Pods.ad-hoc configuration (and test respectively)

    Demonstrating a mis-match of ad-hoc configuration and scheme configuration

    To fix:

    • Set the offending configuration to None -- cocoapods wouldn't generate the configs unless I did this
    • Close XCode
    • Run pod install
    • Re-open XCode and set the new scheme's configurations to the newly generated configurations.

    That's it!

    0 讨论(0)
  • 2020-11-28 04:41

    I have found that "get-task-allow" needs to be checked for Development builds but unchecked for Distribution builds. The easiest way to accomplish this (AFAIK) is to have two entitlements files in your project: Entitlements.plist and EntitlementsDebug.plist - and to reference the proper one in the build project settings for the various configurations in your project.

    0 讨论(0)
  • 2020-11-28 04:41

    I had not agreed to the new updated licensed agreement from apple.

    Briefly : Please log in to your developer's account -> profile's -> review -> read the agreement or get your lawyer read it for you -> agree (at your own will) -> and again click profile's to check the status of your profile.

    In my scenario the valid code signing entity was not showing up. When i followed the above procedure it was visible and i was able to run the app on the device and/or create the iPA file without much difficulty.

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