Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission Denied on Xcode 4

I'm getting error message about permission denied, when I build any app on Xcode 4:

error: unable to create '/Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products' (Permission denied)

There's other error message, too:

Check dependencies ProcessInfoPlistFile /Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app/Info.plist JewBack-Info.plist cd /Users/mike/Downloads/JewBack setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-infoPlistUtility JewBack-Info.plist -genpkginfo /Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app/Info.plist error: couldn't create directory /Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app: Permission deniederror: couldn't create directory /Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app: Permission deniederror: The file “Info.plist” doesn’t exist.

like image 798
nickj890 Avatar asked Nov 13 '11 03:11

nickj890


People also ask

Why is my Mac saying I don't have permission to view files?

If you don't have permission to open a file or folder, you may be able to change the permissions settings. On your Mac, select the item, then choose File > Get Info, or press Command-I. Click the arrow next to Sharing & Permissions to expand the section.


2 Answers

Ok. It seems you may be restricted to create Build Folder in your system. Try out the procedure below which creates a Build Folder in project folder itself.

In Xcde menu bar go to: Preferences > Locations Tab. In Locations change Derived Data to Relative and set any name in the text box. I have used "Build". This folder will be created in your project folder for built binaries.

like image 124
DShah Avatar answered Oct 07 '22 01:10

DShah


please check your Xcode version and upgrade your Xcode. early I was using Xcode 6.1 and I got error message with that Xcode version after then I upgrade Xcode Version 6.2. now It is working perfectly. when you upgrade your OS X version You should upgrade Xcode version.

like image 31
TMD Avatar answered Oct 07 '22 00:10

TMD