XCode 4上的库搜索路径问题

时间:2011-10-07 19:21:15

标签: iphone objective-c ipad

所以,当我尝试在我的笔记本电脑上运行我的项目时工作正常,但将其移植到另一台计算机上会让我:

ld: warning: directory '/Developer-3.2.6/MyProject/Twitter+OAuth/Libraries & Headers' following -L not found
ld: library not found for -lOAuth
collect2: ld returned 1 exit status
Command /Developer-3.2.6/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

我的图书馆搜索路径是:

  

“$(DEVELOPER_DIR)/ MyProject / Twitter + OAuth / Libraries& Headers”

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:5)

尝试更改库搜索路径以转义空格和&符号(&):

$(DEVELOPER_DIR)/MyProject/Twitter+OAuth/Libraries\ \&\ Headers