Application failed codesign verification. What do I do?

前端 未结 13 1287
庸人自扰
庸人自扰 2020-12-04 01:05

Xcode gives me this warning when I build the app for release.

Application failed codesign verification. The signature was invalid, or it was not signe

相关标签:
13条回答
  • 2020-12-04 01:13

    My problem was that the Archive scheme did not have Build Configuration of App Store, but of Release. To change this, go to Product -> Edit scheme, select Archive on left side and change Build Configuration to App Store. I am assuming the code signing is configured properly (with distribution certificate).

    0 讨论(0)
  • 2020-12-04 01:14

    Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011) i am got the Same Warning Message...

    I just Changed to iOs Deployment target 4.3 to 3.2.2 its works perfectly .....

    0 讨论(0)
  • 2020-12-04 01:15

    My problem was solved when I noticed that I only had a "team" provisioning profile, and the details in iOS Dev Center told me that it was not a profile fit for development because it had no device attached. So I created a second provisioning profile, which let me check the box for my device so that it had a device attached.

    Then when validating or submitting the app from the Organizer window (after pressing 'Build and archive'), I first made the mistake of selecting this new profile as the code signing profile. That was wrong. The profile that worked was iPhone Developer.

    Good luck!

    PS: This whole submission process is a heap of abacadabra. Do you really have to create a zillion distribution profiles, provisioning profiles, etc.? It hasn't encouraged me in any way to better test my app. I already did that before I chose to upload, and clicking a hundred buttons labeled 'Create','Download' and 'Submit' isn't really a quality control process that added anything (well except being forced to buy an iPad and test on that). Who ever said iOS was developer friendly?

    0 讨论(0)
  • 2020-12-04 01:15

    Create your iOS Distribution Provisioning Profile for App Store Distribution

    0 讨论(0)
  • 2020-12-04 01:17

    I have found the codesign process a headache - I always shudder when I get am ready to use Ad Hoc distribution to beta test. After the usual round of errors and failed fix attempts I ignored the "application failed codesign" error and sent the build to a beta tester. It worked without issue.

    Very frustrating.

    0 讨论(0)
  • 2020-12-04 01:18

    Here's the checklist I go through when I've hit this:

    1. Clean all targets, exit Xcode, then go drag the build folder from your project to the trash.

    2. Do the Get Info on your project, make sure the Code Signing Entitlements and Code Signing Identity are selected correctly. Do the same for your Targets.

    3. Login to the iOS Provisioning Portal and make sure the Distribution certificate has not expired. Also check the Distribution Provisioning Profile and make sure it is Active. Make sure the Certificate is properly in your Keychain and the Distribution profile is in Xcode Organizer (if you have multiple of the same one, delete all but the correct one and redo step #2).

    4. Look at your Build Results on the failure and identify which profile it is actually using and make sure it is the right one.

    0 讨论(0)
提交回复
热议问题