5

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Nathan H
  • 48,033
  • 60
  • 165
  • 247

2 Answers2

8

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
andrhamm
  • 3,924
  • 4
  • 33
  • 46
Brian Broom
  • 497
  • 4
  • 11
8

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

Abizern
  • 146,289
  • 39
  • 203
  • 257