How do we manually fix “ResourceRules.plist: cannot read resources” error after xcode 6.1 upgrade?

后端 未结 6 1812
谎友^
谎友^ 2020-12-14 05:21

We are having the same issue found here, here, here and here

Basically we upgraded to xcode 6.1 and our build are getting the \"ResourceRules.plist: cannot read reso

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 06:03

    If you want to get really crazy, you can directly update PackageApplication.

    # In /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
    my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules",
                         "--sign", $opt{sign},
                         "--resource-rules=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/ResourceRules.plist");
    # OLD:               "--resource-rules=$destApp/ResourceRules.plist");
    

    I was already hacking this script to accept a keychain arg, so it made sense for me. Note I'm not using the Xcode Jenkins plugin -- I'm using Jenkins but running all the build commands from a script.

提交回复
热议问题