How to remove the RoomPlan Debug Metal HUD in iOS 16?

356 views Asked by At

The problem:

  1. The console is filled with debug data making it impossible to log anything else.
  2. The iPad screen shows a lot of metal HUD views making creating screenshots impossible.

What I have tried:

  1. Setting the: Scheme -> Diagnostics -> Metal: API Validation flag to false or (true)
  2. Checking the docu for several RoomPlan classes and structs for words like: debug, show, logging, log... RoomCaptureSession.Configuration, RoomCaptureView
  3. Running the app in the Release build configuration (since the Debug was set per default).
  4. Several google searches
  5. Use a different demo project to verify if the issue is project-specific. Official Apple Demo Project

Screenshots: enter image description here enter image description here

1

There are 1 answers

2
Andy Jazz On BEST ANSWER

Disable Metal Debug Data in Console

Go to Xcode 14.2 main menu:

Product Scheme Edit Scheme Run (Debug) Arguments and add environment variable.

// Name             Value
OS_ACTIVITY_MODE = disable

Disable Metal Performance HUD

Product Scheme Edit Scheme Run (Debug) Diagnostics and disable two options:

enter image description here

Or, when Developer Mode is enabled, disable it in iPadOS under

Settings app Developer (scroll down):

enter image description here