This repository is provided as an alternative for the main Braze Swift SDK repository (braze-inc/braze-swift-sdk). It offers all of our libraries already prebuilt as mergeable XCFrameworks.
The Braze Swift SDK mergeable XCFrameworks are provided in early access. Please be aware that certain issues may arise depending on the version of Xcode you’re using. We are closely monitoring for any updates to Xcode before officially releasing this repository.
Regardless of the integration method chosen, you must enable support for mergeable libraries in your target(s) Xcode settings by setting Create Merged Binary to automatic
(MERGED_BINARY_TYPE=automatic
).
Failing to set
MERGED_BINARY_TYPE=automatic
can result in an increased app size.
Follow the steps described in our Swift Package Manager integration article, replacing the URL of the repository with https://github.com/braze-inc/braze-swift-sdk-prebuilt-mergeable
.
Follow the steps described in our CocoaPods integration article.
In your podfile, for each statement referencing a Braze pod, add a :podspec
statement, replacing <version>
in the URL as follows:
pod 'BrazeKit', :podspec => 'https://raw.githubusercontent.com/braze-inc/braze-swift-sdk-prebuilt-mergeable/<version>/BrazeKit.podspec'
pod 'BrazeUI', :podspec => 'https://raw.githubusercontent.com/braze-inc/braze-swift-sdk-prebuilt-mergeable/<version>/BrazeUI.podspec'
...
Variant | Repository | GH Issues, SDK info |
---|---|---|
Sources and Static XCFrameworks | braze-inc/braze-swift-sdk | ✓ |
Static XCFrameworks | braze-inc/braze-swift-sdk-prebuilt-static | ✗ |
Dynamic XCFrameworks | braze-inc/braze-swift-sdk-prebuilt-dynamic | ✗ |
→ Mergeable XCFrameworks (early access) | braze-inc/braze-swift-sdk-prebuilt-mergeable | ✗ |