Skip to main content

Installation

Manual Installation

  1. Drag SashaSDK.xcframework directly into your Xcode project.
  2. Make sure it's added under your target's Frameworks, Libraries, and Embedded Content.

Add Local Swift Package

As per now, we don't support Swift Package Manager. However, you can support this by using a local package in your project.

If you prefer to include the SDK directly in your own repository:

  1. Create a new folder in your project, for example:

    mkdir -p ThirdParty/SashaSDK
  2. Place SashaSDK.xcframework inside that folder.

  3. In the same folder, create a file named Package.swift with the following content:

// swift-tools-version: 6.0
import PackageDescription

let package = Package(
name: "SashaSDK",
platforms: [
.iOS(.v15)
],
products: [
.library(
name: "SashaSDK",
targets: ["SashaSDK"]
)
],
targets: [
.binaryTarget(
name: "SashaSDK",
path: "SashaSDK.xcframework"
)
]
)
  1. In Xcode, go to File → Add Packages… → Add Local…
  2. Select the folder you just created (ThirdParty/SashaSDK).
  3. Add SashaSDK to your target.

Using this method allows you to manage SashaSDK via Swift Package Manager locally, even though the SDK itself doesn't officially support SPM.