XCode 6.1&上的iOS ipa代码签名优胜美地 [英] iOS ipa codesign on XCode 6.1 & Yosemite
问题描述
我曾经使用以下命令对我的应用进行签名
I was used to sign my app with the following command
codesign --resource-rules=ResourceRules.plist -f -s "SIGNER_NAME" MYAPP.app
在安装Yosemite和XCode 6.1之后,它会发出以下警告:
After installing Yosemite and XCode 6.1 it gives the following warning:
Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
所以我尝试删除"--resource-rules",但现在出现以下(阻塞)错误:
So I tried to remove the "--resource-rules" but now it gives the following (blocking) error:
invalid resource specification rule(s)
有什么正确的方式进行代码签名吗?
Is there any right way to codesign ?
推荐答案
此发布他们回答了您的问题.该帖子更针对使用构建服务器(Jenkins CLI),但答案对您来说是相同的(答案的作者指出,它并非Jenkins独有).
Over on this post They answer your question. That post is more targeted towards using a build server (Jenkins CLI) but the answer is the same for you (and the author of the answer points out that it is NOT unique to Jenkins).
为回答此页面上的问题,以下是他们的答案:
For the purpose of answering the question on this page, here is their answer:
打开项目的构建设置"选项卡.搜索代码签名资源规则路径",它对我来说是空的.更改为:$(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.
这篇关于XCode 6.1&上的iOS ipa代码签名优胜美地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!