Code Signing Resource Rules Path fails on Jenkins, CODE_SIGN_RESOURCE_RULES_PATH

后端 未结 2 1350
深忆病人
深忆病人 2020-12-18 01:50

I am little concerned about how people treat the following issue.

Basically it sounds like \"Build fails on Jenkins with the ResourceRules.plist: cannot read r

相关标签:
2条回答
  • 2020-12-18 02:21

    If you have used Xcode version greater 6.1 then change the below line

    $(SDKROOT)/ResourceRules.plist

    TO CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist

    0 讨论(0)
  • 2020-12-18 02:39

    I had the same problem. The solution suggested by Mr.Dan Cutting here works for me.

    Just to save some time, here is what we need from the web link.

    "As of Mavericks, the resource-rules option should not be included when signing apps, but for some reason the script still passes this option along to the code signing tool.

    The workaround is to alter the PackageApplication script so it no longer does this (which will require sudo access). Line 155 of the script constructs the parameters to pass through to the code signer, so we can simply remove the references to resource-rules:"

    //Remove - Begin
        - my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules",
        -   "--sign", $opt{sign},
        -   "--resource-rules=$destApp/ResourceRules.plist");
    //Remove - End
    
    //Add - Begin
        + my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements",
        +   "--sign", $opt{sign});
    //Add - Starts
    
    0 讨论(0)
提交回复
热议问题