iPhone 协同设计 缺失资源
我正在尝试分发我的临时构建,但开始遇到问题。大约一周前它一直可以正常工作,但现在当我尝试同步时 iTunes 给出 0x8008017 错误。
我通过使用 iPhone 配置实用程序缩小了范围,然后发现错误似乎来自失败的代码签名。我已经运行了 codesign -vvvv myApp.app ,输出列出了我的帮助文档(来自我的应用程序资源文件夹)中缺少的资源。每个缺少的资源都以 ._ 开头,因此对于我的索引页:
01 - Index.html ,
协同设计也期望: ._01 - Index.html
它还列出了现有文件(应该如此),但失败了,因为不包含所有 ._files在应用程序中。
我查看了我的项目目录,找不到任何以 ._ 开头的文件,所以我不确定 codesigner 从哪里获取这些文件名,但在干净或 Xcode 重新启动后,它们会包含在每个构建中。
所有导致问题的资源都是我在本周初复制旧资源的最近更新的文件;这可能与此有关吗?
任何帮助表示赞赏
I'm trying to get my ad hoc build distributed but have started experiencing problems. It used to work up until around a week ago, but now ITunes gives an 0x8008017 error when I try to Sync.
I've narrowed it down by using the iPhone Configuration Utility and then discovering the error seems to be coming from a failed code sign. I've ran codesign -vvvv myApp.app and the outup lists a load of missing resources from my Help documents (from my Apps Resource folder). each missing resource begins ._ so for my index page:
01 - Index.html
the codesign is also expecting: ._01 - Index.html
It also has the existing file listed (as it should) but fails because all ._files are not included in the app.
I've looked through my projects directory and can't find any files beginning with ._ so am not sure where the codesigner is getting these filenames from, but they are included every build, after a clean or an Xcode restart.
All the resources that are causing problems are all recently updated files that I copied over the old resources at the beginning of the week; might this be something to do with it?
Any help appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保执行以下操作之一:
._*
文件,或者._*
文件)。听起来您的分区类型正在生成资源分叉文件,这些文件也被签名为捆绑包中的单独文件,而不是作为原始文件的一部分(这很糟糕);然后,它们也不会被复制(如果您使用 Finder 压缩,它们将被删除并放在 Zip 文件的不同部分中,IIRC),这又很糟糕。避免将它们放在捆绑包中,这样它们就不会被签名,您也不必费力地处理这个烂摊子:)
Make sure you do one of these:
._*
files if you copy through a script, or._*
files are not generated for resource forks).Sounds like your partition type is generating resource-fork files which are also being signed as separate files in the bundle, rather than as part of the original files (which is bad); and then, they're also not getting copied (if you use Finder zipping, they'll be removed and set aside in a different portion of the Zip file, IIRC), again bad. Avoid having them in the bundle, so they don't get signed and you don't have to wade through this mess :)