我正在尝试修改旧的应用程序,当我构建它时,给出了以下2个警告:
ld: warning: directory
‘/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/lib’
following -L not found
和
ld: warning: directory
‘/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib’
following -L not found
谁知道这是从哪里来的?
我正在使用xCode 3.2.5
解决方法
好吧,如果要相信错误消息的文本:
ld: warning: directory [...] not found
…它说找不到目录.如果你谷歌搜索编译器标志,你会看到-L用于指定其他库搜索路径目录.所以它在错误中提到的目录不存在.
您需要在指定给定文件夹的某个位置查看项目设置 – 它需要更新到当前版本的SDK所在的当前目录.