Xcode 10, Command CodeSign failed with a nonzero exit code

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

    This worked for me :) I removed the certificate in keychain access settings. Go to Xcode and clean build the app. Now certificate is again created in keychain access and build gets succeeded with real device.

    0 讨论(0)
  • 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

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

    This happened to me just today, only after I added a .png image with 'hide extension' ticked in the get info. (Right click image) Ths image was added to the file directory of my Xcode project.

    When unticked box and re-adding the the .png image to directory of Xcode, I then Cleaned and Built and worked fine after that, a very strange bug if you ask me.

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

    None of other answers worked. This is what I have done:

    1. deleted my certificate from keychain;
    2. opened Xcode it rebuild certificate;
    3. ran app on device successfully.
    0 讨论(0)
  • 2020-12-02 06:05

    In Xcode: Go to Preferences Logout of the current user.

    Close Xcode

    In Keychain: Go to Login and All items

            - Sort by kind
                 - remove "Apple Worldwide Developer Relation Certification Authority"
                 - remove "Developer ID Certification Authority"
                 - remove "iPhone Developer ...."
    

    Open Xcode

    Go to Preferences and Login to you user apple account

    • This will reload your developer certificates you previous deleted Rebuild the project (Should be a successful build)

    Run the build on your native device

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

    This issue happened to me after adding .dae and .png files and converting .dae with XCode Editor to SceneKit scene file format (.scn).

    After doing some more research I found the solution here - https://forums.developer.apple.com/thread/109951#336225

    Steps to solve the issue:

    1. In XCode go to Preferences
    2. Click on Locations tab
    3. In Command Line Tools select from the drop down XCode 10.1
    0 讨论(0)
提交回复
热议问题