Invalid application code verification due to invalid rights

I searched this shit and can't find any solutions. This happened to me a few months ago when I was updating another application.

I am 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) 
+6
source share
7 answers

I put the key (sorry for the pun?) So that 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 application id still 894BCL9P67.com.manahan.thoughtspreader ?

Or are these keys changed / need to be updated? (according to the instructions here ?)

This link assumes that you need the command identifier, not the seed of your application identifier. YMMV. (Apple documents these keys here , proposes the same thing. I assume that you are using iCloud or setting up your project to use it initially.)

For those unfamiliar with the w / iCloud setup, you can change the meaning of these keys here:

iCloud entitlements

This settings panel is part of the summary below your project file. Select the desired target and the Summary tab as shown below (then scroll down):

Summary page

The Apple documentation for setting them up is here .

+7
source

I also encountered such problems, and the best way to solve this problem is to create the application identifier and the Provisioning profile again β†’ delete the build folder of your application β†’ clear the project-> downlaod profile-> double click on the profile so that it automatically opens it in the keychain β†’ Update β†’ now drag and drop the new preparation profile into your project β†’ Now in your project go to the information about your project on the β€œAssembly” tab, go to the code signature identifier and select a new one.

Now go to itunes and download it through Application Loader

 Hope it helps as it did mine. :) 
+3
source

I also stumbled upon this, and what is fixed for me:

In the iPhone Dev Center, when I set up the application ID, I forgot to check the "Enable for iCloud" checkbox. Going back and turning it on, we restored the configuration profiles.

+1
source

After unreasonably upgrading to Xcode 5 and iOS 7 on my iPad and after spending several painful hours trying to narrow the place where the violating identifier came from, I had to manually delete all references to these training profiles by editing * .pbxproj in the * .xcodeproj directory. This is the only thing that worked for me.

+1
source

Whenever I encounter this error, this is because either Xcode accidentally deleted my certificates (backups, backups, backups), or I forgot to switch from the distribution certificate back to the development certificate. Go to Build Settings and make sure that you have the correct (or even existing) certificates, then clean, clean the build folder and run.

0
source

Sometimes Xcode comes across iPhone identifiers that it uses to sign your application. (and sometimes I work again after 3 cleanings,

  • Clear the key chain of obsolete certificates
  • check your project settings, you may have several iPhone distribution profiles, and maybe Xcode is choosing the wrong one. (I found that Xcode often contained links to old provisioning profiles that were deleted: I had to manually delete references to these provisioning profiles by editing the * .pbxproj file in the * .xcodeproj directory)
  • Starting with the latest versions of Xcode, training profiles can be automatically retrieved by the Xcode organizer ... it works (sometimes)
0
source

I had the same problem, and I spent many days solving it, I think it’s easier to decide to create a new project and import all my code and xib there! he solved my problem!

0
source

Source: https://habr.com/ru/post/901682/


All Articles