Swift Package Manager distribution for SinchRTC iOS SDK
SDK version: v5.35.4
- iOS 12.0+
- Xcode 12.0+
- Swift 5.0+
- In Xcode, go to File → Add Package Dependencies...
- Repository URL:
https://github.com/sinch/sinch-ios-sdk-spm
- In the configuration view, choose one of the following Dependency Rules:
- Branch: select
dynamic(ormain) to link a dynamic xcframework — always uses the latest available dynamic SDK version - Branch: select
staticto link a static xcframework — always uses the latest available static SDK version - Version: select Exact Version and enter "5.35.4" — links the dynamic xcframework for that specific version
- Branch: select
- Click Add Package.
Notes:
- For
dynamic/main: in your app target → General → Frameworks, Libraries, and Embedded Content, set SinchRTC to Embed & Sign. - For
static: set SinchRTC to Do Not Embed. No extra system frameworks are required; the package auto‑links what it needs. - Selecting a Branch rule tracks the branch tip, you always get the latest SDK matching that framework type (dynamic or static).
- Selecting an Exact Version resolves to the dynamic xcframework release for that version.
By Version (recommended):
dependencies: [
.package(url: "https://github.com/sinch/sinch-ios-sdk-spm.git", exact: "5.35.4"),
]By Branch (alternative):
dependencies: [
// Dynamic (same as main)
.package(url: "https://github.com/sinch/sinch-ios-sdk-spm.git", branch: "dynamic"),
// or Static
//.package(url: "https://github.com/sinch/sinch-ios-sdk-spm.git", branch: "static"),
]Then add the product to your target:
targets: [
.target(
name: "YourApp",
dependencies: ["SinchRTC"]
)
]