Permission Denied on Xcode 4

风流意气都作罢 提交于 2019-12-18 13:08:24

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/8109468/permission-denied-on-xcode-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!