Skip to content

Commit f66dd47

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 f66dd47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ios.yml

Lines changed: 7 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:
@@ -35,7 +36,12 @@ jobs:
3536
flutter-version: 3.32.8
3637
cache: true
3738
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
38-
architecture: x64
39+
40+
- name: Setup Xcode
41+
run: |
42+
xcode-select -s /Applications/Xcode_16.4.app
43+
xcodebuild -runFirstLaunch
44+
xcodebuild -downloadPlatform iOS -version 18.0
3945
4046
- name: Install Codemagic CLI Tools
4147
run: pipx install codemagic-cli-tools

0 commit comments

Comments
 (0)