Current SDK Version: 2.1.1
This guide is intended for developers who are integrating the
- Xcode 9 + with Bitcode enabled
- iOS 8 +
Fyber supports both CocoaPods and manual download to integrate our SDK:
Add the following line to your Podfile and run the pod install command
pod 'FairBidSDK', '~> 2.1.1'
- Download the
- Extract the inner zip file
- Drag and drop the following files to your project, making sure to have Copy Items checked
Import the following frameworks by pasting this code into your AppDelegate (you may need to enable modules in your Build Settings). (If you cannot enable modules because you're e.g. using [Objective]-C++, add these frameworks to the Linked Frameworks and Libraries section in Xcode).
@import AdSupport; @import CoreGraphics; @import CoreLocation; @import CoreTelephony; @import MediaPlayer; @import MessageUI; @import MobileCoreServices; @import QuartzCore; @import Security; @import StoreKit; @import SystemConfiguration; @import WebKit;
import AdSupport import CoreGraphics import CoreLocation import CoreTelephony import MediaPlayer import MessageUI import MobileCoreServices import QuartzCore import Security import StoreKit import SystemConfiguration import WebKit
Declare the -ObjC flag in the project by going to the application target >> Build Settings >> Other Linker Flags. Once there, click add new (+), and enter -ObjC.
From the General tab of your Xcode project's target settings page, link against these libraries:
From the General tab of your Xcode project's target settings page, check the box labeled Requires full screen (this disables multitasking support, which must be disabled for ads to be able to set the orientation of their views):
iOS 9 added App Transport Security (ATS), which requires apps to use HTTPS for all networking. As of 2017, Apple requires that all apps use ATS unless they state a reason they are unable to do so.
All of the 3rd networks that can be used with FairBid fully support ATS, and do not require any additional configuration.
You must statically declare your app’s intended usage of protected data classes by including the appropriate purpose string keys in your Info.plist file.
- Search for the following code in your Info.plist, to prevent exception crashes in IASDK:
“Privacy - Calendars Usage Description” “Privacy - Photo Library Additions Usage Description” “Privacy - Photo Library Usage Description”
In addition to integrating the
|Initialize the SDK|