clang 找不到任何框架
我一直在为此抓狂,而谷歌并没有取得太多成果,所以我的问题一定是由我自己的愚蠢行为造成的。
基本上,安装了 Xcode 4 后,我删除了 /Developer-old 文件夹(正确地,不记得命令,但我使用了卸载脚本,而不是把它放在垃圾箱中)。
Xcode 可以很好地构建项目,并且所有 Objective-C 框架的最新版本似乎都位于 /System/Library/Frameworks 中,但是当我编译某些内容(在 Xcode 3 天中构建得很好)时,clang 抱怨它找不到任何标题,例如:
致命错误:找不到'Cocoa/Cocoa.h'文件
我尝试使用-F
强制框架搜索路径,但无济于事 - 是否存在一个常见的根本问题还是我刚刚搞砸了我的机器?
I've been tearing my hair out over this, and Google hasn't yielded much so my problem must be caused by my own specific brand of stupidity.
Basically, having installed Xcode 4 I removed the /Developer-old folder (properly, can't remember the command but I used the uninstall script rather than sticking it in the trash).
Xcode builds projects fine, and the latest version of all the Objective-C frameworks seem to live in /System/Library/Frameworks, but when I compile something (which built fine in the Xcode 3 days) clang complains that it can't find any headers, e.g:
fatal error: 'Cocoa/Cocoa.h' file not found
I've tried forcing the framework search path with -F
to no avail- is there a common underlying issue or have I just screwed my machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
重新安装开发者工具。这比追踪你破坏的任何东西花费的时间要少得多。
Reinstall the developer tools. It will take a lot less time than tracking down whatever you broke.