简体   繁体   中英

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在此处输入图片说明

Xcode: 在此处输入图片说明

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

在此处输入图片说明

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"

在此处输入图片说明

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

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.

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.

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.

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

Per @Kanak

For Cordova/Ionic,

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

如果您使用的是旧的 Xcode(就像我在虚拟机上使用 xcode 11.3.1),下载中间苹果证书会有所帮助(添加新证书时可以在 developer.apple.com 上进行),然后通过以下方式将其添加到您的钥匙串中点击它。

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.

这也有可能发生,如果你想上传并提交与创建构建xcodebuild一个Xcode或OS X版本更新后,如果您还没有安装您的计算机或生成服务器上最新的Xcode组件(和没有使用-runFirstLaunch参数)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM