Act now on iOS 14.5 changes
All publishers must use Audience Network SDK 6.2.1 or later in order to monetize with iOS 14.5 users. (We also recommend Audience Network SDK 6.2.1 for iOS 14 users.) Within this version there are two requirements:
Read more on our Meta for Developers post
Upgrade to the latest version of the SDK before onboarding your app for monetization.
This guide explains how to include the Audience Network SDK in your iOS app so that you can call Audience Network APIs. The preferred method is to use CocoaPods to manage the dependencies; however, download locations for manual integration are also provided.
Add the following line to your project's Podfile.
pod 'FBAudienceNetwork'
Run the following command.
pod install
If using CocoaPods is not an option, you can download the Audience Network SDK from one of the locations in the following table.
Package | Date | Change Log |
---|---|---|
Oct 15, 2024 | ||
Aug 15, 2024 |
After you download the Audience Network SDK, complete the integration as follows:
Starting from 6.9.0, iOS Audience Network SDK has Swift enabled. Refer to points below in order to work through the most common problems of SDK installation & Swift interoperability:
__swift_FORCE_LOAD_$_swiftDataDetection
' and 'Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvider
. These errors mean that you are using not the latest version of XCode. Update to XCode 13 or newer to fix this errors.Undefined symbol__swift_FORCE_LOAD_$_
. These errors mean that you don't have Swift support enabled for your project. The simplest way to fix this is to add an empty Swift file ('File' -> 'New' -> 'Swift file' in XCode).