Skip to content

sinch/sinch-ios-sdk-spm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In-app - Swift Package Manager

Swift Package Manager distribution for SinchRTC iOS SDK

SDK version: v5.35.4

Language Swift Package Manager Platform

Requirements

  • iOS 12.0+
  • Xcode 12.0+
  • Swift 5.0+

Setup

Add via Xcode (recommended)

  1. In Xcode, go to FileAdd Package Dependencies...
  2. Repository URL:
https://github.com/sinch/sinch-ios-sdk-spm
  1. 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.35.4" — links the dynamic xcframework for that specific version
  2. 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.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"]
    )
]

Resources

About

In-app Swift Package Manager distribution for SinchRTC iOS SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages