Application failed codesign verification?

天大地大妈咪最大 提交于 2019-12-03 07:30:42

问题


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.


回答1:


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.




回答2:


To solve this type of problems, Go through following steps:

  1. Download required provisioning profiles(debug,ad_hoc,app_store)
  2. Go to target (click on application name --> target)
  3. click on info tab (next to summary )
  4. change the Bundle identifier as you given in provisioning profile
  5. click on build settings
  6. go to code signing section
  7. now select correct provisioning profile in each row(code signing identity,debug,... etc.)(for app-store must select app_store provisioning profile )
  8. set "yes to distribution" in "build options" section
  9. click on project name under "project section "
  10. repeat step 6,7 and 8
  11. go to "edit scheme" (click on project name next to stop button --> edit scheme)
  12. change build configuration to distribution(only for app_store and ad_hoc profiles)
  13. make a build for ios device and then validate or distribute



回答3:


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.




回答4:


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.




回答5:


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 can view this Link and this Link




回答6:


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.




回答7:


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




回答8:


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.




回答9:


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.




回答10:


Check that the TARGET (and not only the Project) is setup with the correct Code Signing Identity for Release




回答11:


This is generally very helpful with figuring out CodeSign problems. A very detailed troubleshooting guide.

https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933-CH1-TNTAG31



来源:https://stackoverflow.com/questions/8888943/application-failed-codesign-verification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!