https://github.com/haishinkit/libsrt-xcframework
libsrt with xcframework project
https://github.com/haishinkit/libsrt-xcframework
Last synced: 4 months ago
JSON representation
libsrt with xcframework project
- Host: GitHub
- URL: https://github.com/haishinkit/libsrt-xcframework
- Owner: HaishinKit
- Created: 2025-02-22T05:36:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-21T11:54:11.000Z (7 months ago)
- Last Synced: 2025-11-21T13:21:23.311Z (7 months ago)
- Language: CMake
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libsrt.xcframework
- The libsrt with xcframework project.
- This is a project to make libsrt easier to use with Swift Package Manager (SPM).
> [!NOTE]
> This is provided for use with HaishinKit. It does not prevent you from using it individually in your own environment.
## Platforms
|iOS|tvOS|macOS|visionOS|watchOS|macOS catalyst|
|:-:|:-:|:-:|:-:|:-:|:-:|
|13.0+|13.0+|10.15+|1.0+|-|-|
- [Simulator on Intel Mac not supported.](https://github.com/HaishinKit/HaishinKit.swift/issues/1571)
## Usage
You can use it from SPM as follows.
- ${version} refers to the release version v1.5.4.
- The checksum is listed in the RELEASE notes.
```Package.swift
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
dependencies: [
],
targets: [
.binaryTarget(
name: "libsrt",
url: "https://github.com/HaishinKit/libsrt-xcframework/releases/download/${version}/libsrt.xcframework.zip",
checksum: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
),
]
)
```
The checksum can be obtained using the following command:
```sh
$ swift package compute-checksum /path/to/libsrt.xcframework.zip
```
## build xcframework
```sh
## clone dependencies
$ build-clone.sh
## build libsrt.a
$ build-ios.sh
# $ build-macos.sh ...
## make xcframework. only succeeds when the build for all platforms is successful.
## If you only need iOS, please comment out the contents of the .sh file.
$ build-xcframework.sh
```
## License
- libsrt.xcframeworks is MPLv2.0 License