If it’s built for a driver test like test_driver/app.dart, make sure to also
specify --target=test_driver/app.dart (for example, flutter build
ios --bundle-sksl-path flutter_01.sksl.json --target=test_driver/app.dart).

Test the newly built app.

Alternatively, you can write some integration tests to
automate the first three steps using a single command.
For example:

flutter drive --profile --cache-sksl --write-sksl-on-exit flutter_01.sksl.json -t test_driver/app.dart