Xcode fails with “Code Signing” Error

前端 未结 3 1483
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 07:35

Alternate Titles

(to aid search)

  • Xcode \'CodeSign error: code signing is required\'
  • Xcode: iPhone app codesign error
  • /usr/bin/codesig
3条回答
  •  庸人自扰
    2020-12-03 08:40

    CODE_SIGN_IDENTITY verification script.

    Often in set ups that use version control the project.pbxproj can be merged in such a way that two CODE_SIGN_IDENTITY lines can be inserted. This seems to cause Xcode problems under certain situations (like command-line builds or archiving).

    A tell-tail sign is lines similar to this in the project.pbxproj file (right-click on the project and select "Show Package Contents…")

    "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
    CODE_SIGN_IDENTITY = "iPhone Distribution";
    

    Deleting one of these lines will let you select the correct value in Build Settings and the project should once again build correctly.

    I have created simple script to help diagnose this issue it can be found here: https://github.com/rjstelling/Xcode-Project-Validate

提交回复
热议问题