Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

AdColony Linker Error

$
0
0

@ThunderStruct wrote:

I recently imported AdColony into my project, followed the normal approach in the sample (calling the init() method and inheriting from the listener and all), and I keep getting a "missing symbols error" by the linker.

The exact error is below:
Undefined symbols for architecture x86_64:
"sdkbox::PluginAdColony::setListener(sdkbox::AdColonyListener*)", referenced from:
Game::init() in Game.o
"sdkbox::PluginAdColony::removeListener()", referenced from:
Game::onTouchEnded(cocos2d::Touch const*, cocos2d::Event*) in Game.o
Game::mainMenuCallback() in Game.o
"sdkbox::PluginAdColony::init()", referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
"sdkbox::PluginAdColony::show(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
Game::adCallback() in Game.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please note that I tried testing on a device and I get the same error (symbol(s) not found for architecture arm64)

My guess is one of two things could be causing this problem:
1- libz.1.2.5.dylib is needed and is missing since Apple replaced it with libz.1.2.5.tbd
2- It's clashing with one of the other plugins (I'm using iAP only, but I did import other plugins before and deleted them (removed the .framework files))

In case the problem is the latter, how can I remove a plugin from sdkbox cleanly? I removed the .framework file and used the forget command, is there anything else I should do to completely remove plugins and start fresh?
If the problem is the dylib, are there any workarounds? I included the .tbd and it didn't work. I also tried including libz.1.dylib (which is essentially libz.1.2.5.dylib) and that also didn't work.

Thanks!

EDIT: please note that the error is definitely not in the code. A simple #include "PluginAdColony/PluginAdColony.h" and sdkbox::PluginAdColony::init() in AppDelegate::applicationDidFinishLaunching() is giving out the same error. I'm almost positive it has to do with the dylib file and I tried every possible way of including it and it's giving out the same error!

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>