Skip to content

Commit c992bc6

Browse files
Copilotteolemon
andauthored
fix: install iOS platform before building to fix broken iOS CI
Add xcodebuild -downloadPlatform iOS in the Fastfile before_all block and as a separate CI step in both iOS release workflows to ensure iOS 26.0 platform is installed when using Xcode 26.0.1 on macos-26 runner. Agent-Logs-Url: https://github.com/openfoodfacts/smooth-app/sessions/12497af8-2d90-4635-a876-e98ede31a406 Co-authored-by: teolemon <1689815+teolemon@users.noreply.github.com>
1 parent a2dc90b commit c992bc6

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/ios-release-to-org-openfoodfacts-scanner.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ jobs:
108108
- name: Enable Rive dependency
109109
run: cd ./packages/smooth_app && dart run rive_native:setup --verbose --clean --platform ios
110110

111+
- name: Install iOS platform
112+
run: xcodebuild -downloadPlatform iOS
113+
111114
- name: Build app
112115
run: cd ./packages/smooth_app && cd ios && rm -rf Pods && rm -f Podfile.lock && flutter pub get && pod install && cd .. && flutter build ios --release --no-codesign -t lib/entrypoints/ios/main_ios.dart
113116
env:

.github/workflows/ios-release-to-org-openxfacts-scanner.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ jobs:
112112
- name: Enable Rive dependency
113113
run: cd ./packages/smooth_app && dart run rive_native:setup --verbose --clean --platform ios
114114

115+
- name: Install iOS platform
116+
run: xcodebuild -downloadPlatform iOS
117+
115118
- name: Build app
116119
run: cd ./packages/smooth_app && cd ios && rm -rf Pods && rm -f Podfile.lock && flutter pub get && pod install && cd .. && flutter build ios --release --no-codesign -t lib/entrypoints/ios/main_ios.dart
117120
env:

packages/smooth_app/ios/fastlane/Fastfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ default_platform(:ios)
33

44
before_all do
55
xcodes(
6-
version: '26.0.1',
7-
select_for_current_build_only: true,
6+
version: '26.0.1',
7+
select_for_current_build_only: true,
88
)
9+
sh("xcodebuild -downloadPlatform iOS")
910
end
1011

1112
platform :ios do

0 commit comments

Comments
 (0)