--resource-rules has been deprecated in mac os x >= 10.10

后端 未结 8 707
执笔经年
执笔经年 2020-12-07 14:19

I tried to resign my ipa file with new provisioning profile on Mac Os 10.10 with iResign app but I got this warning: \"Warning: --resource-rules has been deprecated in Mac O

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 15:09

    After Xcode 7 previous solutions stopped working. A new one was pointed by Rishi Goel (in https://stackoverflow.com/a/32762413/2252465)

    1. Remove CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist
    2. 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});
      

提交回复
热议问题