In the assembly log contained in the -UPDATE section of the original message, the root of the cause of the signature verification error is expressed by the text: "test-requirements: code could not fulfill the specified code requirements (s)" . This particular taste of unsuccessful signature verification is almost always caused by the erroneous signing of your application with an iPhone Developer profile instead of an iPhone distribution profile.
You can confirm this with the steps. How can I verify the certificate that was used to sign my application? ". If the certificate" Identity "is" iPhone Developer: YOUR_NAME "instead of" iPhone Distribution: ... ", then this is the cause of the error " Error in application code codes failed " , and you can resolve it by following these steps:
1a). if you haven’t already created an App Store distribution distribution profile that runs on the Distribution tab of the Provisioning section of the iOS Portal site .
Note The Distribution tab is available only to Team members whose role is either Agent (the one who signed up for the iOS Developer Program) or Administrator (those that Agent provides access to application distribution capabilities).
1b). if you are confident that you have the App Store distribution profile profile installed in your Xcode profile library, you can verify that it is a profile in the App Store, as well as its associated application identifier, using the steps in How to Confirm My is the Provisioning Profile for distribution on the App Store?
2). make sure that your “Archive” task is mapped to “Release” using the steps in the section: “ Creating an application archive ”
3). make sure you have an App Store profile profile assigned to your “Release” Code Signing Identity using the steps in the “ Assigning Profiles to Create Configurations ” section.
Note : it is important to make these changes to the settings of the "Configure" level compared to the levels of the project level, since the "Parameters" parameters override the project ... you can think of the project level, create the parameters as "default" to fill in the target settings (and any future goals). In addition, make sure that the "All" button is clicked in the upper left corner of the settings of the target assembly to open the "Code Identification" section.
4). try your product again> Archive.
If the problem persists after the above, I recommend continuing the full list of possible causes of this error in Apple at the following URL. How to fix the error: Error checking application code?