Xcode 4.0.1“无权查看”旧项目文件 - 帮助!
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5478480/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 4.0.1 "Don't have permission to view" Old project file - Help!
提问by Jon
I recently upgraded to Xcode 4.0.1 from the last version of Xcode 3x (not sure which). Install went fine and I can open and view all my old .xcodeproj files without problems. All except one!
我最近从最新版本的 Xcode 3x(不确定是哪个)升级到 Xcode 4.0.1。安装很顺利,我可以毫无问题地打开和查看所有旧的 .xcodeproj 文件。除了一个!
The error I get inside Xcode is
我在 Xcode 中得到的错误是
"The file "GCSCalculator.xcodeproj" couldn't be opened because you don't have permission to view it. To view or change permissions, select the item in the Finder and choose File > Get info."
“无法打开文件“GCSCalculator.xcodeproj”,因为您没有查看它的权限。要查看或更改权限,请在 Finder 中选择该项目,然后选择“文件”>“获取信息”。
Obviously I've checked that and the permissions are exactly the same for all files as the ones in the projects that do open in Xcode. I changed permissions for everyone to ReadWrite just in case, to no avail. I feel I've tried everything obvious and can't seem to find anybody else with the same problem.
显然,我已经检查过,所有文件的权限与在 Xcode 中打开的项目中的文件完全相同。我将每个人的权限更改为 ReadWrite 以防万一,但无济于事。我觉得我已经尝试了所有明显的方法,但似乎找不到其他有同样问题的人。
Anyone got any ideas about a fix or workaround? Typically it was one of the only projects that was actually completed so its very frustrating!
有人对修复或解决方法有任何想法吗?通常它是唯一真正完成的项目之一,所以非常令人沮丧!
Thanks.
谢谢。
回答by user527506
I ran into the same problem and found that clicking on the project in xcode and then switching the view to standard editor view will let you change all of the project settings. After editing the summary, info, and build settings areas it started working
我遇到了同样的问题,发现在 xcode 中单击项目,然后将视图切换到标准编辑器视图将让您更改所有项目设置。编辑摘要、信息和构建设置区域后,它开始工作
回答by Huy Hóm H?nh
Click to project-> Build Settings -> Compiler for C/C++/Objective-C -> Default Compiler. Hope it useful :D
单击项目-> 构建设置-> C/C++/Objective-C 编译器-> 默认编译器。希望有用:D