ios - selective library linking Xcode 6 / LLVM 6 -


i selectively link library depending on configuration in project build settings. i.e.

debug: -l libcws_ps release: -l libcws

in library search paths, point directory contains these 2 .a libraries.

i'll point out worked on xcode 5, on xcode 6 it's not linking , i'm getting undefined symbol errors. if link using usual method - 'link binary libraries', works - don't have configuration based linking.

any ideas how fix this, or @ least clues how debug it?

libtool /users/dave/library/developer/xcode/deriveddata/filmflexmovies-ddwyjuvbhaqgqralpjczhprnltla/build/products/release-iphoneos/libiosirdetolibrary.a normal armv7 cd /users/dave/developer/git/filmflex/ios/submodules/iosmodelcontroller/submodules/iosirdetolibrary export iphoneos_deployment_target=7.0 export path="/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin:/applications/xcode.app/contents/developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos8.0.sdk -l/users/dave/library/developer/xcode/deriveddata/filmflexmovies-ddwyjuvbhaqgqralpjczhprnltla/build/products/release-iphoneos -lcloakwarestreaming/lib/ios -l/users/dave/developer/git/filmflex/ios/submodules/iosmodelcontroller/submodules/iosirdetolibrary/cloakwarestreaming/lib/ios -filelist /users/dave/library/developer/xcode/deriveddata/filmflexmovies-ddwyjuvbhaqgqralpjczhprnltla/build/intermediates/iosirdetolibrary.build/release-iphoneos/iosirdetolibrary.build/objects-normal/armv7/iosirdetolibrary.linkfilelist -framework mediaplayer -framework corevideo -framework avfoundation -framework uikit -framework foundation -o /users/dave/library/developer/xcode/deriveddata/filmflexmovies-ddwyjuvbhaqgqralpjczhprnltla/build/products/release-iphoneos/libiosirdetolibrary.a 

rtfm... or rtfrn... xcode 6 release notes

"xcode no longer pass options in build setting other_ldflags libtool when building static libraries, nor pass options in other_libtoolflags mach-o linker when building other kind of product. options in both settings passed both tools. make sure options in correct build setting product type, static library, or other component being built. (4285249)"

so wasn't passing 'other linker flags'. needed move them 'other librarian flags'.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -