Linker error with Facebook SDK v3.12 - ios

I'm trying add a few social networks skds to my project. I've started from Facebook SDK and all works fine. But when I added a google+ sdk and added -ObjC flag, compile start failing with next error:
/Users/developer/Documents/Projects/iOS/FacebookSDK.framework/FacebookSDK(Facebook.o)
ld: 49 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But when I remove this flag, compile going good. What should I do in this situation?

if some framework or lib required flags (-all_Load or -ObjC) you can load this special libs with Other Linker Flag like this one
-force_load "$(BUILT_PRODUCTS_DIR)/libRestKit.a"
don't remember exclude this lib from target to avoid symbol duplication

Related

Linking globals named 'fbad_Cocos2DGetGLViewController': symbol multiply defined

"ld: Linking globals named 'fbad_Cocos2DGetGLViewController': symbol
multiply defined! for architecture arm64 clang: error: linker command
failed with exit code 1 (use -v to see invocation)"
I'm getting this error in XCode build project have two SDKs "GoogleAdMob SDK Unity" and "FacebookAudienceNetwork" Unity.
Deleting -ObjC flag from other linker flags won’t work for me.
Is there anybody can help me fix that issue?
Single SDK build either its GoogleAdMOb Unity or FacebookAudienceNetwork Unity don't have any issue.
Adding both generate this error:
""ld: Linking globals named 'fbad_Cocos2DGetGLViewController': symbol
multiply defined! for architecture arm64"

duplicate symbol ___llvm_profile_runtime in

I am implementing Exact target SDK v5.1.1 as mention on link. But encounter an issue as bellow
duplicate symbol ___llvm_profile_runtime in:
/Applications/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/lib/darwin/libclang_rt.profile_iossim.a(InstrProfilingRuntime.cc.o)
/Users/abhijeetb/Documents/Projects/BitBucket/FixIssue/project_folder/project_name/MarketingCloudSDK/MarketingCloudSDK.framework/MarketingCloudSDK(__llvm_profile_runtime.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In our project, we have -all_load in other linking flag along with -Obj-C, -lc++, -lz, -liconv, If I remove -all_load flag then issue will not occur but not sure about the consequences.
Please guid me to resolved the issue.
Click on your project in Xcode and go to Build phases.
Look for __llvm_profile_runtime.o in compile sources and click on it and remove it from compile sources
Check to see that you aren't compiling the same file more than once.
If you search for __llvm_profile_runtime it should only show up once

Add a Facebook login in my app delegate but it is showing some errors

I am using Xcode 6.4.
I do not understand the problem.
ld: 230 duplicate symbols for architecture x86_64
I have tried to add -ObjC linker flag also.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)in swift
Any one help me please.

DocuSign iOS SDK - remove CMPopTipView from dependency

Both My project and DocuSign project are using CMPopTipView open source code. Due that I facing following error during runtime.
Build/Products/Debug-iphoneos/libPods-CMPopTipView.a(CMPopTipView.o)
duplicate symbol _OBJC_METACLASS_$_CMPopTipView in:
/Users/Mani/Library/Developer/Xcode/DerivedData/myApp-cwzhebmptltodqbylbytaqjfetaa/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/arm64/CMPopTipView.o
/Users/Mani/Library/Developer/Xcode/DerivedData/myApp-cwzhebmptltodqbylbytaqjfetaa/Build/Products/Debug-iphoneos/libPods-CMPopTipView.a(CMPopTipView.o)
ld: 34 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there a way to remove dependency of DocuSignSDK for CMPopTipView and set it to use one present in my code base? if yes how?
Thanks,
Mani

Add -ObjC Linker Flag build to fail

I have added the -ObjC linker flag (to add the street view api),it's work fine on simulator but it causes the build to fail on device.
ld: framework not found Metal for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
see this #Developer Adding -ObjC flag in xcode
and go through this link:https://github.com/Estimote/iOS-SDK/issues/153
hope it helps

Resources