Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application failed codesign verification due to invalid entitlements

I've googled the crap out of this and can't find any solutions. It happened to me a few months ago as well when I was updating a different app.

I'm running Xcode 4.2.

Build log:

Validate /Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app
cd "/Users/chrismanahan/Downloads/ParseStarterProject 2"
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app

warning: Application failed codesign verification.  The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app/ThoughtSpreader
codesign_wrapper-0.7.10: using Apple CA for profile evaluation
Illegal entitlement key/value pair: com.apple.developer.ubiquity-kvstore-identifier, 894BCL9P67.com.manahan.thoughtspreader
Illegal entitlement key/value pair: com.apple.developer.ubiquity-container-identifiers, <CFArray 0x10d10aa10 [0x7fff7d96cea0]>{type = mutable-small, count = 1, values = (
0 : <CFString 0x10d10a860 [0x7fff7d96cea0]>{contents = "894BCL9P67.com.manahan.thoughtspreader"}
)}
AssertMacros: filter_entitlements(entitlements_whitelist, entitlements_requested, allowable_entitlements),  file: codesign_wrapper.c, line: 932
- (null)
like image 207
Chris Avatar asked Nov 17 '11 04:11

Chris


1 Answers

I bet the key (pardon the pun?) to your problem is here:

Illegal entitlement key/value pair: com.apple.developer.ubiquity-kvstore-identifier, 894BCL9P67.com.manahan.thoughtspreader
Illegal entitlement key/value pair: com.apple.developer.ubiquity-container-identifiers, <CFArray 0x10d10aa10 [0x7fff7d96cea0]>{type = mutable-small, count = 1, values = (...

Is your app id still 894BCL9P67.com.manahan.thoughtspreader?

Or have these keys changed / need to be updated? (per the instructions here?)

That link suggests you need the team id and not your app id bundle seed. YMMV. (Apple documents those keys here, suggests the same thing. I'm guessing you're using iCloud, or set your project up to use it initially.)

For anyone not familiar w/ iCloud setup, you can change the value of those keys here:

iCloud entitlements

That settings pane is part of the target summary, under your project file. Select the target you want and the Summary 'tab', like so (then scroll to the bottom):

Summary page

Apple's docs for configuring these are here.

like image 50
Ben Mosher Avatar answered Oct 20 '22 12:10

Ben Mosher