Version 9.13.0
Our demo app showcases how to integrate the Chartboost SDK.
The master branch includes the example app supporting the latest version of the Chartboost SDK.
For previous SDK versions check out the other branches.
The demo can be built with either dependency manager — the app is identical, only the SDK integration differs:
- CocoaPods: run
pod install, then openChartboostSDKDemo.xcworkspace. - Swift Package Manager: open
ChartboostSDKDemo-SPM.xcodeprojdirectly — Xcode resolves theChartboostSDKpackage on open.
Note (SPM): the Chartboost SDK ships as a static framework containing Objective-C categories, so apps integrating it via SPM must add
-ObjCtoOTHER_LDFLAGS(already configured in the demo project). CocoaPods adds this flag automatically.
Both projects include the same two targets (and schemes):
-
ChartboostSDKDemo-Swift: The Chartboost SDK is integrated in Swift files. -
ChartboostSDKDemo-ObjC: The Chartboost SDK is integrated in Objective-C files.