如何解决:Xcode 由于问题而无法打开?

发布于 2024-11-08 15:33:17 字数 535 浏览 0 评论 0原文

安装 Xcode 4.0.2 后,当我尝试通过双击现有项目来启动它时,出现此错误:

Dyld 错误消息: 未加载库:@rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation 引用自:/Developer/Developer/Applications/Xcode.app/Contents/MacOS/Xcode 原因:找不到图片

通过扩展坞启动 Xcode 并从 Xcode 内部打开项目效果很好。另请注意,修复安装 Xcode 并不能解决问题。我还没有尝试完全卸载 Xcode 并从头开始安装,但我宁愿避免这种情况,因为我已经按照我喜欢的方式很好地自定义了 IDE。

更新:我刚刚尝试通过sudo Developer/Library/uninstall-devtools --mode=all完全卸载Xcode,然后重新启动并重新安装。仍然有同样的问题。

After installing Xcode 4.0.2, I get this error when I try to launch it by double-clicking on an existing project:

Dyld Error Message:
Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation
Referenced from: /Developer/Developer/Applications/Xcode.app/Contents/MacOS/Xcode
Reason: image not found

Launching Xcode via the dock and opening the project from inside Xcode works fine. Also note that doing a repair install of Xcode did not resolve the issue. I haven't tried completely uninstalling Xcode and installing from scratch, but I would prefer to avoid that as I have my IDE nicely customized the way I like it.

Update: I just tried a complete uninstall of Xcode via sudo Developer/Library/uninstall-devtools --mode=all then rebooted and reinstalled. Still having the same issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

埋葬我深情 2024-11-15 15:33:17

重新安装之前,请确保您的项目文件设置为使用预期的 Xcode 4 副本打开。在 Finder 中选择它,按 Cmd-I,并确保“打开方式...”弹出窗口设置为正确的 Xcode 4 副本。

Before you reinstall, make sure your project file is set to open with the expected copy of Xcode 4. Select it in Finder, press Cmd-I, and make sure the Open With... popup is set to the right copy of Xcode 4.

幽蝶幻影 2024-11-15 15:33:17

根据下面的讨论,问题是它不在/Developer/Applications/文件夹中。然而,我认为这只是问题根源的线索,因为 Xcode 应该在多个位置工作。有可能 Xcode 在安装时设置了固定路径并且无法移动。你安装后是否碰巧移动了它?

http://www.iphonedevsdk.com/forum/off-topic /35948-xcode-crash.html

According to the discussion below, the problem is that it is not in the /Developer/Applications/ folder. However, I think that is just a clue to the source of the problem, because Xcode is supposed to work in multiple locations. It is possible that Xcode sets fixed paths when installed and can't be moved. Did you happen to move it after installing?

http://www.iphonedevsdk.com/forum/off-topic/35948-xcode-crash.html

梦回梦里 2024-11-15 15:33:17

被破坏的是 ALIAS,而不是 Xcode。如果您重新安装了 Xcode,您应该为您的 Dock 或桌面或其他地方创建一个新的别名。删除旧的别名,因为它不再有用了。

Xcode(应该)安装在 /Developer 中。您可以通过名为“Macintosh HD”之类的硬盘驱动器来实现这一点。从那里创建一个新别名。

It is the ALIAS that is busted, not Xcode. If you reinstalled Xcode, you should make a new alias for your Dock or Desktop or wherever. Delete the old alias as it is no good any more.

Xcode (should) install in /Developer . You can get to that by going to your hard drive named something like "Macintosh HD". Make a new alias from there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文