The executable was signed with invalid entitlements

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

    I was trying to add iCloud support to my existing app, but found that after adding entitlements and configuring iCloud, my app would no longer debug.

    I realised that my generic iOS development certificate had a different APPID from the app I was working on. So to fix it, instead of using my generic certificate I created a specific development certificate for that APPID.

    I refreshed my provisioning profile in XCode, cleaned out the app, disconnected my device, restarted XCOde and connected device and ran, and it now works a treat!

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

    Code signing entitlements are no longer necessary for Ad Hoc builds in Xcode 4 - see details notes in Apple Technical Note TN2250

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

    I have just had an exciting three hours battling with this. I have just upgraded a project to 4.2 and for some reason it just wouldn't work.

    I eventually removed the Entitlements.plist file and then created a new one.

    File > New File > Code Signing > Entitlement

    Name the file Entitlements.plist

    Make sure it's in the Resources group in xCode.

    It didn't put in the get-task-allow BOOL type in the Entitlements.plist file. I added it, checked it, saved it, unchecked it, saved it. This made me feel better.

    I then removed the Adhoc and Release profiles I had created. Re-downloaded them from the Provisioning Portal and droped them back into the xCode organizer.

    I then went into Build Settings and made sure the correct profiles were assigned to the Debug and Release profiles.

    I then changed the to Release / Device. Hit the build button and it worked.

    I have no idea why.

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

    For me that solved it: https://coderwall.com/p/-ckobg

    1. Open Project.xcodeproj > project.pbxproj
    2. Remove all lines like these:
      1. PROVISIONING_PROFILE = ...
      2. "PROVISIONING_PROFILE[sdk=iphoneos*]" = ...
      3. CODE_SIGN_IDENTITY = ...
      4. "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ...
    3. Set provisioning profiles & code signings for the target again
    0 讨论(0)
  • pJosh, this might help understanding. In my case, my Team Provisioning Profile was expiring (the Provisioning Portal indicated it is managed by XCode), as well as the device testing profile for the app. (I still don't know why, but the portal had a "Renew" button next to the team profile, but it wouldn't do anything when I clicked it.)

    So, I deleted the profiles about to expire, then in XCode go to Organizer (Command-Shift-2), under Library / Provisioning Profiles, I deleted the expiring ones. Then click "Refresh" at the bottom, enter my Apple ID, and it renewed the expiring ones.

    Finally, on my Target, I went to Build Settings, Code Signing, and made sure to select the provisioning profile. Voila, now it builds to my device.

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

    Check if you're device is included in the provisioning profile.

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