Permission denied
sumardi opened this issue · 5 comments
I got this error when building:
error: couldn't create directory /Users/smd/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin/Contents: Permission denied
If you have similar error message, just create Plug-ins
directory and chmod 777
.
$ sudo mkdir /Users/smd/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/
$ sudo chmod -R 777 /Users/smd/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/
Thanks, I've added a link to this issue in the readme file.
Thanks ;)
For Xcode 4.4.1 / OS X 10.8.1, the Developer folder is located at ~/Library/Developer. So, I assumed (perhaps incorrectly...) that we should change the path in Xcode's Build Settings for Project, from
$(HOME)/Library/Application Support/Developer/Shared/Xcode/Plug-ins
to
$(HOME)/Library/Developer/Shared/Xcode/Plug-ins
and similarly, for Target, to
/Library/Developer/Shared/Xcode/Plug-ins
to get it to work, and if necessary use the above commands with the path
~/Library/Developer/Shared/Xcode/Plug-ins
This seemed to work on my system - I did not have to create the folder or set permissions manually.
However, I did not see the plugin actually working after restarting Xcode. Am I perhaps missing something silly?
As far as I can tell, both locations (~/Library/Developer/...
and ~/Library/Application Support/Developer/...
) exist for Xcode 4.4.1 (which I also use). But it seems that Xcode only loads plugins from ~/Library/Application Support...
. This isn't documented anywhere, of course, so there could be another location that I'm not aware of.
Indeed, my assumption was wrong, and it does work fine when I moved the file to $(HOME)/Library/Application Support/Developer/Shared/Xcode/Plug-ins (after manually creating the folders to complete the latter part of that path).
It's a neat little tool. Thanks! :) And I apologise for my late reply to your helpful response.