How to test an ARKit app in the simulator (without using ARKit features)

We are building an app that uses ARKit occasionally, but not always.

We would like to test the non-ARKit parts in the simulator, since it offers more debugging features (e.g. SwiftUI previews or the Thread Sanitizer).

However, we can't even build the app for the simulator, since the simulator SDK does not know about certain classes (e.g. "AnchorEntity"). This also means that none of the SwiftUI previews work, even if the views are not using ARKit.

What is the best approach to test such an app in the simulator, without using any ARKit features?

Also having this issue. Can't apple do something about mocking the arkit parts in simulator, just return a "sure, whatever" when those features are used, just so we can test things that are not related to it?

This sounds like a bug. All API symbols should be present on simulator. Can you please file a bug about it via the Feedback Assistant?

(Side note: AnchorEntity is a RealityKit symbol.)

How to test an ARKit app in the simulator (without using ARKit features)
 
 
Q