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

查看:178
本文介绍了我们如何手动修复"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文件.看起来它包含在/* Begin XCBuildConfiguration部分*/部分下的构建设置,它列出了看起来与Xcode中类似的构建属性,但是我看不到任何类似"Code Signing Resource Rules Path"的代码

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 GUI.

This fix does not require the XCode GUI.

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

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