Awesome
<p align="center"> <img width="480" alt="Braze Logo" src=".github/assets/logo-light.png#gh-light-mode-only" /> <img width="480" alt="Braze Logo" src=".github/assets/logo-dark.png#gh-dark-mode-only" /> </p> <p align="center"> <a href="https://github.com/braze-inc/braze-swift-sdk/releases"> <img src="https://badgen.net/badge/version/11.4.0/blue" alt="Version: 11.4.0"> </a> <a href="#"> <img src="https://badgen.net/badge/platforms/iOS%20%7C%20visionOS%20%7C%20tvOS%20%7C%20Mac%20Catalyst/orange" alt="Platforms: iOS - visionOS – tvOS – Mac Catalyst"> </a> <a href="#"> <img src="https://badgen.net/badge/package%20managers/SwiftPM%20%7C%20CocoaPods/green" alt="Package Managers: SwiftPM - CocoaPods"> </a> <a href="https://github.com/braze-inc/braze-swift-sdk/blob/main/LICENSE"> <img src="https://badgen.net/badge/license/Commercial/black" alt="License: Commercial"> </a> </p>Braze Swift SDK - Prebuilt Mergeable (early access)
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.
How to use this repository
Required build settings
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.
Swift Package Manager
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
.
CocoaPods
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'
...
Alternative Repositories
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 | ✗ |