@@ -189,29 +189,31 @@ runs:
189189 run : brew tap wix/brew && brew install applesimutils
190190 shell : bash
191191
192- - name : Boot iOS Simulator (if not already booted)
192+ - name : Boot iOS Simulator
193193 if : ${{ inputs.platform == 'ios' && inputs.setup-simulator == 'true' }}
194194 run : |
195- echo "Looking for simulator named: ${{ inputs.ios-device }}"
196-
197- SIMULATOR_LINE=$(xcrun simctl list devices | grep -m1 "${{ inputs.ios-device }}")
198- if [ -z "$SIMULATOR_LINE" ]; then
199- echo "No simulator found with name '${{ inputs.ios-device }}'"
195+ # Find and boot simulator
196+ SIMULATOR_ID=$(xcrun simctl list devices | grep "${{ inputs.ios-device }}" | \
197+ grep -oE '\([A-F0-9-]{36}\)' | tr -d '()' | head -1)
198+
199+ if [ -z "$SIMULATOR_ID" ]; then
200+ echo "Simulator not found"
200201 exit 1
201202 fi
202-
203- SIMULATOR_ID=$(echo "$SIMULATOR_LINE" | awk -F '[()]' '{print $2}')
204- SIMULATOR_STATE=$(echo "$SIMULATOR_LINE" | awk -F '[()]' '{print $(NF-1)}')
205-
206- echo "Simulator ID: $SIMULATOR_ID"
207- echo "Simulator State: $SIMULATOR_STATE"
208-
209- if [ "$SIMULATOR_STATE" = "Booted" ]; then
210- echo "Simulator is already booted. Skipping boot step."
211- else
203+
204+ # Shutdown other simulators (key performance win)
205+ xcrun simctl shutdown all 2>/dev/null || true
206+
207+ # Boot if needed
208+ if ! xcrun simctl list devices | grep "$SIMULATOR_ID" | grep -q "(Booted)"; then
212209 echo "Booting simulator..."
213210 xcrun simctl boot "$SIMULATOR_ID"
214211 fi
212+
213+ # Essential performance settings
214+ xcrun simctl status_bar "$SIMULATOR_ID" override \
215+ --time "9:41" --batteryState charged --batteryLevel 100
216+
215217 shell : bash
216218
217219 # # Android Setup ##
@@ -321,9 +323,14 @@ runs:
321323 -no-boot-anim \
322324 -no-window \
323325 -gpu swiftshader_indirect \
324- -no-snapshot \
325- -wipe-data \
326+ -memory 6144 \
327+ -cores 4 \
328+ -partition-size 4096 \
329+ -data-partition-size 4096 \
330+ -snapshot-save \
331+ -no-snapshot-load \
326332 -accel on \
333+ -qemu -smp 4 \
327334 -verbose > /dev/null 2>&1 &
328335 shell : bash
329336
0 commit comments