The executable was signed with invalid entitlements

前端 未结 19 2759
花落未央
花落未央 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: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!

提交回复
热议问题