xcode iOS 签名丢失或无效:捆绑包未使用 Apple 提交证书签名

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31711335/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:34:55  来源:igfitidea点击:

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

iosxcodecordovaapp-store-connectcode-signing-certificate

提问by Roger99

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:

我一直在尝试签署我的 iOS 应用程序大约一个星期,当我尝试通过 Xcode 和 Application Loader 提交到应用程序商店时,我一直遇到这个错误:

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.

我正在使用适用于 Visual Studio 的 Apache Cordova 工具构建应用程序,并且我尝试在“发布”设置下通过 Visual Studio 构建 .ipa 文件,并在 Mac 上使用“remotebuild”工具构建的项目文件创建一个新的 Xcode 项目,然后尝试以这种方式存档并将其提交到应用商店。

In the Xcode situation, i have tried the solutions given in this question Failed to submit app to iTunes Storeand 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.

在 Xcode 的情况下,我已经尝试了这个问题中给出的解决方案Failed to submit app to iTunes Store并且我已经确保应用程序的包 ID 与配置文件的包 ID 匹配。当我在存档管理器中运行验证和导出任务时,它们都可以正常工作,但尽管如此,我还是无法克服这个错误。

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?

当我尝试通过 Visual Studio 发布时,我正在使用“发布”设置构建应用程序,因此应用程序目录中有一个 .ipa 文件,然后我使用闪存驱动器将我的 PC 文件传输到我的 Mac,获取新创建的 .ipa 文件,并通过应用程序加载器提交它,它给了我完全相同的错误。有谁知道如何使用配置文件验证或手动签署应用程序,或者他们可以推荐修复此错误的方法吗?

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

编辑:我相信我的钥匙串中有正确的钥匙

enter image description here

在此处输入图片说明

回答by Kampai

I Resolved like this

我是这样解决的

  1. open KeyChain Accessapplication
  2. Click Loginin left-top Keychainssection and then select Certificatesfrom bottom-left Categorysection
  3. Select "Apple Worldwide Developer Certification Authority", right click Get info

  4. Change Trustvalue to "Use System Defaults"

  1. 打开钥匙串访问应用程序
  2. 单击左上角钥匙串部分中的登录,然后从左下角类别部分中选择证书
  3. 选择“Apple Worldwide Developer Certification Authority”,右击获取信息

  4. 信任值更改为“使用系统默认值”

enter image description here

在此处输入图片说明

  1. Repeat this for "Developer ID Certification Authority"too.
  1. “开发人员 ID 证书颁发机构”也重复此操作。

回答by Lucas Huang

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.

这是因为用于创建配置文件的私钥未安装到您的KeyChain 中。我认为您只是直接下载配置文件并存档?您应该向创建该证书的人索取私钥。然后导入到您的KeyChain。此错误将消失。

回答by green0range

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.

对我来说,我实际上有一个分发证书,该证书在钥匙串访问上设置为“始终信任”,这导致“iOS 缺少签名或签名无效:捆绑包未使用 Apple 提交证书签名”问题。

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

一旦我改回“系统默认”,问题就消失了。

Thanks kampaifor pointing me to right way.

感谢kampai为我指出正确的方法。

回答by hungnt

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

我也遇到了这个问题。并通过更新 KeyChain Access 上的开发密钥和分发密钥来解决它(开发人员给我错误的密钥)。然后我导出存档并上传到 Itune

回答by casillas

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

我有这个问题。我重新启动了 xcode 并再次尝试,然后它就像一个魅力!

回答by zeeawan

I got this issue resolved by resetting the provisioning filethat 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.

我通过重置配置文件解决了这个问题,该文件首先将其设置为自动,然后手动设置为适当的设置。然后清理构建并重建并提交没有任何问题。