简体   繁体   English

Xcode 4 上的权限被拒绝

[英]Permission Denied on Xcode 4

I'm getting error message about permission denied, when I build any app on Xcode 4:当我在 Xcode 4 上构建任何应用程序时,我收到有关权限被拒绝的错误消息:

error: unable to create '/Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products' (Permission denied)错误:无法创建“/Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products”(权限被拒绝)

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/mik检查依赖关系 ProcessInfoPlistFile /Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app/Info.plist JewBack-Info.plist cd /Users/mike/Downloads/J 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 /DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app/Info.plist 错误:无法创建目录/Users/mike/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzshjvhds/Products/Debug-iphonesimulator/JewBack.app/Info.plist Debug-iphonesimulator/JewBack.app:权限被拒绝错误:无法创建目录/Users/mik e/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app: Permission deniederror: The file “Info.plist” doesn't exist. e/Library/Developer/Xcode/DerivedData/JewBack-ejcsrvhiqaxnzmdheqdhshjvwjng/Build/Products/Debug-iphonesimulator/JewBack.app:权限被拒绝错误:文件“Info.plist”不存在。

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.Xcde菜单栏中转到:首选项>位置选项卡。 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.此文件夹将在您的项目文件夹中为构建的二进制文件创建。

please check your Xcode version and upgrade your Xcode.请检查您的 Xcode 版本并升级您的 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.早期我使用 Xcode 6.1,然后我升级 Xcode 版本 6.2 后,我收到了该 Xcode 版本的错误消息。 now It is working perfectly.现在它运行良好。 when you upgrade your OS X version You should upgrade Xcode version.当您升级 OS X 版本时,您应该升级 Xcode 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM