xcode 项目中的错误:ld:找不到 -lcrt1.10.6.o 的库 [英] Error in xcode project: ld: library not found for -lcrt1.10.6.o

查看:33
本文介绍了xcode 项目中的错误:ld:找不到 -lcrt1.10.6.o 的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚升级到 Snow Leopard,安装了 Xcode 3.2,然后安装了 iPhone SDK 3 for SL.

Just upgraded to Snow Leopard, installed Xcode 3.2, then installed iPhone SDK 3 for SL.

在一个项目中,我现在在构建时遇到以下错误:

In a project, I now get the following error on build:

ld:未找到 -lcrt1.10.6.o

我在网上搜索过,但没有找到任何有用的东西.

I've searched around the net, but nothing helpful can be found.

推荐答案

Edit Project Settings -> 在构建选项卡中 -> 对于 Mac OS X 部署目标,XCode 3 将其更改为 10.5(即使在 10.6 上也不是 10.6)看看这是否有帮助.

Edit Project Settings -> In the build tab -> For Mac OS X Deployment Target, change it to 10.5 for XCode 3 (not 10.6 even if on 10.6) and see if that helps.

对于 XCode 4,您需要将其设置为 10.6

For XCode 4, you'll need to set it to 10.6

附言确保为所有目标设置了它,而不仅仅是发布或调试.(如果你不这样做,一个会失败,另一个不会)

P.S. Make sure you set that for all targets, not just release or debug. (if you didn't, one would fail, the other wouldn't)

这篇关于xcode 项目中的错误:ld:找不到 -lcrt1.10.6.o 的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆