Using ARKit Replay hangs forever on "Attaching to App"...

Hello, I'm trying to use Xcode's ARKit Session replay functionality. I have a capture I made using Reality Composer and when trying to use it with Xcode's replay functionality the installation and debugging process seems stalled forever. I've gotten it to work once so I know the capture file is functional but I have never gotten it to work a second time, even though I didn't change any settings.

No amount of restarting Xcode, the Mac, or the iPhone seem to work. I have also tried cleaning build folders, reinstalling the app, and clearing DerivedData.

I can confirm from the Xcode logs that the app installs correctly but the app never launches. If I unselect the checkbox for "ARKit Replay Data", the app launches and debugs nearly instantly.

I have tried letting it "attach" for up to 10 minutes to no avail.

Hello,

That behavior sounds suspicious and you've probably encountered a bug.

Please send us a bug report with the Feedback Assistant. Include as much as possible in the bug report e.g. detailed steps to reproduce, capture data, sample Xcode project, sysdiagnose (taken on project launch) etc.

For anybody encountering this in the future, it turned out that the .mov being in a different folder than the project (Downloads vs Documents) was causing Xcode to silently fail.

I had never rejected permissions for Xcode to access a folder.

Temporary solution: Putting the .mov into a public folder such as "/Users/Shared/..." and re-adding it to the scheme seems to have fixed the issue.

This doesn't explain why it worked once but not in subsequent runs.

Hello, I am using Xcode 16, it is still stuck to "Attaching to App", I tried either way by adding video in project folder and later tried with adding it to Shared folder, it is not working for me.

Using ARKit Replay hangs forever on "Attaching to App"...
 
 
Q