iosiphonexcodetestingscreen

How to record iPhone screen during app testing in Xcode?


I'm developing an app and need to record the iPhone screen while it's running in Xcode for testing purposes. This would help correlate user actions with Xcode outputs and logs. Are there any software tools that can facilitate this?

Thanks in advance!


Solution

  • Option 1: USB cable + QuickTime on Mac

    1. Connect the iPhone/iPad to a Mac using an USB cable
    2. Open QuickTime, select "File > New Screen Recording"

    New Screen Recording

    1. Press a small arrow next to the recording button and choose "Screen > (your mobile device)"

    Device screen

    1. You can start recording now!

    Option 2: Recording directly on the mobile device (iOS 11+)

    1. Launch Settings, select Control Center
    2. Add Screen Recording
    3. Swipe-up from the bottom of the display to reveal Control Center
    4. Tap the "Screen Recording" button.

    Screen Recording button