ios - Error "ld: library not found for -lGTLTouchStaticLib" when linking Google APIs Objective-C Client Library as static library to app -
i seek linking app ios static library google apis objective-c client library described here. involved dragging libgtltouchstaticlib.a gtl.xcodeproj's products area in xcode project navigator view app's link binaries libraries build phase.
i run error when building app project in xcode 5.1.1:
ld: warning: directory not found alternative '-l/users/me/library/developer/xcode/deriveddata/gtl-abc/build/products/debug' ld: library not found -lgtltouchstaticlib clang: error: linker command failed exit code 1 (use -v see invocation) further investigation reveals following:
xcode reports total path product libgtltouchstaticlib.a in gtl.xcodeproj /users/me/library/developer/xcode/deriveddata/gtl-abc/build/products/debug/libgtltouchstaticlib.a (i.e. w/o suffix -iphoneos)
however, (the os x command) ls reports location /users/me/library/developer/xcode/deriveddata/gtl-abc/build/products/debug-iphoneos/libgtltouchstaticlib.a (i.e. suffix -iphoneos)
dragging libgtltouchstaticlib.a has apparently added next entry app's library search path (under build settings): $(user_library_dir)/developer/xcode/deriveddata/gtl-abc/build/products/debug (i.e. w/o suffix -iphoneos)
what causes different application of suffixes 2 xcode projects , how can align behavior in "normal" way (i.e. without "hacking" app's library search path).
ios xcode static-libraries google-client
No comments:
Post a Comment