Ios – How to fix Xcode 6.1 error while building IPA

buildcode-signingiosipaxcode

Just upgraded to Xcode 6.1 today, and guess what: Now I'm having trouble submitting builds using the TestFlight desktop app. Here's the error I'm getting while the app starts building the IPA:

The error

error: /usr/bin/codesign –force
–preserve-metadata=identifier,entitlements,resource-rules –sign 854059d45eed724593debef577a562e1ba96ab55
–resource-rules=/tmp/QYFSJIvu7W/Payload/XX.app/ResourceRules.plist
/tmp/QYFSJIvu7W/Payload/XX.app failed with error 1. Output:
Warning: usage of –preserve-metadata with option "resource-rules"
(deprecated in Mac OS X >= 10.10)! Warning: –resource-rules has been
deprecated in Mac OS X >= 10.10!
/tmp/QYFSJIvu7W/Payload/XX.app/ResourceRules.plist: cannot read
resources

The 'Support Article' has no idea what is going on.

It does not seem to be a TestFlight problem because the same thing happens in a CI environment like Jenkins using the xcrun or similar tools.

The app wasn't updated for months, so I know that I shouldn't be expecting for any updates to fix this anytime soon. It used to work really well for me and my clients so I'm not really keen on abandoning it for something else either.

Any ideas for what this error is about, and how to fix it would be very appreciated.

Best Answer

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