美文网首页
The code signature version is no

The code signature version is no

作者: 只会ctrl_c_v | 来源:发表于2022-02-14 09:59 被阅读0次
    image.png

    解决办法:

    Build Setting -> Other Code Signing Flags 添加 --generate-entitlement-der 如下:

    image.png

    原因:

    “Apple has changed the codesign signature to include DER encoded entitlements in addition to the plist encoded entitlements. This additional DER encoded entitlements section is required in iOS 15 and becomes the default behavior of codesign in the latest Xcode. To use codesign on an older machines with an older version of Xcode add the --generate-entitlement-der flag to your call to codesign.
    If signing through Xcode, you can add this flag to the OTHER_CODE_SIGN_FLAGS setting.
    If codesigning at the command-line:
    CODESIGN_ALLOCATE=$( xcrun --find codesign_allocate ); export CODESIGN_ALLOCATE
    xcrun codesign --generate-entitlement-der ...
    The source of this information was the Apple Forum thread and the answer from Matt Eaton in DTS at Apple.
    In the Xcode 12.5 Release Notes there is also a reference to the new signature format. However, it seems the information is not entirely correct.”

    相关文章

      网友评论

          本文标题:The code signature version is no

          本文链接:https://www.haomeiwen.com/subject/jujclrtx.html