关于iphone:找不到库-命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1

library not found - Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

将活动目标切换到iPad时出现编译器错误。将活动目标设置为iPhone时,不会发生任何错误。

我尝试将\\'Library Search Paths \\'修改为以下内容,但是没有运气。
-$(继承)
-\\\\" $(SRCROOT)\\\\"
-\\\\" $(SRCROOT)/ Classes \\\\"

1
2
3
ld: library not found for -lGoogleAnalytics
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

-GoogleAnalytics位于Classes / thirdparty / libGoogleAnalytics.a Classes / thirdparty / GANTracker.h

是否缺少属性构建设置?


库路径搜索不是递归的。您需要为链接器在该目录中的库显式添加Classes/thirdparty路径。