AndyF.
AndyF.

Reputation: 51

Cocos2d-x AdMob iOS Integration Errors

Chaps

Finally back to my first game using Cocos2d-x (3.8) and trying to display a banner ad in iOS/xCode. Struggled with this for several days and read half of the internet. Apologises if the fix is out there to be found.

What I did….

Added the following frameworks to my project:

iAd,,AdSupport, AudioToolbox, AVFoundation, CoreData, CoreGraphics, CoreTelephony, GameController, EventKit, EventKitUI, MediaPlayer, MessageUI, StoreKit, SystemConfiguration

Build Settings -> Build Options -> Enable Bitcode => No

Build Settings -> Linking -> Other Linker Flags, add -ObjC

Downloaded the GoogleMobileAds.framework, unzipped to find GoogleMobileAds.framework.

Drag this from Finder into the [Project] -> Frameworks folder. Select ‘Copy items if needed’. Also added the Mediation Adapters folder with headers.

Download the iAdAdapter library, unzipped download to find libAdapterIAd.a library.

Drag this from Finder into the [Project] -> Frameworks folder. Select ‘Copy items if needed’.

enter image description here

Added the GoogleMobileAds.framework and libAdapterIAd.a to my Build Phases -> Link Binary with Libraries.

enter image description here

The error I see:

enter image description here

Any fixes would be greatly appreciated.

Upvotes: 0

Views: 127

Answers (2)

Guru
Guru

Reputation: 22042

Add These Two Frameworks :

SafariServices
CoreBluetooth

enter image description here

Upvotes: 0

Droppy
Droppy

Reputation: 9731

You need to add the CoreBluetooth framework.

Upvotes: 1

Related Questions