【问题标题】:library not found - Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1找不到库 - 命令 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1
【发布时间】:2011-01-17 15:01:28
【问题描述】:

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

我尝试将“库搜索路径”修改为以下内容,但没有成功。 - $(继承) - \"$(SRCROOT)\" - \"$(SRCROOT)/类\"

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

是否缺少我缺少的属性构建设置?

【问题讨论】:

    标签: iphone objective-c ipad compiler-errors


    【解决方案1】:

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

    【讨论】:

    • 表示抱歉,但我面临同样的问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-11
    • 2011-07-12
    • 1970-01-01
    • 2011-12-16
    • 1970-01-01
    相关资源
    最近更新 更多