Skip to main content
bash TV

Xcode Cloud: Run XCUITest on Real iPhones, Not Simulator

TestMu AI (Formerly LambdaTest)

3 Dec 2026

YouTube

Xcode Cloud runs your XCUITest suite in Simulator only. This video adds one script so the same tests run on real iPhones after every release archive. πŸ”— Test on real iPhones: https://www.testmuai.com/real-device-cloud/?utm_source=youtube&utm_medium=video&utm_campaign=xcode-cloud-real-iphones&utm_term=U49_xjoV0vI πŸ“’ TestMu AI Real Device Cloud hosts iPhones, iPads, Galaxy and Pixel devices you open from a browser. πŸ”Ή Keep Xcode Cloud. Add ci_post_xcodebuild.sh, make it executable, start it with a shebang πŸ”Ή Keys go in redacted environment variables (LT_USERNAME, LT_ACCESS_KEY) πŸ”Ή Upload the test runner once. Re-upload it when your UI tests change πŸ”Ή After a good release archive, the script finds the exported .ipa, uploads it and starts the run on a real iPhone πŸ”Ή Tested locally: skipped = exit 0, submitted = exit 0, wrong key = exit 1 πŸ”Ή One catch: it's not a release gate. A failing iPhone test won't fail the build, so check the dashboard before TestFlight #XcodeCloud #XCUITest #iOSTesting #RealDeviceTesting #TestMuAI

Join the discussion

Have something to add?

Sign in to reply, follow this thread, and earn XP when your answer helps someone.