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

查看:77
本文介绍了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中选择全部清除",删除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天全站免登陆