Automated testing via session replay

Is there a supported route to automated regression testing of ARKit apps? Reality Composer's "Record AR Session" plus Xcode's "ARKit Replay data" scheme option work well for manual debugging, but replay isn't wired into XCUITest, doesn't run in CI, and ARKit doesn't exist in the simulator — so every AR regression today needs to be run by a human holding a device. Even replay-driven ARSession in the simulator, or an XCTest hook for selecting replay files, would unlock some automated coverage.

Answered by Vision Pro Engineer in 891412022

ARKit replay via Reality Composer and Xcode is the supported path today.

If you don't need the CVPixelBuffer, you can also serialize the relevant properties of ARFrame out of the session delegate to a file and replay them into your own test harness. That unlocks a meaningful slice of regression coverage.

Could you share more detail on what exactly you're trying to cover? With that, please file a feature request in Feedback Assistant describing the concrete use case.

ARKit replay via Reality Composer and Xcode is the supported path today.

If you don't need the CVPixelBuffer, you can also serialize the relevant properties of ARFrame out of the session delegate to a file and replay them into your own test harness. That unlocks a meaningful slice of regression coverage.

Could you share more detail on what exactly you're trying to cover? With that, please file a feature request in Feedback Assistant describing the concrete use case.

Automated testing via session replay
 
 
Q