Use Debug.Log() in Unity scripts, then build and run the app, and see the logs in XCode?

Hi !

I got a few problems with XCode and Unity in Metal (or Hybrid) mode.

I wish to use some Debug.Log() in my scripts, then build and run the app from Unity → XCode → to the Apple Vision Pro.

The problem is that because of Metal mode, XCode can’t launch the app and launch an exception. For more informations you can chekc my other post wich is a bit related to this problem.

Is there some parameters in XCode or Unity to enabled or change if I want this to work ? This is really problematic for debugging.

There is also an image there of the problem I encounter in XCode, but here is the same image if you need :

I don’t have a solution but how about a workaround? Lunar console can show log console in the build directly

Is it this ?

And does it work for VisionOS ?

I’ve never worked with that, it supports iOS which I assume is the base of VisionOS

I will try with that, but in the meantime, if anyone has any other idea, I’m still interested.