未找到库 - 命令/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

查看:239
本文介绍了未找到库 - 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将活动目标切换到iPad时遇到编译器错误。当活动目标设置为iPhone时,没有错误。

Im getting a compiler error when switching my active target to iPad. No errors occur when the active target is set to iPhone.

我试图修改图书馆搜索路径到以下,但没有运气。
- $(继承)
- \$(SRCROOT)\
- \$(SRCROOT)/ Classes\

I tried modifying 'Library Search Paths' to the following below, but no luck. - $(inherited) - \"$(SRCROOT)\" - \"$(SRCROOT)/Classes\"

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

-GoogleAnalytics lives in Classes/thirdparty/libGoogleAnalytics.a Classes/thirdparty/GANTracker.h

是否有缺少属性构建设置?

Is there a property build setting Im missing?

推荐答案

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

Library path searching is not recursive. You will need to explicitly add the Classes/thirdparty path for libraries within that directory to be found by the linker.

这篇关于未找到库 - 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆