Roger99
Roger99

Reputation: 992

iOS Missing or Invalid Signature: The bundle is not signed using an Apple Submission Certificate

I have been trying to sign my iOS app for about a week now and when I attempt to submit to the app store through Xcode and through Application Loader I keep running into this error:

Application Loader enter image description here

Xcode: enter image description here

I am building the app with the Apache Cordova tools for Visual Studio and i have tried both building the .ipa file through visual studio under the 'release' setting and also using on the project files built by the 'remotebuild' tool on a mac to create a new Xcode project and then trying to archive and submit it to the app store that way.

In the Xcode situation, i have tried the solutions given in this question Failed to submit app to iTunes Store and i have made sure that the bundle ID of the app matches the bundle ID of the provisioning profile. When I run the validation and export tasks in the archive organizer they both work fine but i cannot get past this error despite that.

When i try to publish through visual studio, I am building the app with the 'release' setting so there is a .ipa file within the app's directories and then i'm transferring the files of my PC to my Mac with a flash drive, taking the newly created .ipa file, and submitting it through Application loader and it is giving me the same exact error. Does anyone have any idea how to verify or manually sign an app with a provisioning profile or can they recommend a fix to this bug?

EDIT: I believe I have the correct keys in my keychain

enter image description here

Upvotes: 29

Views: 27650

Answers (9)

Alex Ratushnyy
Alex Ratushnyy

Reputation: 21

If you are using old Xcode (like me with xcode 11.3.1 on virtual machine), downloading intermediate apple certificate will help (you can do it at developer.apple.com when adding new cert.), then add it to your keychain by clicking on it.

Upvotes: 2

leogoesger
leogoesger

Reputation: 3820

Per @Kanak

For Cordova/Ionic,

  1. Go to xCode
  2. Workspace/Project setting
  3. In the dropdown, select Legacy Build System

Upvotes: 1

casillas
casillas

Reputation: 16793

I have got this issue. I have restarted xcode and tried again, then it works like a charm!

If this problem still persists, then I can Go to Keychain Access, delete all the expired certificates, and add the corresponding valid ones.

Upvotes: 5

Mark Thormann
Mark Thormann

Reputation: 2617

This can also happen if you are trying to upload and submit a build created with xcodebuild after an Xcode or OS X version update if you haven't installed the latest Xcode components on the your machine or build server (and didn't use the -runFirstLaunch parameter).

Upvotes: 0

zeeawan
zeeawan

Reputation: 6895

I got this issue resolved by resetting the provisioning file that is by first setting it to automatic and then manually set to appropriate settings. Then cleaned the build and rebuilt and submitted without any issue.

Upvotes: 0

green0range
green0range

Reputation: 607

For me, I actually had a distribution certificate that was set to "Always Trust" on Keychain Access which resulted "iOS Missing or Invalid Signature: The bundle is not signed using an Apple Submission Certificate" issue.

Once I changed back to "System Default" the problem went away.

Thanks kampai for pointing me to right way.

Upvotes: 2

hungnt
hungnt

Reputation: 41

I got this issue too. And resolve it by updating Dev Key and Distribution Key on KeyChain Access ( Developer give me wrong key). Then I Export Archive and Upload to Itune

Upvotes: 1

Mehul Patel
Mehul Patel

Reputation: 23053

I Resolved like this

  1. open KeyChain Access application

  2. Click Login in left-top Keychains section and then select Certificates from bottom-left Category section

  3. Select "Apple Worldwide Developer Certification Authority", right click Get info

  4. Change Trust value to "Use System Defaults"

enter image description here

  1. Repeat this for "Developer ID Certification Authority" too.

Upvotes: 25

Lucas Huang
Lucas Huang

Reputation: 4016

It's because the private key that is used for creating the provisioning profile is not installed to your KeyChain. I think you just download the provisioning profile directly and archive? You should ask for the private key from the person who create that certificate. And then import to your KeyChain. This error will go away.

Upvotes: 3

Related Questions