无法在 XCode 4.3.2 中打开旧的 .xcodeproj 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9884228/
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
Cannot open older .xcodeproj file in XCode 4.3.2
提问by patschiboy
I just upgraded XCode to 4.3.2 and tried to load a project I am working on - in the past I simply used the "Open" menu and then pointed to the PROJECT.xcodeproj file (which is in fact a directory) - which then caused XCode to open the project. However when I do this now, I get an alert box stating that "The document PROJECT.xcodeproj" could not be opened.
我刚刚将 XCode 升级到 4.3.2 并尝试加载我正在处理的项目 - 过去我只是使用“打开”菜单然后指向 PROJECT.xcodeproj 文件(实际上是一个目录) - 然后导致 XCode 打开项目。但是,当我现在执行此操作时,会收到一个警告框,指出无法打开“文件 PROJECT.xcodeproj”。
Anyone else experiencing this? Any ideas what could be wrong or where to look for clues?
还有其他人遇到这种情况吗?任何想法可能是错误的或在哪里寻找线索?
回答by Stan Kurdziel
I got this error when using file->open from within Xcode. But I got a different error when double clicking the Name.xcodeproj file. It was:
在 Xcode 中使用 file->open 时出现此错误。但是我在双击 Name.xcodeproj 文件时遇到了不同的错误。它是:
Cannot open "Name.xcodeproj" because it is already open in another workspace.
Exiting Xcode completely and then double-clicking the .xcodeproj file to open the project and Xcode simultaneously solved it for me =)
完全退出Xcode然后双击.xcodeproj文件打开项目,Xcode同时帮我解决了=)
回答by Anson
I originally had Xcode projects on 4.3.2 and wanted to transfer the files to a new macbook I just bought and installed Xcode on. For those people saying that just transferring the files over and starting it up will work, it didn't for me as the Xcode that installed on the my new macbook as 4.3.3 I would get the error window pop-up saying 'could not open __.xcodeproj' without any further explanation.
我最初在 4.3.2 上有 Xcode 项目,并且想将文件传输到我刚购买并安装了 Xcode 的新 macbook。对于那些说只需传输文件并启动它就可以工作的人,它不适合我,因为 Xcode 作为 4.3.3 安装在我的新 macbook 上,我会弹出错误窗口说“不能打开__.xcodeproj' 没有任何进一步的解释。
What did work for me was upgrading the 4.3.2 Xcode on the old mac to 4.3.3, THEN transferring the files over to the new macbook (that already had 4.3.3). Then no issues.
对我有用的是将旧 mac 上的 4.3.2 Xcode 升级到 4.3.3,然后将文件传输到新的 macbook(已经有 4.3.3)。然后没有问题。
回答by Joe
I just started to experience that myself. I did a reboot of the machine and retried and it worked. I might also try a log out login too.
我自己才刚刚开始体验。我重新启动了机器并重试,它起作用了。我也可以尝试注销登录。
回答by Himanshu Mahajan
Exit Xcode completely and then double-click the .xcodeproj file you want to open.
完全退出 Xcode,然后双击要打开的 .xcodeproj 文件。