Files
srt/docs/build/build-iOS.md
Sergei Ignatov 5d80411f0c [build] Update iOS build scripts (#3182)
* Update iOS build scripts
~ Generate Xcode project files
~ Support build for tvOS
~ Package all variants into XCFramework bundle

* Fix iOS / iOS-cxxsyncON
2025-07-17 08:33:38 +02:00

1.1 KiB

Building SRT on iOS/tvOS

NOTE: The scripts are located in scripts/build-ios folder.

Prerequisites

  • Xcode should be installed. Check in terminal whether xcode-select -p points to /Applications/Xcode.app/Contents/Developer
  • Install Homebrew according to instructions on https://brew.sh/
  • Install CMake with Homebrew:
brew install cmake

Building OpenSSL

There is OpenSSL-Universal project which has all necessary to build OpenSSL for our needs. It fetches OpenSSL code by itself, so you don't need to download it separately. Build it with command:

./mkssl-xcf.sh

Building SRT code

Now you can build SRT with command:

./mksrt-xcf.sh

Adding to Xcode project

Results (libcrypto.xcframework and libsrt.xcframework) will be placed in scripts/build-ios folder.

Follow these steps to embed frameworks in your app. Choose the Do Not Embed option from the Embed value list.