Import the AtmosplayAds SDK - Atmosplay/AtmosplayAds-iOS Wiki
The simplest way to import the SDK into an iOS project is to use CocoaPods. Open your project's Podfile and add this line to your app's target:
Then from the command line run:
pod install --repo-update
If you're new to CocoaPods, see their official documentation for info on how to create and use Podfiles.
- Download and unzip the SDK framework directly, and import the following folder into your Xcode project:
- Add the
-ObjClinker flag to Other Linker Flags in your project's build settings:
- Add the
$(SDKROOT)/usr/include/libxml2path to Header Search Paths in your project's build settings:
Add the following frameworks to your project by clicking on your application’s target, then clicking Build Phases and expanding the Link Binary With Libraries group.
The AtmosplayAdsSDK requires the following frameworks:
App Transport Security
App Transport Security (ATS) is a privacy feature introduced in iOS 9. It's enabled by default for new apps and enforces secure connections.
All iOS 9 and iOS 10 devices running apps built with Xcode 7 or higher that don't disable ATS will be affected by this change. This may affect your app's integration with the AtmosplayAds SDK.
The following log message appears when a non-ATS compliant app attempts to serve an ad via HTTP on iOS 9 or iOS 10:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
To ensure your ads are not impacted by ATS, do the following:
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>