From e909d695231f2b5f4ee2af36d51abd4250363699 Mon Sep 17 00:00:00 2001 From: Vitalii Kotivskyi Date: Tue, 3 Dec 2024 16:39:24 +0100 Subject: [PATCH 1/2] bumped xcode version to 15.4, since 14.2 is not available on mac os 15 runner --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index fd3eae7f..0010fdad 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -7,7 +7,7 @@ on: branches: [ main ] env: - DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer + DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer # for testing PYTHON_BIN: /usr/local/bin/python From 1b5cd0c1acb3c9dd12a8882c2608f9e984a691aa Mon Sep 17 00:00:00 2001 From: Vitalii Kotivskyi Date: Tue, 3 Dec 2024 17:03:45 +0100 Subject: [PATCH 2/2] fixed iOS simulator build. Disabled arm64 architecture build, since SwiftSH does not supports it --- .github/workflows/swift.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 0010fdad..2aef6370 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -32,9 +32,7 @@ jobs: run: xcodebuild -project TerminalApp/MacTerminal.xcodeproj -scheme MacTerminal - name: Xcode iOS Build - run: | - targetId=`xcrun xctrace list devices 2>&1 | sed -n -E '/^iPhone/s/.*\(|\)//gp' | head -1` - xcodebuild -project TerminalApp/iOSTerminal.xcodeproj -scheme iOSTerminal -destination "platform=iOS Simulator,id=$targetId" + run: xcodebuild -project TerminalApp/iOSTerminal.xcodeproj -scheme iOSTerminal -destination generic/platform='iOS Simulator' EXCLUDED_ARCHS="arm64" - name: Swift Package Build run: swift build -v