Xcode 8 can't archive “Command /usr/bin/codesign failed with exit code 1”

前端 未结 11 1797
不思量自难忘°
不思量自难忘° 2020-12-22 22:32

I\'ve got a serious problem on Xcode 8 on macOS Sierra. when I try to build my app, I get the following issue.

CodeSign /Users/me/Library/Developer/Xcode/Der         


        
相关标签:
11条回答
  • 2020-12-22 23:23

    In my case,

    Go to

    • Xcode preference

    • Locations

    • Click on Project Path arrow

    • In DerivedData folder search for your project name

    • Select project folder, Right click and Move to trash

    Done!

    0 讨论(0)
  • 2020-12-22 23:25

    I had this problem with one file from CocoaPods bundle. I've updated CocoaPods to the latest version and run:

    pod install
    

    after that, the problem has gone away.

    0 讨论(0)
  • 2020-12-22 23:25

    I encountered this error on macOS Sierra 10.12.3, Xcode 8.2. Fixing the DerivedData did not work for me.

    After I deleted an expired Apple Worldwide Developer Relations Certificate Authority certificate in Keychain Access the error went away.

    0 讨论(0)
  • 2020-12-22 23:30

    There is a more permanent fix for this. Fixing the attributes in the DerivedData works, but the problem keeps coming back. What you need to do is go to the directory shown when you get the 'resource fork, Finder information, or similar detritus not allowed', the one that contains the .App file. Then execute...

    xattr -lr MyAppName.App

    You can then see the resource files that have the attributes that need removing. Don't remove them from the .App file though, find the original files in your project and open the directory that contains them and execute...

    xattr -rc .

    This then fixes the ORIGINAL files. Rebuild should then function ok. It should also then rebuild properly for archive too.

    0 讨论(0)
  • 2020-12-22 23:34

    I found this solution in the Apple forum

    cd ~/Library/Developer/Xcode/DerivedData
    xattr -rc .
    

    or

    xattr -rc ~/Library/Developer/Xcode/DerivedData
    
    0 讨论(0)
提交回复
热议问题