Jenkins 与 Xcode 插件 - 协同设计的麻烦 [英] Jenkins vs. Xcode plugin - codesign troubles

查看:34
本文介绍了Jenkins 与 Xcode 插件 - 协同设计的麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新到 OS X Yosemite 和 Xcode 6.1(从开发者网站下载),从这个时候我遇到了构建问题,因为在日志文件中我看到了注释警告:--resource-rules已在 Mac OS X >= 10.10 中弃用!".有人知道如何在没有资源规则"标志的情况下使用 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

更新

此解决方案不会删除警告本身.但我很确定警告不是问题.问题是如果没有这个设置,ResourceRules.plist 文件不会在 Payload 文件夹中生成,并且构建过程会因为文件丢失而停止.

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 也会发生同样的错误.Jenkins 只是调用此命令行作为构建步骤.

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 与 Xcode 插件 - 协同设计的麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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