Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Command /usr/sbin/chown failed with exit code 1" when Archiving

Tags:

xcode

ios

chown

I am trying to archive my first iOS 4.3 Application for iPhone and I always encounter this error:

Command /usr/sbin/chown failed with exit code 1

I have searched through various forums, trying solutions such as changing the Alternate Install Group (which I don't know what to change to), and turning on 'Skip Install'.

like image 256
Justin Avatar asked Aug 10 '11 22:08

Justin


3 Answers

As dumb as it sounds, in XCode 5.1.1, all I had to do was quit out and restart XCode just now. I know it's not much of an "answer" but it just worked for me.

Edit: this is still working as of July 2018 for folks. Edit: this is still working as of January 2019 xcode 9.4.1

like image 113
Dan Avatar answered Nov 12 '22 09:11

Dan


enter image description here

I was having difficulty with the SetOwnerAndGroup part of Archiving - I was getting /usr/sbin/chown failed, and it was getting 'operation not permitted' on each file it tried to 'chown'.

This was easily tested in the terminal - 'chown' doesn't work, but 'sudo chown' does. Since I had no need to be changing file permissions, the simplest solution was to not do the chown.

The screenshot above shows - I just blanked out Install Owner/Group, and that did it.

like image 22
adalle Avatar answered Nov 12 '22 07:11

adalle


When I got this error, rebooting my computer fixed it.

like image 61
dl. Avatar answered Nov 12 '22 07:11

dl.