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

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

    Solution 1:

    You can try file specific bash command like Mark McCorkle answered.

    In terminal, goto project's root directory and execute one by one command

      find . -type f -name '*.jpeg' -exec xattr -c {} \;
      find . -type f -name '*.png' -exec xattr -c {} \;
      find . -type f -name '*.tif' -exec xattr -c {} \;
    

    Clean Xcode and Re Build. Done.

    Solution 2:

    You can fix this problem by finding files which holds finder information.

    In terminal, goto project root directory and execute

    ls -alR@ . > kundapura.txt
    

    This creates kundapura.txt in current directory. Now search for com.apple.FinderInfo and clear this attributes for all files. You can do it like this

    xattr -c 
    Example: xattr -c guru.png
    

    Once you clear all then you are able to code sign. Cheers

提交回复
热议问题