简体   繁体   中英

Command /usr/sbin/chown failed with exit code 1 (xcode6)

I don't know what is this.I am trying to archive my app.I know there are lots of answers for this but i can't understand any answer.so please someone know how to solve this can tell me.

 SetOwnerAndGroup shivamrishi:staff /Users/shriyarishi/Library/Developer/Xcode/DerivedData/QuoteU-cqodwskdmizaqjgavubtjxrtedhv/Build/Intermediates/ArchiveIntermediates/QuoteU/InstallationBuildProductsLocation/Applications/QuoteU.app
cd "/Users/shriyarishi/Desktop/QuoteU "
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/sbin/chown -RH shivamrishi:staff /Users/shriyarishi/Library/Developer/Xcode/DerivedData/QuoteU-cqodwskdmizaqjgavubtjxrtedhv/Build/Intermediates/ArchiveIntermediates/QuoteU/InstallationBuildProductsLocation/Applications/QuoteU.app

last code

  chown: /Users/shriyarishi/Library/Developer/Xcode/DerivedData/QuoteU-cqodwskdmizaqjgavubtjxrtedhv/Build/Intermediates/ArchiveIntermediates/QuoteU/InstallationBuildProductsLocation/Applications/QuoteU.app: Operation not permitted
Command /usr/sbin/chown failed with exit code 1

image https://drive.google.com/file/d/0B2z_d4wEKPEFVWsxV0xUczhFck0/view?usp=sharing

Only super-user can chown files. From the chown(8) man page:

For obvious security reasons, the ownership of a file may only be altered by a super-user.

You should be using sudo if you want to change file ownership. sudo will require your password, and that you be in the admin group on the computer (ie you must be marked as allowed to administer the computer).

sudo /usr/sbin/chown -RH shivamrishi:staff \
  /Users/shriyarishi/Library/Developer/Xcode/DerivedData/QuoteU-cqodwskdmizaqjgavubtjxrtedhv/Build/Intermediates/ArchiveIntermediates/QuoteU/InstallationBuildProductsLocation/Applications/QuoteU.app

This happened with me after my provisoning profile expired and I renewed it. This error was coming for me in some pods code so I removed the pod using

pod deintegrate

please check this , superb way to remove pods entirely from your project.

Then pod install .

It worked for me!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM