Jenkins vs.Xcode插件-CodeSign麻烦 [英] Jenkins vs. Xcode plugin - codesign troubles
问题描述
我已经更新到OS X Yosemite以及Xcode 6.1(从开发人员站点下载),从这个时候开始我就遇到了建筑问题,就像在日志文件中一样,我看到注释警告:--resource-rules已在Mac OS X> = 10.10中弃用!".有人知道如何使用不带"resource-rules"标志的Xcode插件吗?谢谢.
I have updated to OS X Yosemite and also Xcode 6.1 (downloaded from the developer site), from this time I have had the problem with the building as in the log file I see the note "Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!". Does someone know how to use Xcode plugin without "resource-rules" flag? Thank you.
推荐答案
Jenkins插件一切正常.只是产品设置不正确.
Everything is ok with Jenkins plugin. Just product settings is incorrect.
打开项目的构建设置"选项卡.搜索代码签名资源规则路径",它对我来说是空的.更改为:$(SDKROOT)/ResourceRules.plist
Open the "Build Settings" tab of your project. Searched "Code Signing Resource Rules Path", it was empty for me. Change to: $(SDKROOT)/ResourceRules.plist
信用归亚当斯·布莱尔(Adams Blair)所描述,该问题使用SDK2.2
credits goes to Adams Blair who described this problem with SDK2.2
https://stackoverflow.com/a/7919137/2124345
更新
此解决方案不会删除警告本身.但是我很确定警告不是问题.问题在于,如果没有此设置,则Payload文件夹中不会生成ResourceRules.plist文件,并且构建过程由于文件丢失而停止.
This solution doesn't remove the warning itself. But i'm pretty sure that warning isn't a problem. The problem is that without this setting ResourceRules.plist files isn't generated in Payload folder, and build process stops because file is missing.
同样,它与jenkins插件完全无关. xcrun -sdk iphoneos PackageApplication
也会发生相同的错误.詹金斯只是在构建步骤中调用了此命令行.
And again, it's not related with jenkins plugin at all. Same error happens with xcrun -sdk iphoneos PackageApplication
. Jenkins just calling this command line as a build step.
这篇关于Jenkins vs.Xcode插件-CodeSign麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!