Hi.
Have linker error when integrate Flurry (1.4.1.7) and Appodeal (1.4.1.7) together in my project.
Use cocos2d-x 3.8.1, xCode 7.1.1 and sdkbox v0.5.7.24.
Steps to reproduce:
-
Get sample from here https://github.com/sdkbox/sdkbox-appodeal-sample
-
Download and add Appodeal.framework
-
Compile. All is good and work.
-
Open terminal, go to project dir and than
sdkbox import flurryanalytics. Installation Successful. -
Compile and get
…
duplicate symbol OBJC_IVAR$_FlurryPLCrashReportMachExceptionInfo._type in:
sdkbox-appodeal-sample-master/appodealCpp/proj.ios_mac/Appodeal.framework/Appodeal(PLCrashReportMachExceptionInfo.o)
sdkbox-appodeal-sample-master/appodealCpp/proj.ios_mac/PluginFlurryAnalytics.framework/PluginFlurryAnalytics(PLCrashReportMachExceptionInfo.o)
duplicate symbol OBJC_METACLASS$_FlurryPLCrashReportMachExceptionInfo in:
sdkbox-appodeal-sample-master/appodealCpp/proj.ios_mac/Appodeal.framework/Appodeal(PLCrashReportMachExceptionInfo.o)
sdkbox-appodeal-sample-master/appodealCpp/proj.ios_mac/PluginFlurryAnalytics.framework/PluginFlurryAnalytics(PLCrashReportMachExceptionInfo.o)
ld: 253 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If remove linker flag -ObjC than project will compile without any errors but get crash on init appodeal plugin.
If remove PluginFlurryAnalytics.framework from project everything will be ok again.
What is wrong?