Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors trying to use AdWhirl with Admob

I am trying to setup a test application for AdWhirl to see how this functions etc. I have setup a new application in Xcode which just loads a single view.

I have downloaded and added the latest SDK for AdWhirl then removed all the folders in adapters I am not using...Per step 4 - https://www.adwhirl.com/doc/ios/AdWhirliOSSDKSetup.html

I have then downloaded the SDK for AdMob and setup a new application on Admob, entering the relevant pub ID into the settings for AdWhirl... still with me?

Without making any further changes to the app itself I am getting build errors below:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
  objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
  -[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o)

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

I have all the relevant libraries included picture to show. Also included a pic to show the layout of files.

Has anyone had this issue and can help. A lot of the posts on here say to check MessageUI framework and check build settings for framework search paths but this is all fine in this case...

enter image description here

enter image description here

like image 843
StuartM Avatar asked Dec 05 '12 13:12

StuartM


Video Answer


2 Answers

It looks like you are missing the StoreKit framework, which is needed by Admob. Try adding it to your project. See https://developers.google.com/mobile-ads-sdk/docs/

like image 70
Arviiid Avatar answered Sep 16 '22 23:09

Arviiid


I noticed StoreKite.framework was automatically unlinked when I toggled the "In-App Purchase" switch to OFF in Capabilities tab of my project. Cheeky.

like image 29
Surpher Avatar answered Sep 18 '22 23:09

Surpher