Run XCUITest on Real iPhones in 4 Steps
XCUITest passing on the simulator but failing on a real iPhone? Here's how to run your XCUITest suite on real iPhones from the terminal, in 4 steps. π’ TestMu AI (formerly LambdaTest) Real Device Cloud lets you run XCUITest automation on real iPhones and iPads without provisioning local Macs or simulators β https://www.testmuai.com/xcuitest-app-testing/?utm_source=youtube&utm_medium=video&utm_campaign=xcuitest-real-iphones&utm_term=[VIDEO_ID] πΉ Step 1: xcodebuild build-for-testing (-sdk iphoneos, generic iOS destination, signed with your team) πΉ Step 2: Package the app + UI test runner as two .ipa files πΉ Step 3: Upload both with curl β get an lt:// ID for each πΉ Step 4: Run on real iPhones with video and device logs on Then open the build to see which iPhone failed, with the video and logs side by side. Note: this covers XCUITest UI tests (built on XCTest). Unit tests can stay on the simulator. β±οΈ Chapters 00:00 Simulator vs real iPhone 00:16 Step 1: xcodebuild build-for-testing 00:30 Step 2: Package two .ipa files 00:42 Step 3: Upload app and test suite 00:54 Step 4: Run on real iPhones 01:05 Video and logs for the failed iPhone π Upload + run docs: https://www.testmuai.com/support/docs/getting-started-with-xcuitest/ #XCUITest #iOSTesting #RealDeviceTesting




Join the discussion
Have something to add?
Sign in to reply, follow this thread, and earn XP when your answer helps someone.