library not found - Command /Developer/Platforms/i

2019-08-18 06:55发布

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

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 lives in Classes/thirdparty/libGoogleAnalytics.a Classes/thirdparty/GANTracker.h

Is there a property build setting Im missing?

1条回答
祖国的老花朵
2楼-- · 2019-08-18 07:05

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.

查看更多
登录 后发表回答