iOS:由于签名无效,在 iTunes Connect 上发布失败 [英] iOS: failed publishing on iTunes Connect because of invalid signing

查看:34
本文介绍了iOS:由于签名无效,在 iTunes Connect 上发布失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了来自 iTunes Connect 的回复邮件:

I've received this mail in reply from iTunes Connect:

无效签名 - 密封资源丢失或无效.路径 [iCom Club.app/iCom Club] 中的文件未正确签名.确保您已使用分发证书而不是临时证书或开发证书对您的应用程序进行签名.验证 Xcode 中的代码签名设置在目标级别(覆盖项目级别的任何值)是否正确.此外,请确保您上传的包是使用 Xcode 中的 Release 目标构建的,而不是 Simulator 目标.如果您确定代码签名设置正确,请在 Xcode 中选择Clean All",删除 Finder 中的build"目录,然后重建您的发布目标.更多信息请参考https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

Invalid Signature - A sealed resource is missing or invalid. The file at path [iCom Club.app/iCom Club] is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

我做了什么?我通过 Apple Developer 网站从头开始创建了一个新证书,销毁了旧证书,从旧分发证书的 MAC 中删除了所有引用和私钥,然后添加了新证书.

What have I done? I created a new certificate from scratch through the Apple Developer website, destroyed the old one, removed all references and private keys from my MAC of the old distribution certificate and added the new one.

在 Xcode 上,我检查了对开发人员帐户和证书的所有引用是否正确(它们是正确的),我已经清理了项目,我已经完全销毁了 Xcode 的DerivedData"文件夹中的build"文件夹...

On Xcode, I've checked if all references to the developer account and certificates are correct (they are), I've clean the project, I've destroyed completely the "build" folder inside "DerivedData" folder of Xcode...

但问题仍然存在,我已经完成了可用的解决方案.

But the problem still remains and I've finished the available solutions.

Xcode 版本 9.0.1 (9A1004)

Xcode Version 9.0.1 (9A1004)

推荐答案

我在工作区中的目标应用程序上一整天都遇到这个问题 - 检查所有引用,添加新证书,创建新目标等...

I have had this issue all day with a target app within a workspace - checked all references, added a new certificate, created a new target, etc...

我发现问题在于我的媒体文件中使用的文件名.如果您的任何文件(媒体或代码)的名称包含非字母数字字符,您也会收到此错误.

I discovered that the issue was the file names used in my media files. If any of your files (media or code) have names with non alphanumerical characters you will also get this error.

就我而言,我的媒体文件的文件名中有特殊的重音字符.一旦我删除了这些文件,我就可以上传文件了.

In my case, my media files had special accent characters in the file names. Once I removed those, I was able to upload the files.

这篇关于iOS:由于签名无效,在 iTunes Connect 上发布失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆