Xcode 10, Command CodeSign failed with a nonzero exit code

后端 未结 30 2885
忘掉有多难
忘掉有多难 2020-12-02 05:49

Everytime I build console is showing this message.

CodeSign /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app (in

30条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 06:02

    In my case it was an accidentally turned on option. I'm using common root .xcconfig files both for iOS and macOS, for the iOS target the Enable hardened runtime option remained on so replacing the line

    ENABLE_HARDENED_RUNTIME = YES
    

    by the

    ENABLE_HARDENED_RUNTIME[sdk=macosx*] = YES
    

    in the .xcconfig file solved the issue

提交回复
热议问题