xcode - Conflicting libraries in iOS project -


so have 2 libraries think conflicting each other. have following settings key "library search path":

"$(srcroot)/projectname/release-iphone/lib" 1 of libraries, , "$(srcroot)/projectname" another.

i have added coreplot library project work requires following linker flags: -objc -all_load.

now when add 1 or both of them following message , project won't build:

duplicate symbol _objc_class_$_gtmhttpfetcher in:     /users/user/library/developer/xcode/deriveddata/projectname-chibchblpntaapfagqcohtkixhib/build/intermediates/projectname.build/debug-iphoneos/projectname.build/objects-normal/armv7/gtmhttpfetcher.o     /users/user/dropbox/projectname/projectname/projectname/libgtltouchstaticlib.a(gtmhttpfetcher.o) duplicate symbol _objc_metaclass_$_gtmhttpfetcher in:     /users/user/library/developer/xcode/deriveddata/projectname-chibchblpntaapfagqcohtkixhib/build/intermediates/projectname.build/debug-iphoneos/projectname.build/objects-normal/armv7/gtmhttpfetcher.o     /users/user/dropbox/projectname/projectname/projectname/libgtltouchstaticlib.a(gtmhttpfetcher.o) ld: 176 duplicate symbols architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation) 

the problem turns out google api library libgtltouchstaticlib.a don't how linker flags influence it.

it looks though have source file included directly project having link library. should choose 1 or other (probably library).


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -