77
77
defaults :
78
78
run :
79
79
working-directory : ./packages/flutter_test_runners/example_deep_links
80
+ env :
81
+ EXPORT_OPTS_PATH : $RUNNER_TEMP/ExportOptions.plist
80
82
81
83
steps :
82
84
- name : Install the Apple certificate and provisioning profile
@@ -110,7 +112,6 @@ jobs:
110
112
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
111
113
112
114
# Save ExportOptions.plist from Base64 to file
113
- EXPORT_OPTS_PATH=$RUNNER_TEMP/ExportOptions.plist
114
115
echo -n "$EXPORT_OPTIONS_PLIST" | base64 --decode -o $EXPORT_OPTS_PATH
115
116
116
117
- name : Checkout repository
@@ -121,19 +122,6 @@ jobs:
121
122
sudo xcode-select -s /Applications/Xcode.app
122
123
xcodebuild -version
123
124
124
- - name : Create and Boot iOS Simulator
125
- run : |
126
- # List available devices and runtimes
127
- xcrun simctl list devices
128
- xcrun simctl list runtimes
129
-
130
- # Create a new simulator (if needed)
131
- SIMULATOR_ID=$(xcrun simctl create "GitHubActions-Simulator" "iPhone 14" "com.apple.CoreSimulator.SimRuntime.iOS-17-0")
132
-
133
- # Boot the simulator
134
- xcrun simctl boot "$SIMULATOR_ID"
135
- xcrun simctl list devices booted
136
-
137
125
- name : Set up Flutter
138
126
uses : subosito/flutter-action@v2
139
127
with :
@@ -144,7 +132,21 @@ jobs:
144
132
run : flutter pub get
145
133
146
134
- name : Build iOS App
147
- run : flutter build ios --debug --export-options-plist=$EXPORT_OPTS_PATH
135
+ run : flutter build ipa --debug --export-options-plist=$EXPORT_OPTS_PATH
148
136
149
137
- name : Install iOS App
150
138
run : flutter install ipa
139
+
140
+ - name : Create and Boot iOS Simulator
141
+ run : |
142
+ # List available devices and runtimes
143
+ xcrun simctl list devices
144
+ xcrun simctl list runtimes
145
+
146
+ # Create a new simulator (if needed)
147
+ SIMULATOR_ID=$(xcrun simctl create "GitHubActions-Simulator" "iPhone 14" "com.apple.CoreSimulator.SimRuntime.iOS-17-0")
148
+
149
+ # Boot the simulator
150
+ xcrun simctl boot "$SIMULATOR_ID"
151
+ xcrun simctl list devices booted
152
+
0 commit comments