-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-xcframework.sh
More file actions
executable file
·29 lines (25 loc) · 1.11 KB
/
build-xcframework.sh
File metadata and controls
executable file
·29 lines (25 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Copyright (c) shogo4405 and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD 3-Clause License found in the
# LICENSE file in the root directory of this source tree.
rm -rf Includes
mkdir -p Includes/libsrt
# creating a directory in libsrt to address modulemap conflicts.
# seealso:
# https://github.com/shogo4405/HaishinKit.swift/discussions/1403
# https://github.com/jessegrosjean/swift-cargo-problem
cp -f srt/srtcore/*.h Includes/libsrt
cp module.modulemap Includes/libsrt/module.modulemap
cp ./build/ios/OS/version.h Includes/libsrt/version.h
rm -rf libsrt.xcframework
xcodebuild -create-xcframework \
-library ./build/ios/_SIMULATOR64/libsrt.a -headers Includes \
-library ./build/ios/_OS/libsrt.a -headers Includes \
-library ./build/visionos/_SIMULATOR/libsrt.a -headers Includes \
-library ./build/visionos/_OS/libsrt.a -headers Includes \
-library ./build/tvos/_SIMULATOR/libsrt.a -headers Includes \
-library ./build/tvos/_OS/libsrt.a -headers Includes \
-library ./build/macosx/libsrt.a -headers Includes \
-output libsrt.xcframework