I'm having problems submitting my iphone application. I saw some similar questions, but I didn't find an answer.
When I archive the project and click validate, I get the error message "Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate."
I'm assuming I did something wrong in the codesigning section. I followed a youtube tutorial that had me download all the certificates and set up the codesigning section, but I don't think I set up the codesign section correctly.


Additionally, when I build for iOS I get this. In all the tutorials I've seen, no one actually has "" written out, so it's possible that this is related to the problem.

I am not getting Ear Training (name of my app) as an option under the menu of distribution. I downloaded all the distribution certificates, so I can't figure out what I'm doing wrong. I also tried making my own certificate, as instructed by this tutorial, but the certificate does not appear under the code signing options. Any help would be appreciated, Thanks
this is what I have in keychain access. The certificate with the x is the one I tried creating in the tutorial. Is it possible that I need to import them to xcode? I tried dragging and dropping into the project as well as the organizer, but to no avail.

Your Build settings appears to have a DEVELOPER certificate for the RELEASE version.
In order, to validate and submit a binary you've to configure the release version to use a DISTRIBUTION certificate.
Create and download a Distribution certificate and import it (drag and drop to Xcode).
Configure the build/release for using the distribution certificate. If you don't see the new distribution certificate as an option for your build, check the AppleID used both for generate the certificate and for your Build settings. They must be the same, otherwise Xcode can't sign your app correctly.
This will solve your problem.
To solve this type of problems, Go through following steps:
- Download required provisioning profiles(debug,ad_hoc,app_store)
- Go to target (click on application name --> target)
- click on info tab (next to summary )
- change the Bundle identifier as you given in provisioning profile
- click on build settings
- go to code signing section
- now select correct provisioning profile in each row(code signing identity,debug,... etc.)(for app-store must select app_store provisioning profile )
- set "yes to distribution" in "build options" section
- click on project name under "project section "
- repeat step 6,7 and 8
- go to "edit scheme" (click on project name next to stop button --> edit scheme)
- change build configuration to distribution(only for app_store and ad_hoc profiles)
- make a build for ios device and then validate or distribute
I had same problem while I send my binary to itunes connect.
I found the solution by renaming "resources" folder with some different name.
Make sure you have not created or used folder in your application with name "Resources". This may conflict while submitting app to itunes connect.
In spite of what you say, there does not appear to be an appropriate distribution certificate downloaded. In the Provisioning portal click on the "Distribution" tab and find your certificate. Click the download button on the right next to the appropriate certificate.
Try to close your app first then open it again... if it still can't see your distribution
try to see if there are possible options in the (Don't Code Sign) rows
if still no options you can repeat the tutorial that you followed
try to see the info.plist if your bundle id is correct. com.(company name).(appname)
if you get
Code sign errors
You need not only a valid Distribution certificate, but a distribution provision file that matches that certificate and is appropriate for your app's Bundle ID.
First of all you have to create a new App ID in in the iOS Provisioning Portal. To create your App ID be sure to use the same Bundle Identifier that you are using in your project.
Second you have to create a Distribution Provisioning Profile in the "Provisioning" section and "Distribution" tab. This profile will link your App ID with your Distribution Certificate. Be sure to select "App Store" Distribution Method, and the App ID reciently created. Download the Distribution Profile and double-click to install (you can also add it manually with the Organizer in the "Devices" tab).
Now you are able to setup the codesign section in your project. Select the profile you have just created for release and distribution methods, archive and then validate.
For further information you can read the How to's in the iOS Provisioning Portal
The error went away for me when I compressed the .app.dSYM file together with my .app file before uploading it to iTunes with the application loader.
I spent 9 hours solving this problem... turned out that Xcode also gives the "Application failed codesign verification" error if your project is located on another server.
Check that the TARGET (and not only the Project) is setup with the correct Code Signing Identity for Release
This is generally very helpful with figuring out CodeSign problems. A very detailed troubleshooting guide.
来源:https://stackoverflow.com/questions/8888943/application-failed-codesign-verification