Swift Package Manager distribution for the Amazon Publisher Services (APS) iOS SDK. The XCFramework itself is hosted on Amazon CloudFront; this repository provides the Package.swift manifest and a thin wrapper target that declares the system frameworks required by the SDK.
- iOS 15.0+
- Xcode 15.0+
- Swift 5.7+
Xcode
- File → Add Package Dependencies…
- Enter
https://github.com/amzn/swift-package-manager-amazon-aps.git - Select "Up to Next Major Version" from
5.7.0. - Add the
AmazonPublisherServicesSDKproduct to your app target.
Package.swift
.package(url: "https://github.com/amzn/swift-package-manager-amazon-aps.git", from: "5.7.0")Then add the product to your target:
.product(name: "AmazonPublisherServicesSDK", package: "swift-package-manager-amazon-aps")// Objective-C
#import <DTBiOSSDK/DTBiOSSDK.h>// Swift
import DTBiOSSDKAmazonPublisherServicesSDK is the SPM product (what you attach in Xcode); DTBiOSSDK is the module you import in code.
DTBiOSSDK is an Objective-C framework. CocoaPods sets -ObjC automatically; SPM does not. If you observe missing selectors or categories at runtime, add -ObjC to Build Settings → Other Linker Flags for your app target.
Adapters live in separate repositories:
swift-package-manager-amazon-aps-admob— Google AdMobswift-package-manager-amazon-aps-inmobi— InMobiswift-package-manager-amazon-aps-mobilefuse— MobileFuseswift-package-manager-amazon-aps-verve— Verve (HyBid)swift-package-manager-amazon-aps-pubmatic— PubMatic (OpenWrap SDK)
Adding an adapter package transitively pulls in this SDK; you do not need to add both.
Apache License 2.0. See LICENSE.