如何在构建 IPA 时修复 Xcode 6.1 错误 [英] How to fix Xcode 6.1 error while building IPA

查看:30
本文介绍了如何在构建 IPA 时修复 Xcode 6.1 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天刚刚升级到 Xcode 6.1,你猜怎么着:现在我在使用 TestFlight 桌面应用程序提交构建时遇到问题.这是我在应用程序开始构建 IPA 时遇到的错误:

Just upgraded to Xcode 6.1 today, and guess what: Now I'm having trouble submitting builds using the TestFlight desktop app. Here's the error I'm getting while the app starts building the IPA:

错误:/usr/bin/codesign --force--preserve-metadata=标识符、权利、资源规则 --sign 854059d45eed724593debef577a562e1ba96ab55--resource-rules=/tmp/QYFSJIvu7W/Payload/XX.app/ResourceRules.plist/tmp/QYFSJIvu7W/Payload/XX.app 失败,错误 1.输出:警告:使用 --preserve-metadata 和选项resource-rules"(在 Mac OS X >= 10.10 中已弃用)!警告:--resource-rules 已在 Mac OS X >= 10.10 中已弃用!/tmp/QYFSJIvu7W/Payload/XX.app/ResourceRules.plist:无法读取资源

error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign 854059d45eed724593debef577a562e1ba96ab55 --resource-rules=/tmp/QYFSJIvu7W/Payload/XX.app/ResourceRules.plist /tmp/QYFSJIvu7W/Payload/XX.app failed with error 1. Output: Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)! Warning: --resource-rules has been deprecated in Mac OS X >= 10.10! /tmp/QYFSJIvu7W/Payload/XX.app/ResourceRules.plist: cannot read resources

支持文章"不知道发生了什么.

The 'Support Article' has no idea what is going on.

这似乎不是 TestFlight 问题,因为在使用 xcrun 或类似工具的 Jenkins 等 CI 环境中也会发生同样的事情.

It does not seem to be a TestFlight problem because the same thing happens in a CI environment like Jenkins using the xcrun or similar tools.

该应用程序几个月没有更新,所以我知道我不应该期待任何更新来解决这个问题.它曾经对我和我的客户非常有效,所以我也不太热衷于为了别的东西而放弃它.

The app wasn't updated for months, so I know that I shouldn't be expecting for any updates to fix this anytime soon. It used to work really well for me and my clients so I'm not really keen on abandoning it for something else either.

任何有关此错误的原因以及如何修复它的想法将不胜感激.

Any ideas for what this error is about, and how to fix it would be very appreciated.

推荐答案

我希望我知道为什么它有效,但是 这是一个对我有用的修复:

I wish I knew why it works, but here's a fix that worked for me:

找到修复!

单击您的项目 > 目标 > 选择您的目标 > 构建设置>

Click on your project > Targets > Select your target > Build Settings >

代码签名资源规则路径

并添加:

$(SDKROOT)/ResourceRules.plist

这篇关于如何在构建 IPA 时修复 Xcode 6.1 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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