UITests recording throws an error when running on an M1 chip

"UITests recording reports 'The capability "Create Service Socket" is not supported by this device.' on M1 chip, but works normally on Intel chip."

Same behavior on my machine (M1, MBA)

Hello, that error might suggest that the device is not fully configured for development. Please double-check the "Devices and Simulators" view in Xcode to see if the destination device reports any issues. Also, I'm curious if you can run tests on that device without any problems. If not, the error message from running a test might give you more hints about a problem.

If the problem persists, I recommend filing more details via feedback assistant. See https://developer.apple.com/bug-reporting/ for information on the process.

I got the same warning trying to record on my development device (iPhone 16 - iOS 18.6.2). I tested it on a simulated device (iPhone 16 - iOS 18.1) and it is working there. My guess is that it is a device configuration problem since UI Test recordings are working on the simulated device.

UITests recording throws an error when running on an M1 chip
 
 
Q