In case Xcode, when you try to compile an app in simulator give you “Command /usr/bin/codesign failed with exit code 1”.
Open the terminal and paste:
cd ~/Library/Developer/Xcode/DerivedData xattr -rc .
![](https://1.bp.blogspot.com/-mhaGDAU3RgU/Xs0W52aTKWI/AAAAAAAACxI/SYR24XYryIky2zJwQHQupUQAcju74gItQCK4BGAsYHg/s1200/Xcode%2Bcan%25E2%2580%2599t%2Barchive%2Bcodesign%2Bfailed%2Bwith%2Bexit%2Bcode%2B1.png)
In case Xcode, when you try to compile an app in simulator give you “Command /usr/bin/codesign failed with exit code 1”.
Open the terminal and paste:
cd ~/Library/Developer/Xcode/DerivedData xattr -rc .
da
Tag: