Skip to content

Commit ef411da

Browse files
committed
Update macOS build targets to macOS 11.0
Adjusted Swift compiler targets for both ARM64 and x86_64 to macOS 11.0 in the build script. This ensures compatibility with newer macOS versions and aligns the build process with updated system requirements.
1 parent e9c16f3 commit ef411da

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)