Import the AtmosplayAds SDK - Atmosplay/AtmosplayAds-iOS Wiki

CocoaPods (preferred)

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:

pod 'AtmosplayAds'

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.

Manual download

  1. Download and unzip the SDK framework directly, and import the following folder into your Xcode project:
  1. Add the -ObjC linker flag to Other Linker Flags in your project's build settings:
  1. Add the $(SDKROOT)/usr/include/libxml2 path to Header Search Paths in your project's build settings:
  1. 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:

    • UIKit
    • Foundation
    • WebKit
    • SystemConfiguration
    • MobileCoreServices
    • AdSupport
    • CoreTelephony
    • StoreKit
    • Security
    • AudioToolbox
    • CoreMotion
    • AVFoundation
    • CoreMedia
    • xml2

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:

⚠️ ** Fallback** ⚠️