Xcode 10, Command CodeSign failed with a nonzero exit code

后端 未结 30 2701
忘掉有多难
忘掉有多难 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 05:51

    None of the listed solutions worked for me. In another thread it was pointed out that including a folder named "resources" in the project causes this error. After renaming my "resources" folder, the error went away.

    0 讨论(0)
  • 2020-12-02 05:51

    I was experiencing this issue due to the misconfiguration of my Apple Worldwide Developer Relations Certification Authority certificate.

    I resolved issue by switching from "Alway Trust" to "Use System Defaults"

    Step by Step:

    1. Open KeyChain
    2. Click on "login" keychain (make sure it's unlock - if it's locked Right Click on it and choose "Unlock KeyChain")
    3. Click on Certificates and locate Apple Worldwide Developer Relations Certification Authority certificate
    4. Right click on it and choose Get info
    5. Expand Trust section and change settings to Use System Defaults as per below screenshot

    0 讨论(0)
  • 2020-12-02 05:51

    Not sure if this will help anyone - but make sure you have Find Implicit Dependencies checked off. Sometimes this can lead to your project "losing track" of where to look for certain things.



    Once you do this, I suggest then also cleaning your project and rebuilding.

    0 讨论(0)
  • 2020-12-02 05:52

    This issue can also occur when upgrade from XCODE 11.x to 12.0. After installation of new version of XCODE, restart system to overcome this issue.

    0 讨论(0)
  • 2020-12-02 05:55

    For me I had to go to keychain, select the "login" keychain, double click on the iOS Developer:myname key, click the access control tab and switch the radio button to Allow all applications to access this item.

    0 讨论(0)
  • 2020-12-02 05:56

    If you also get code signing fails with the error "resource fork, Finder information, or similar detritus not allowed."

    Run script below in console to fix:

    $ xattr -cr <path_to_app_bundle>
    

    Apple documentation: https://developer.apple.com/library/archive/qa/qa1940/_index.html

    0 讨论(0)
提交回复
热议问题