Skip to content

Commit 4059e8b

Browse files
committed
fix: install iOS platform for Xcode
Run flutter build ipa \ Archiving com.adilhanney.saber... Automatically signing iOS for device deployment using specified development team in Xcode project: 3DB8QX4Z23 Running pod install... 37.2s Running Xcode build... Xcode archive done. 7.3s Failed to build iOS app Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier: { generic:1, platform:iOS } Ineligible destinations for the "Runner" scheme: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 18.0 is not installed. To use with Xcode, first download and install the platform } ════════════════════════════════════════════════════════════════════════════════ iOS 18.0 is not installed. To download and install the platform, open Xcode, select Xcode > Settings > Components, and click the GET button for the required platform. For more information, please visit: https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes ════════════════════════════════════════════════════════════════════════════════ Encountered error while archiving for device.
1 parent 0ad519f commit 4059e8b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/ios.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
jobs:
1818
build-ios:
1919
name: Build for iOS
20+
# TODO(adil192): Change to macos-latest after 30 August 2025 (https://github.com/actions/runner-images/issues/12520)
2021
runs-on: macos-15
2122
timeout-minutes: 60
2223
env:
@@ -28,14 +29,28 @@ jobs:
2829
- name: Checkout code
2930
uses: actions/checkout@v4
3031

32+
- name: Setup Xcode
33+
run: |
34+
echo "Selecting Xcode 16.4..."
35+
sudo xcode-select -s /Applications/Xcode_16.4.app
36+
xcode-select -p
37+
echo
38+
39+
echo "Running Xcode first launch..."
40+
xcodebuild -runFirstLaunch
41+
echo
42+
43+
echo "Downloading iOS platform files..."
44+
xcodebuild -downloadPlatform iOS -version 18.0
45+
echo
46+
3147
- name: Install Flutter
3248
uses: subosito/flutter-action@v2
3349
with:
3450
channel: stable
3551
flutter-version: 3.32.8
3652
cache: true
3753
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
38-
architecture: x64
3954

4055
- name: Install Codemagic CLI Tools
4156
run: pipx install codemagic-cli-tools

0 commit comments

Comments
 (0)