我将 Activity 目标切换到iPad时收到编译器错误。将 Activity 目标设置为iPhone时,不会发生任何错误。
我尝试将“图书馆搜索路径”修改为以下内容,但没有好运。
-$(继承)
-\“$(SRCROOT)\”
-\“$(SRCROOT)/Classs \”
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
最佳答案
库路径搜索不是递归的。您将需要为链接器在该目录中的库显式添加Classes/thirdparty
路径。
关于iphone - 找不到库-命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4714546/