Xcode 10, Command CodeSign failed with a nonzero exit code

后端 未结 30 2705
忘掉有多难
忘掉有多难 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:56

    in my case it was a corrupted storyboard file

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

    Try cleaning the project:

    1. shift + cmd + k
    2. shift + cmd + Alt + k 
    

    Then try to run your project again. Hope this will fix the problem.

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

    None of the popular solutions worked.
    In my case, I resolved the error by going into the

    XCode -> Preferences -> Accounts -> Manage Certificates

    and added a (+) to iOS development.

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

    In my case was the following errors lines:

    Signing Identity: "-"

    …..mobile.app: resource fork, Finder information, or similar detritus not allowed

    Command CodeSign failed with a nonzero exit code

    the problem was that in the resources folder I had some files with .png extension, which was hidden on the defaults.

    Find file in FINDER, mark it -> cmd+i -> unchek Hide extension

    after that, return in Xcode -> kmd + shift + K and rebuild.

    I hope I've been helpful!

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

    This problem was caused by building my project in the Release schema. It can be caused by other things as well. Try to switch the build schema by going in xCode to Product > Scheme > Edit Scheme. In the "Run" Section located on the left, switch the "Build Configuration" to "Debug". I hope this will help.

    0 讨论(0)
  • 2020-12-02 06:00

    I had that problem and Xcode failed to compile on the device, but on simulator, it worked fine.

    I solved with these steps:

    1. Open keychain access.
    2. Lock the 'login' keychain.
    3. Unlock it, enter your PC account password.
    4. Clean Project in the product menu.
    5. Build it Again.

    And after that everything works fine.

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