Step 2: Adding iOS Dependencies
Cocoapods
CocoaPods is a dependency manager for iOS projects that simplifies the integration and management of third-party libraries and frameworks. The pod repo update && pod install
command updates the CocoaPods repository and installs the necessary dependencies to integrate them into your project.
- At the root of the
Podfile
insert the following:
- Run the following command:
pod repo update && pod install
Manual Download
If you prefer to integrate the mediated network by manually downloading the frameworks, do the following:
-
Download the DT FairBid SDK.
-
Extract the downloaded file.
-
Drag and drop
FairBidSDK.framework
into your Xcode project. -
Select the Copy items if needed checkbox.
-
From the General tab of your Xcode project's target settings, ensure that the
FairBidSDK.framework
is embedded in your app. -
From the Build Phases tab, click the plus sign (+), and select the New Run Script Phase checkbox.
-
Paste the following snippet into the script editor field:
bash ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/FairBidSDK.framework/strip-frameworks.sh
- Add the following imports to your Xcode project:
Some networks might require additional frameworks and may appear below.
You may also need to configure additional linker flags if specified by the SDK documentation. This ensures that the correct libraries are linked during the build process.
Step 3: Adding SKAdNetwork IDs
DT provides a list of SKAdNetwork IDs required for your app, including IDs for DT Exchange DSPs and any selected mediated networks from Step 1.
Add the provided SKAdNetwork IDs to your app’s info.plist
file.
Important
The SKAdNetwork ID list may change over time. To ensure you have the most current information, DT recommends integrating the SKAdNetwork ID Auto Updater Tool into your build.