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

前端 未结 11 1835
不思量自难忘°
不思量自难忘° 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: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.

提交回复
热议问题