[Solved]Getting error while integrating SDKBOX google analytics in iOS

Hello,

I have integrated Facebook, Chartboot, Rating & Review and IAP, now i’m integrating SDKBOX google analytics. Here i’m getting below error.

Undefined symbols for architecture i386:
“sdkbox::PluginGoogleAnalytics::init(char const*)”, referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
“sdkbox::PluginGoogleAnalytics::logEvent(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int)”, referenced from:
CCGamePlayScene::doButtonPressedAction(cocos2d::Ref*) in CCGamePlayScene.o
CCGamePlayScene::doPowerButtonPressedAction(cocos2d::Ref*) in CCGamePlayScene.o
CCPowerupManager::powerUpdateBuyActionFrom(StoreDetailStruct*) in CCPowerupManager.o
CCGameLogicManager::livesUpdateBuyActionFrom(StoreDetailStruct*) in CCGameLogicManager.o
CCGameLogicManager::doButtonPressedAction(cocos2d::Ref*) in CCGameLogicManager.o
CCSettingScreen::doButtonPressedAction(cocos2d::Ref*) in CCSettingScreen.o
CCHUDLayer::createBigSolutionMap(bool) in CCHUDLayer.o

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please help me.

Solved by adding PluginGoogleAnalytics.framework and libsqlite3.0.tbd in Build phases.

1 Like