forked from alvr-org/alvr-visionos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repack_alvr_client.sh
executable file
·26 lines (22 loc) · 1.38 KB
/
repack_alvr_client.sh
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
#!/bin/bash
set -e
BUILDDIR="/Volumes/orangehd/docs/repos/ALVR/target/aarch64-apple-ios/debug"
HEADERPATH="/Volumes/orangehd/docs/repos/ALVR/alvr_client_core.h"
rm -r alvrrepack ALVRClientCore.xcframework || true
mkdir -p alvrrepack/ios alvrrepack/maccatalyst alvrrepack/xros alvrrepack/xrsimulator alvrrepack/headers
cp "$BUILDDIR/libalvr_client_core.dylib" alvrrepack/ios
cp "$HEADERPATH" alvrrepack/headers
install_name_tool -id "@rpath/libalvr_client_core.dylib" alvrrepack/ios/libalvr_client_core.dylib
vtool -arch arm64 -set-build-version maccatalyst 17.0 17.0 -replace -output alvrrepack/maccatalyst/libalvr_client_core.dylib alvrrepack/ios/libalvr_client_core.dylib
vtool -arch arm64 -set-build-version xros 1.0 1.0 -replace -output alvrrepack/xros/libalvr_client_core.dylib alvrrepack/ios/libalvr_client_core.dylib
vtool -arch arm64 -set-build-version xrossim 1.0 1.0 -replace -output alvrrepack/xrsimulator/libalvr_client_core.dylib alvrrepack/ios/libalvr_client_core.dylib
xcodebuild -create-xcframework \
-library alvrrepack/ios/libalvr_client_core.dylib \
-headers alvrrepack/headers \
-library alvrrepack/maccatalyst/libalvr_client_core.dylib \
-headers alvrrepack/headers \
-library alvrrepack/xros/libalvr_client_core.dylib \
-headers alvrrepack/headers \
-library alvrrepack/xrsimulator/libalvr_client_core.dylib \
-headers alvrrepack/headers \
-output ALVRClientCore.xcframework