Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode can't create output file, permission denied

In Xcode I cannot compile my application anymore, the error is:

/usr/bin/lipo: can't create output file: /Users/nathan/Library/Developer/Xcode/DerivedData/PackageTracking-fpewhfohxohurlexwettvkopakyn/Build/Products/Release/PackageTracking.app/Contents/MacOS/PackageTracking (Permission denied)
error: couldn't remove '/Users/nathan/Library/Developer/Xcode/DerivedData/PackageTracking-fpewhfohxohurlexwettvkopakyn/Build/Products/Release/PackageTracking.app/Contents/MacOS/PackageTracking' after command failed: Permission denied

This folder was created by Xcode, why do I get a permission denied?

I tried to do a clean, same.

like image 236
Nathan H Avatar asked Jun 19 '11 11:06

Nathan H


2 Answers

Are you logged on to the nathan user account?

Have you tried deleting tho derived date location in Organiser and trying again? enter image description here

like image 73
Abizern Avatar answered Oct 06 '22 23:10

Abizern


I had a similar issue with permission denied to create folders in the /Users/username/Library/Developer/Xcode folder.

What fixed things for me was to do the following in terminal

sudo chown -R username /Users/username/Library/Developer/Xcode
like image 8
Brian Broom Avatar answered Oct 06 '22 22:10

Brian Broom