iPhone 协同设计 缺失资源

发布于 2024-08-13 06:55:47 字数 496 浏览 9 评论 0原文

我正在尝试分发我的临时构建,但开始遇到问题。大约一周前它一直可以正常工作,但现在当我尝试同步时 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

燃情 2024-08-20 06:55:48

确保执行以下操作之一:

  • 使用 Xcode 复制文件阶段复制这些文件,默认情况下应该做正确的事情,或者
  • 如果通过脚本复制,则排除资源分叉和 ._* 文件,或者
  • 确保您在 HFS 卷上构建(其中不会为资源分支生成 ._* 文件)。

听起来您的分区类型正在生成资源分叉文件,这些文件也被签名为捆绑包中的单独文件,而不是作为原始文件的一部分(这很糟糕);然后,它们也不会被复制(如果您使用 Finder 压缩,它们将被删除并放在 Zip 文件的不同部分中,IIRC),这又很糟糕。避免将它们放在捆绑包中,这样它们就不会被签名,您也不​​必费力地处理这个烂摊子:)

Make sure you do one of these:

  • copy those files with an Xcode Copy Files phase, which should Do The Right Thing by default, or
  • exclude resource forks and ._* files if you copy through a script, or
  • make sure you build on HFS volumes (where ._* 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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文