3.29.0
Added
- Adds initial support for Swift Package Manager. There are 2 new packages that have been added:
AppboyKit
for the core SDK andAppboyUI
for the full SDK (including UI elements), which correspond to theAppboy-iOS-SDK/Core
andAppboy-iOS-SDK
pods, respectively.- Note that tvOS support is not available via Swift Package Manager for this release. Push Stories is only available through a side-by-side integration with Cocoapods.
- To add the package to your project follow these steps:
- Select
File > Swift Packages > Add Package Dependency
.- In the search bar, enter
https://github.com/Appboy/Appboy-ios-sdk
. - Select one of
AppboyKit
orAppboyUI
. Note thatAppboyUI
includesAppboyKit
automatically.
- In the search bar, enter
- In your app's target, under
Build Settings > Other Linker Flags
, add the-ObjC
linker flag. - In the Xcode menu, click
Product > Scheme > Edit Scheme...
- Click the expand
▶️ next toBuild
and selectPost-actions
. Press+
and selectNew Run Script Action
. - In the dropdown next to
Provide build settings from
, select your app's target. - Copy this script into the open field:
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Frameworks/libAppboyKitLibrary.a" rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Plugins/libAppboyKitLibrary.a"
- Click the expand
- Select