Xcode7-beta3 (7A152u): Remove deprecated resource-rules from PackageApplication perl script
| Originator: | benchatelain | ||
| Number: | rdar://21785851 | Date Originated: | 12-Jul-2015 10:53 AM |
| Status: | Dup of 18269310 | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode7-beta3 (7A152u) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
The codesign command built up in the PackageApplication perl script uses a deprecated resource-rules option:
my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules",
"--sign", $opt{sign},
"--resource-rules=$destApp/ResourceRules.plist");
According to Technical Note TN2206 and the warnings output by codesign, resource rules are deprecated.
https://developer.apple.com/library/mac/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG206
Additionally, if this deprecated file does not get copied into the app bundle (because CODE_SIGN_RESOURCE_RULES_PATH is blank by default) this causes device builds to fail:
http://stackoverflow.com/questions/26497863/xcode-6-1-error-while-building-ipa/26499526#26499526
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!