Remove CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist
Find the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication script and update it.
Find the lines including the following code in the script
my@codesign_args=("/usr/bin/codesign","--force","--preserve-metadata=identifier,entitlements,resource-rules","--sign", $opt{sign},"--resource-rules=$destApp/ResourceRules.plist");
change it to:
Find the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication script and update it.
Find the lines including the following code in the script
my@codesign_args=("/usr/bin/codesign","--force","--preserve-metadata=identifier,entitlements,resource-rules","--sign", $opt{sign},"--resource-rules=$destApp/ResourceRules.plist");
change it to:
my@codesign_args=("/usr/bin/codesign","--force","--preserve-metadata=identifier,entitlements","--sign", $opt{sign});
CMD 到目录,用vi编辑。