Skip to content

Commit d9aeeec

Browse files
committed
Set CMAKE_OSX_ARCHITECTURES to x86_64 for iphonesimulator
1 parent d9ddb00 commit d9aeeec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-libgit2-framework.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export PATH=$PATH:$REPO_ROOT/tools/bin
99
# in that case. `lipo` is probably needed in this case.
1010
# Likewise, `maccatalyst` and `macosx` cannot be used together. So probably one will needs multiple
1111
# xcframeworks for x86_64-based and ARM-based Mac development computer.
12-
AVAILABLE_PLATFORMS=(iphoneos iphonesimulator maccatalyst) # maccatalyst-arm64 macosx macosx-arm64)
12+
13+
# iphoneos maccatalyst
14+
AVAILABLE_PLATFORMS=(iphonesimulator) # maccatalyst-arm64 macosx macosx-arm64)
1315

1416
AVAILABLE_FRAMEWORKS=(libpcre openssl libssh2 libgit2)
1517

@@ -51,7 +53,7 @@ function setup_variables() {
5153
"iphonesimulator")
5254
ARCH=x86_64
5355
SYSROOT=`xcodebuild -version -sdk iphonesimulator Path`
54-
CMAKE_ARGS+=(-DCMAKE_OSX_SYSROOT=$SYSROOT);;
56+
CMAKE_ARGS+=(-DCMAKE_OSX_ARCHITECTURES=$ARCH -DCMAKE_OSX_SYSROOT=$SYSROOT);;
5557

5658
"maccatalyst")
5759
ARCH=x86_64

0 commit comments

Comments
 (0)