Checking failed application code

When you try to send an application to the application store, the following error appears. I went through the initial preparation process and was able to run the application on my phone, so I'm not sure what happened.

Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. 

EDIT: I tried to download and install the distribution profile, but I still get the error. Is there any way to associate this new profile with my application in Xcode? Thanks!

EDIT 2: Now I got the resource allocation profile from Apple and tried to compile it. Getting the error "A valid provisioning profile for this executable was not found."

+7
ios iphone xcode app-store
source share
9 answers

Check the following:

  • When creating the distribution profile, make sure that the Distribution Method is the Application Store .
  • In the project settings, go to the "Assembly" tab and make sure that Code Signature Identification is the distribution profile that you created for the App Store.
  • In the Target settings (double-click the Target icon in your project), go to the Build tab and make sure that Code Signature Identification is the distribution profile created for the App Store.

It is recommended that you have the configuration in your project settings for building AdHoc and the App Store. I found it makes life easier when the time comes for deployment.

+14
source share

To warn of an Xcode failure or an archive verification error "Error checking code with application error", see the full list of possible causes of this problem in Apple: " How to fix the error: Error checking the application code? ".

For the error "A valid preparation profile for this executable file was not found," this error usually occurs when trying to run the application on the device via Xcode, but did you mention that you are downloading the application to the store? Make sure that you follow the recommended steps to download the iOS application to the repository using the " Steps to submit the application to the App Store .

For others receiving the error โ€œCould not find a valid preparation profile for this executable file,โ€ verify that you are following Appleโ€™s recommended steps to run on the device through Xcode on the โ€œ Steps to run your application on the device through Xcode โ€ page.

+3
source share

You can either double-click the .mobileprovision file or manually copy it to ~ / Library / MobileDevice / Provisioning Profiles. Then it will appear in the settings popup in the Target settings.

+1
source share

Define a provisioning profile for Project and Active Target.

Click "Project" โ†’ "Change project settings", change the code signing object. Click "Project" โ†’ "Change active object" and change the same code signing object here.

You must be kind.!

+1
source share

Are you sure the profile profile is a distribution profile for the app store, not a / ad-hoc one development?

0
source share

This error can also be caused if you configured the rights application incorrectly. A good place to check is the warning in the Xcode Log Navigator (last page on the left tab) and make sure that there is a green check mark next to the CodeSign and Validate parameters in the build log when you archive your project.

0
source share

I had the same problem and I did this to make it work:

It turned out that the My Rightsments file was incorrectly generated.

After many trial and error, I figured out this problem. For the common sense of others, here is the correct configuration:

 application-identifier $(AppIdentifierPrefix)$(CFBundleIdentifier) com.apple.developer.ubiquity-container-identifiers Item 0 $(TeamIdentifierPrefix)$(CFBundleIdentifier) 

This confirmed the correctness. I could not find this documentation anywhere, so hopefully this helps someone else.

0
source share

Here is one solution, not listed, that turned out to be my problem (and it took me 3 days to find!). Set the archive assembly configuration for release. You can do this by going to PRODUCT โ†’ EDIT SCHEME โ†’ ARCHIVE โ†’ BUILD CONFIGURATION โ†’ SET TO RELEASE.

Good luck

0
source share

I encountered the same problem when iCloud KVStore is active:

 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.developer.icloud-container-identifiers</key> <array/> <key>com.apple.developer.ubiquity-kvstore-identifier</key> <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string> </dict> </plist> 

Xcode cannot subscribe to binary when I try to change the identifier 'com.apple.developer.ubiquity-kvstore-identifier for the main KVStore Identifier application, as described in

Configure shared key value storage for multiple applications

0
source share

All Articles