angelokh
angelokh

Reputation: 9428

Error cleaning build folder - You do not have required file permissions

I'm using xcode 6. Its fine to clean but it fails when I choose clean build folders.

enter image description here

Upvotes: 48

Views: 7695

Answers (4)

Doug Null
Doug Null

Reputation: 8327

In Xcode 14 I clicked "Clean" command which had popped up in the 3rd row from the top and that fixed it.

Upvotes: 0

Avinash Babu
Avinash Babu

Reputation: 6252

Seems like you are restricted to create a build folder in your system root.

In XCode Menu --> Preferences --> Locations Tab --> Locations sub-tab, Change Derived Data to Relative and give any name in text box.

Have a look here which is also a permission problem in Xcode.

Upvotes: 72

samwize
samwize

Reputation: 27353

It could be due to Xcode bug (at least for me in Xcode 6.3.1). Toggling the location for derived data folder will fix it.

Go to Xcode > Preferences > Locations and change Derived Data to Relative, then back to Default.

Clean build folder again.

Upvotes: 7

JerryZhou
JerryZhou

Reputation: 5166

I just clean that folder in Finder, then all fine.

Upvotes: 0

Related Questions