英文:
How to remove the RoomPlan Debug Metal HUD in iOS 16?
问题
问题:
- 控制台充满了调试数据,导致无法记录其他内容。
- iPad 屏幕显示了许多金属 HUD 视图,使创建屏幕截图变得不可能。
我尝试过的:
- 设置:
Scheme
->Diagnostics
->Metal
:API Validation
标志为 false 或 (true) - 检查了几个 RoomPlan 类和结构的文档,寻找包含以下词汇的内容:
debug, show, logging, log...
RoomCaptureSession.Configuration
,RoomCaptureView
- 以
Release
构建配置运行应用程序(因为默认设置为Debug
)。 - 进行了几次谷歌搜索
- 使用不同的演示项目来验证问题是否特定于项目。
官方 Apple 演示项目
英文:
The problem:
- The console is filled with debug data making it impossible to log anything else.
- The iPad screen shows a lot of metal HUD views making creating screenshots impossible.
What I have tried:
- Setting the:
Scheme
->Diagnostics
->Metal
:API Validation
flag to false or (true) - Checking the docu for several RoomPlan classes and structs for words like:
debug, show, logging, log...
RoomCaptureSession.Configuration
,RoomCaptureView
- Running the app in the
Release
build configuration (since theDebug
was set per default). - Several google searches
- Use a different demo project to verify if the issue is project-specific.
Official Apple Demo Project
答案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> 并禁用两个选项:
或者,当 开发者模式 已启用时,可以在 iPadOS 下禁用它:
<kbd> 设置应用 </kbd> – <kbd> 开发者 </kbd> (向下滚动):
英文:
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:
Or, when Developer Mode is enabled, disable it in iPadOS under
<kbd> Settings app </kbd> – <kbd> Developer </kbd> (scroll down):
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论