如何在iOS 16中移除RoomPlan Debug Metal HUD?

huangapple go评论83阅读模式
英文:

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

问题

问题:

  1. 控制台充满了调试数据,导致无法记录其他内容。
  2. iPad 屏幕显示了许多金属 HUD 视图,使创建屏幕截图变得不可能。

我尝试过的:

  1. 设置:
    Scheme -> Diagnostics -> MetalAPI Validation 标志为 false 或 (true)
  2. 检查了几个 RoomPlan 类和结构的文档,寻找包含以下词汇的内容:
    debug, show, logging, log...
    RoomCaptureSession.Configuration, RoomCaptureView
  3. Release 构建配置运行应用程序(因为默认设置为 Debug)。
  4. 进行了几次谷歌搜索
  5. 使用不同的演示项目来验证问题是否特定于项目。
    官方 Apple 演示项目

屏幕截图:
如何在iOS 16中移除RoomPlan Debug Metal HUD?
如何在iOS 16中移除RoomPlan Debug Metal HUD?

英文:

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:
如何在iOS 16中移除RoomPlan Debug Metal HUD?
如何在iOS 16中移除RoomPlan Debug Metal HUD?

答案1

得分: 1

在控制台中禁用 Metal 调试数据

进入 Xcode 14.2 主菜单:

<kbd> Product </kbd> – <kbd> Scheme </kbd> – <kbd> Edit Scheme </kbd> – <kbd> Run (Debug) </kbd> – <kbd> Arguments </kbd>,然后添加 环境变量

// 名称             值
OS_ACTIVITY_MODE = disable

禁用 Metal 性能 HUD

<kbd> Product </kbd> – <kbd> Scheme </kbd> – <kbd> Edit Scheme </kbd> – <kbd> Run (Debug) </kbd> – <kbd> Diagnostics </kbd> 并禁用两个选项:

如何在iOS 16中移除RoomPlan Debug Metal HUD?

或者,当 开发者模式 已启用时,可以在 iPadOS 下禁用它:

<kbd> 设置应用 </kbd> – <kbd> 开发者 </kbd> (向下滚动):

如何在iOS 16中移除RoomPlan Debug Metal HUD?

英文:

Disable Metal Debug Data in Console

Go to Xcode 14.2 main menu:

<kbd> Product </kbd> – <kbd> Scheme </kbd> – <kbd> Edit Scheme </kbd> – <kbd> Run (Debug) </kbd> – <kbd> Arguments </kbd> and add environment variable.

// Name             Value
OS_ACTIVITY_MODE = disable

Disable Metal Performance HUD

<kbd> Product </kbd> – <kbd> Scheme </kbd> – <kbd> Edit Scheme </kbd> – <kbd> Run (Debug) </kbd> – <kbd> Diagnostics </kbd> and disable two options:

如何在iOS 16中移除RoomPlan Debug Metal HUD?

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

<kbd> Settings app </kbd> – <kbd> Developer </kbd> (scroll down):

如何在iOS 16中移除RoomPlan Debug Metal HUD?

huangapple
  • 本文由 发表于 2023年2月8日 16:54:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/75383304.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定