iOS 代码签名失败:“密封资源丢失或无效。”
我已经解决这个问题8个小时了,无法解决。
Whats Cool JLD$ codesign -vvvv build/Distribution-iphoneos/Whats\ cool\?.app
build/Distribution-iphoneos/Whats cool?.app: a sealed resource is missing or invalid
/Users/JLD/Desktop/iOS Development/Whats Cool/build/Distribution-iphoneos/Whats
cool?.app/Whats cool?: resource modified
我已尝试在所有这些线程上发布的解决方案均无济于事:
- https://discussions.apple.com/thread /1590980
- https://discussions.apple.com/message/9167082
- http://www.iphonedevsdk.com/forum /iphone-sdk-development/2256-application-failed-codesign-verification.html
- https://forums.macrumors.com/threads/entitlements-plist.584209/
- 上传到 iTunes Connect 时如何解决“应用程序协同设计验证失败”问题?
我什至尝试再次重新创建整个项目,重做所有 IB 连接,但没有任何效果!它构建了一切,但无法对其进行代码签名!所以我无法通过AppLoader上传它。
我正在按照“分发应用程序”页面上的配置文件中的说明执行所有这些操作。
我什至尝试从另一台 Mac 进行构建。我的分发配置文件和分发证书都设置为通配符。但它仍然不起作用。我用不同的名称和另一个 Bundle ID 创建了一个新应用程序,但没有成功。我不知道该尝试什么了! 谢谢未来的问题解决者!我知道你就在那里,所以请来帮助我,我将永远感谢你!
更新:我尝试从头开始制作新项目。复制了源代码并重新建立了IB上的所有连接,但无济于事。我什至按照此链接的说明操作:
不成功。我不知道还能做什么。我什至正在考虑用一个技术事件来一劳永逸地解决这个问题。
I have been with this problem already 8 hours unable to solve it.
Whats Cool JLD$ codesign -vvvv build/Distribution-iphoneos/Whats\ cool\?.app
build/Distribution-iphoneos/Whats cool?.app: a sealed resource is missing or invalid
/Users/JLD/Desktop/iOS Development/Whats Cool/build/Distribution-iphoneos/Whats
cool?.app/Whats cool?: resource modified
I have tried the solutions posted on all these threads to no avail:
- https://discussions.apple.com/thread/1590980
- https://discussions.apple.com/message/9167082
- http://www.iphonedevsdk.com/forum/iphone-sdk-development/2256-application-failed-codesign-verification.html
- https://forums.macrumors.com/threads/entitlements-plist.584209/
- How to solve "Application failed codesign verification" when uploading to iTunes Connect?
I even tried recreating the whole project again redoing all the IB connections and nothing works! It builds everything, but it is unable to code sign it! So I'm unable to upload it through the AppLoader.
I am doing all these following the instructions found at the provisioning profile on the Distribute application page.
I even tried building from another Mac. I have my distribution profile and my distribution certificate both set to WildCard. But it still doesn't work. I made a new app under a different name with another Bundle ID to no avail. I don't know what to try anymore!
Thank you future problem solver! I know you are there so come to my aid, I'll thank you forever!
UPDATE: I tried to make the new project from scratch. Copying the source code and remaking all the connections on IB to no avail. I even followed this link with instructions:
Unsuccessful. I don't know what else to do. I'm even considering using one technical incident to solve this problem once and for all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我刚刚在 Lion 上尝试使用 Xcode 4 签署存档时遇到此错误。事实证明,该问题与存档已在一台计算机上压缩并传输到另一台计算机这一事实有关 - zip 实用程序不支持符号链接,并且应用程序代码签名在捆绑包内使用符号链接,因此解压后的文件存档无效。
可能的解决方案是:
-y 参数保留符号链接。
I just experienced this error trying to sign an archive with Xcode 4 on Lion. The problem turned out to be related to the fact that the archive had been zipped on one machine and transported to another --- the zip utility did not support symbolic links, and the app code signature uses a symlink inside the bundle, so the unzipped archive was invalid.
Possible solutions are:
-y
argument to preserve symbolic links.解决了。问题是一个“?”产品名称上的字符。不应该这样,但事实就是这样。苹果没有说这会造成协同设计验证问题。
Solved. The problem was a '?' character on the product name. Shouldn't be like that but that's how it is. Nowhere apple says that that makes a codesign verification issue.
恐怕这不是一个具体的答案,但你可能没有想过。
从您的命令行片段来看,您似乎在构建应用程序包后对其进行代码签名。您是否从另一台计算机或另一个驱动器移动捆绑包(.app 文件夹或 IPA 或 ZIP 文件)?我在不正确支持符号链接的文件系统之间移动应用程序包时遇到了问题。您是否使用网络驱动器,或者有一个未针对 Mac OS 进行格式化的本地驱动器。
This isn't a specific answer I'm afraid, but something you may not have thought about.
From your command line snippet, it looks like you're code signing your app bundle after it's been built. Are you moving the bundle (.app folder or maybe an IPA or ZIP file) from another machine, or from another drive? I've had problems with moving app bundles between file systems that don't support symbolic links properly. Are you using a network drive, or have a local drive that's not formatted for Mac OS.
Apple 的新 APFS 文件系统在处理 unicode 字符时存在一些错误,从而导致了该问题。
将整个项目移至旧版 MacOS Extended 卷并再次存档解决了该问题。
Apple's new APFS file system has some bugs to process unicode characters and it is causing the issue.
Moving the whole project to the legacy MacOS Extended volume and archiving again solved the issue.
另一个问题可能是您的应用程序中包含没有英文字符的图像文件名。如“ş ç ğ”。如果您删除这些图像或更改文件名,它将继续。
Another problem could be your app contains image file name with none English characters in your app. Such as 'ş ç ğ'. If you remove those images or change the file name it will proceed.
我在这个问题上度过了好几天,对我来说,这是因为应用程序的名称包含阿拉伯字符:(,所以 xcode 12 上的苹果不接受阿拉伯字符?在 xcode 10 上我发布没有任何问题,
作为开发人员非常复杂IOS
I passed days on this problem, for me it's because the name of the application contains arabic caracters :(, So apple on xcode 12 doesn't accept arabic caracters ? on xcode 10 i publish without any problem
it's very complicated to be a developper on ios
就我而言,我收到该错误是因为我创建的用于分发应用程序的磁盘映像空间不足,并且同上,没有将所有文件从构建文件夹复制到磁盘映像。由于我使用的脚本产生了如此多的噪音,我错过了同上的警告,即目标磁盘映像中的空间不足。不幸的是,
ditto
应该中止整个过程,而不是将警告隐藏到它设法复制的小文件的无数其他路径中。In my case, I got that error because the disk image I created to distribute my app ran out of space and
ditto
did not copy all files from the build folder to the disk image. As the script I used generates so much noise, I missed the warning ofditto
that it ran out of space in the target disk image. Unfortunately,ditto
should have aborted the whole procedure, instead of burying the warning into a myriad of other paths of smaller files that it managed to copy.