sinch/sinch-ios-sdk-spm
Swift Package Manager distribution for SinchRTC iOS SDK
Requirements
- iOS 12.0+
- Xcode 12.0+
- Swift 5.0+
Setup
Add via Xcode (recommended)
- 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 (or main) to link a dynamic xcframework — always uses the latest available dynamic SDK version - Branch: select static to link a static xcframework — always uses the latest available static SDK version - Version: select Exact Version and enter "5.39.20" — links the dynamic xcframework for that specific version
- 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.
Add via Package.swift (manual)
By Version (recommended):
dependencies: [
.package(url: "https://github.com/sinch/sinch-ios-sdk-spm.git", exact: "5.39.20"),
]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"]
)
]Resources
Package Metadata
Repository: sinch/sinch-ios-sdk-spm
Default branch: main
README: README.md