--Resource-Rules Has Been Deprecated in MAC Os X >= 10.10

resource-rules has been deprecated in mac os x 10.10

I found workaround: if you run the iResign app from XCode — then you will resign app without problem (warning will appears in console instead of popup).
But if you close XCode and run app alone — then popup will back to you!

BTW: bug found :)
The condition

if (systemVersionFloat < 10.9f)

Is broken for Yosemite 10.10. Funny.

Thanks,

PackageApplication stopped working with OS X 10.10 (Yosemite) today

Found the answer.

The problem that occurred now was the "xcrun PackageApplication" something something line. I had to remove the "-sign some profile" parameter, then things started working again.

That said I don't know why signing was necessary before, and why it isn't now so can't tell if this is going to cause some problem later.

The code signature version is no longer supported

Notice

This answer is mostly for people using older versions of Xcode. My build farm was for a time stuck at Xcode 12.4 because some Mac minis couldn't be upgraded past Catalina. If you are using a recent Xcode 13+ this is not your issue. Probably cruft of some kind in your project.

If you're still using an Xcode 12 release it is time to let go. The only reason to use 12.4 would be because you're stuck on Catalina and new problems are cropping up that will not be worked around so easily.

codesign --generate-entitlement-der

Apple has changed the codesign signature to include DER encoded entitlements in addition to the plist encoded entitlements. This additional DER encoded entitlements section is required in iOS 15 and becomes the default behavior of codesign in the latest Xcode. To use codesign on an older machines with an older version of Xcode add the --generate-entitlement-der flag to your call to codesign.

If signing through Xcode, you can add this flag to the OTHER_CODE_SIGN_FLAGS setting in the Build Settings tab.

Sample Image

If codesigning at the command-line:

CODESIGN_ALLOCATE=$( xcrun --find codesign_allocate ); export CODESIGN_ALLOCATE
xcrun codesign --generate-entitlement-der ...

The source of this information was the Apple Forum thread and the answer from Matt Eaton in DTS at Apple.

In the Xcode 12.5 Release Notes there is also a reference to the new signature format. However, it seems the information is not entirely correct.

General advice

If you have a non-trivial setup like CocoaPods, you should probably de-integrate and re-integrate and of course do a project clean. These sorts of 'me too' answers really just add noise to the signal and anyone doing this sort of development should have already tried this.

Jenkins error after upgrading to Xcode 8 -resource rules

Found the Fix.
As the warning says --resource-rules has been deprecated.
I removed the resource-rules related script from "PackageApplication" file at location /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/

Edit the file "PackageApplication" as described below (Copy at diff location, edit and replace)

remove the lines ",resource-rules" and ", "--resource-rules=$destApp/ResourceRules.plist""

How do we manually fix ResourceRules.plist: cannot read resources error after xcode 6.1 upgrade?

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" 

to the

'Custom xcodebuild arguments' setting for the XCode plugin.

This fix does not require the XCode GUI.

How to fix Xcode 6.1 error while building IPA

I wish I knew why it works, but here's a fix that worked for me:

Found the fix !

Click on your project > Targets > Select your target > Build Settings
>

Code Signing Resource Rules Path

and add :

$(SDKROOT)/ResourceRules.plist



Related Topics



Leave a reply



Submit