Skip to content

Commit 1d25b0c

Browse files
authored
Update integration_test iOS FTL README script to remove targeted version (#143248)
1. Remove `dev_target` from suggested Firebase Test Lab iOS script and use wildcard instead. 2. First run `flutter clean` before building to avoid collisions between runs. 3. Use `zip --must-match` in case the xctestrun or `Release-iphoneos` directories are missing (like ran with `--profile` instead of `--release` on purpose) to fail instead of zipping up only part of what's needed. This came out of a discussion with FTL about these instructions and I tried to run them locally and avoided setting `dev_target`. See also #74428
1 parent 5a649aa commit 1d25b0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/integration_test/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ Execute this script at the root of your Flutter app:
311311
```sh
312312
output="../build/ios_integ"
313313
product="build/ios_integ/Build/Products"
314-
dev_target="14.3"
314+
315+
flutter clean
315316
316317
# Pass --simulator if building for the simulator.
317318
flutter build ios integration_test/foo_test.dart --release
@@ -327,15 +328,15 @@ xcodebuild build-for-testing \
327328
popd
328329
329330
pushd $product
330-
zip -r "ios_tests.zip" "Release-iphoneos" "Runner_iphoneos$dev_target-arm64.xctestrun"
331+
find . -name "Runner_*.xctestrun" -exec zip -r --must-match "ios_tests.zip" "Release-iphoneos" {} +
331332
popd
332333
```
333334

334335
You can verify locally that your tests are successful by running the following command:
335336

336337
```sh
337338
xcodebuild test-without-building \
338-
-xctestrun "build/ios_integ/Build/Products/Runner_iphoneos14.3-arm64.xctestrun" \
339+
-xctestrun "build/ios_integ/Build/Products/Runner_*.xctestrun" \
339340
-destination id=<YOUR_DEVICE_ID>
340341
```
341342

0 commit comments

Comments
 (0)