Skip to content

Commit 92212c1

Browse files
committed
ci: downgrade x86_64 Apple SDKs to older Xcode
Let's restore support for building with Xcode and the Apple SDKs installed on macOS 10.15 for maximum compatibility with build environments (such as GitHub Actions and its 10.15 runner). The aarch64 targets still build with the latest SDK, as most builds for this environment occur from macOS 11.
1 parent 2197ea1 commit 92212c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/apple.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ jobs:
240240
elif [ "${{ matrix.build.target_triple }}" = "aarch64-apple-ios" ]; then
241241
export APPLE_SDK_PATH=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk
242242
elif [ "${{ matrix.build.target_triple }}" = "x86_64-apple-darwin" ]; then
243-
export APPLE_SDK_PATH=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
243+
export APPLE_SDK_PATH=/Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
244244
elif [ "${{ matrix.build.target_triple }}" = "x86_64-apple-ios" ]; then
245-
export APPLE_SDK_PATH=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk
245+
export APPLE_SDK_PATH=/Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk
246246
else
247247
echo "unhandled target triple: ${{ matrix.build.target_triple }}"
248248
exit 1

0 commit comments

Comments
 (0)