xcodebuild - codesign -vvvv says“resource envelope is obsolete”

前端 未结 5 1014
逝去的感伤
逝去的感伤 2020-12-13 00:56

I\'ve just updated my xcode install to use xcode 6.0.1 in order to start compiling my app for ios8 devices. For some reason I am not able to ever sign the app file correctly

5条回答
  •  囚心锁ツ
    2020-12-13 01:40

    If you are using Mac OSX 10.9.5 or later, then there is an issue with OS codesigning with V2 signature.

    So, use --no-strict flag with codesign --verify to get over this error.

    If you're using PackageApplication to create an .ipa file, then

    Edit the PackageApplication perl script tool using vi PackageApplication command and update codesign function occurrences to pass --no-strict parameter.

    Example:

    my $result = runCmd("/usr/bin/codesign", "--verify", "--no-strict", "-vvvv", , $plugin );

    I was facing same and got the following response from Apple Dev Team. The issue is resolved for me.

    The command line tool “codesign” has changed in 10.9.5 and 10.10, you need to pass “--no-strict” option to the command, (the problem has been reported and will be fixed). To workaround the problem, please save a copy and modify PackageApplication to pass “—no-strict” to codesign, you can locate PackageApplication by running the following: xcrun -sdk iphoneos -f PackageApplication

提交回复
热议问题