Skip to content

Commit 8c4d2e9

Browse files
authored
Merge pull request #235 from kdroidFilter/fix-mac-os-build-target
Update macOS build targets
2 parents e9c16f3 + ef411da commit 8c4d2e9

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

maclib/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ echo "Building for ARM64 (Apple Silicon)..."
1010
swiftc -emit-library -o ../src/commonMain/resources/darwin-aarch64/libMacTray.dylib \
1111
-module-name MacTray \
1212
-swift-version 5 \
13+
-target arm64-apple-macosx11.0 \
1314
-O -whole-module-optimization \
1415
-framework Foundation \
1516
-framework Cocoa \
@@ -22,12 +23,12 @@ echo "Building for x86_64 (Intel)..."
2223
swiftc -emit-library -o ../src/commonMain/resources/darwin-x86-64/libMacTray.dylib \
2324
-module-name MacTray \
2425
-swift-version 5 \
25-
-target x86_64-apple-macosx10.14 \
26+
-target x86_64-apple-macosx11.0 \
2627
-O -whole-module-optimization \
2728
-framework Foundation \
2829
-framework Cocoa \
2930
-Xlinker -rpath -Xlinker @executable_path/../Frameworks \
3031
-Xlinker -rpath -Xlinker @loader_path/Frameworks \
3132
tray.swift
3233

33-
echo "Build completed successfully."
34+
echo "Build completed successfully."
28.1 KB
Binary file not shown.
-9.98 KB
Binary file not shown.

0 commit comments

Comments
 (0)