Been trying to get Adcolony from the ads interface working but can't get it to build.
I've followed the steps from here
http://docs.giderosmobile.com/interface/adsBut the "adcolony.framework" file looks broken. Get the error:
AdColony/AdColony.h file not found
I downloaded the adcolony sdk and compared there "adcolony.framework" file and looks like the Headers folder in the ads interface version is showing as an exec file rather than a folder.
Tried replacing the framework with the one from the as colony sdk and i get:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_WKWebView", referenced from:
objc-class-ref in AdColony(ADCMRAIDCompanionAd.o)
"_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
objc-class-ref in AdColony(ADCMRAIDCompanionAd.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On the plus side it seems to find adcolony.h now.
Any help would be greatly appreciated.
I also have a couple steps in the process I wasn't sure about:
Do you add the AdColony.framework file to the frameworks folder in Xcode or in the plugins folder with the rest or doesn't it matter?
Do you add the "-ObjC" and "-fobjc-arc" to Other linker flags in build settings? I googled that as I'm new to Xcode (and coding generally
and only found reference to the -ObjC flag stuff.
Thanks
Comments
https://github.com/AdColony/AdColony-iOS-SDK/wiki/Xcode-Project-Setup
the one you are missing seems to be WebKit.framework
If it still doesn't work after you've added WebKit, here is a lazy tip to make sure "Search paths" don't cause issues. When you add files to XCode it automatically adds them to Search Paths. If your game contains spaces in the name there is a bug in XCode which means the path is broken into two separate entries in Search Paths.
To avoid this (and to save time) you can remove all search paths, add "$(SRCROOT)" and make it "recursive". This isn't an elegant solution (because XCode checks through your entire project when you export), but it works.
Set both "Header Search Paths" and "Library Search Paths" to $(SRCROOT) recursive.
Let me know if you are still having problems.
Niclas
Likes: totebo