Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

After installing Yosemite and XCode 6.1 it gives the following warning:

Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!

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 ?

like image 249
Sirio Avatar asked Oct 21 '14 13:10

Sirio


1 Answers

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:

Open the "Build Settings" tab of your project. Searched "Code Signing Resource Rules Path", it was empty for me. Change to: $(SDKROOT)/ResourceRules.plist

credits goes to Adams Blair who described this problem with SDK2.2

https://stackoverflow.com/a/7919137/2124345

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.

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.

like image 108
g_blott Avatar answered Nov 12 '22 17:11

g_blott