Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions build-apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -e

XCFRAMEWORK_DIR="./apple_xcframework"
LIB_NAME="HevSocks5Tunnel"

# buildStatic iphoneos -mios-version-min=15.0 arm64
buildStatic()
Expand Down Expand Up @@ -61,9 +62,9 @@ buildStatic appletvsimulator arm64 17.0
mergeStatic appletvsimulator x86_64 arm64

INCLUDE_DIR="$XCFRAMEWORK_DIR/include"
mkdir -p $INCLUDE_DIR
cp ./src/hev-main.h $INCLUDE_DIR
cp ./module.modulemap $INCLUDE_DIR
mkdir -p $INCLUDE_DIR/$LIB_NAME
cp ./src/hev-main.h $INCLUDE_DIR/$LIB_NAME
cp ./module.modulemap $INCLUDE_DIR/$LIB_NAME
xcodebuild -create-xcframework \
-library ./apple_xcframework/iphoneos-arm64/libhev-socks5-tunnel.a -headers $INCLUDE_DIR \
-library ./apple_xcframework/iphonesimulator-x86_64-arm64/libhev-socks5-tunnel.a -headers $INCLUDE_DIR \
Expand Down