- Home /
Unity 4 Can't build for iOS
I am new to Unity while I try to build project for iOS I get following error.
Error building Player: UnauthorizedAccessException: Access to the path "/Users/Dev/Library/Application Support/Developer/Shared/Xcode/Plug-ins" is denied.
I've XCode 4.6 installed and I noticed "/Users/Dev/Library/Application Support/Developer/Shared/Xcode/Plug-ins" directory doesn't exist in my mac. What am I missing?
Really appreciate any help.
Answer by Graham-Dunnett · Feb 12, 2013 at 01:26 PM
My /Users/Dev/Library/Application Support/Developer/Shared/Xcode/Plug-ins
folder has a symlink called Unity4XC.xcplugin
that points at:
/Applications/Unity/Unity.app/Contents/BuildTargetTools/iPhonePlayer/Unity4XC.xcplugin
Perhaps use ln
command to create this link.
graham$ cd ~/Library/Application\ Support/Developer/Shared/Xcode/
graham$ mkdir Plug-ins
graham$ cd Plug-ins
graham$ ln -s /Applications/Unity/Unity.app/Contents/BuildTargetTools/iPhonePlayer/Unity4XC.xcplugin
Just creating the missing "Plug-ins" directory solved the problem and I set the permissions to read/write for everyone.