我们如何手动修复“ResourceRules.plist:无法读取资源"?xcode 6.1 升级后出错? [英] How do we manually fix "ResourceRules.plist: cannot read resources" error after xcode 6.1 upgrade?

查看:18
本文介绍了我们如何手动修复“ResourceRules.plist:无法读取资源"?xcode 6.1 升级后出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们发现了同样的问题 这里这里这里这里

We are having the same issue found here, here, here and here

基本上我们升级到 xcode 6.1 并且我们的构建收到ResourceRules.plist:无法读取资源"错误.

Basically we upgraded to xcode 6.1 and our build are getting the "ResourceRules.plist: cannot read resources" error.

我们有一个 Jenkins 服务器,可以为我们构建 ios.我们在 Jenkins 上使用 Xcode 插件 来进行实际的构建和签名.关于如何在不手动打开 xcode 的情况下进行此更改并在其他答案中找到此解决方案的任何想法:

We have a Jenkins server that does our ios builds for us. We are using the Xcode plugin on Jenkins to do the actual build and signing. Any thoughts on how we can make this change without manually opening xcode and doing this solution found on the other answers:

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

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

代码签名资源规则路径

并添加:

$(SDKROOT)/ResourceRules.plist

$(SDKROOT)/ResourceRules.plist

总的来说,我对 Xcode 和 iOS 构建非常陌生.我在 Unity-iPhone.xcodeproj 文件中找到了 project.pbxproj 文件.看起来这包含 /* 开始 XCBuildConfiguration 部分 */ 部分下的构建设置,它列出了在 Xcode 中找到的类似构建属性的内容,但是我没有看到类似代码签名资源规则路径"的内容.

I'm very new to Xcode and iOS build in general. I have found the project.pbxproj file inside the Unity-iPhone.xcodeproj file. It looks like this contains the build settings under the /* Begin XCBuildConfiguration section */ section it lists what looks like similar build properties foundin Xcode, however I do not see anything like "Code Signing Resource Rules Path".

有人有手动编辑这个文件的经验吗?总的来说,这是一个坏主意吗?

Does anyone have experience manually editing this file? Is that a bad idea in general?

谢谢

推荐答案

如果您将 Jenkins 与 XCode 插件一起使用,您可以通过添加以下内容来修改 'Code Signing Resource Rules Path' 变量:

If you're using Jenkins with the XCode plugin, you can modify the 'Code Signing Resource Rules Path' variable by adding:

"CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist" 

'Custom xcodebuild arguments' 设置 XCode 插件.

'Custom xcodebuild arguments' setting for the XCode plugin.

此修复不需要 XCode GUI.

This fix does not require the XCode GUI.

这篇关于我们如何手动修复“ResourceRules.plist:无法读取资源"?xcode 6.1 升级后出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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