在 Xcode 14 上调试系统首选项窗格时,“断点尚未解决。”为什么?

问题描述 投票:0回答:1

我可以构建并运行我的预窗格,但我发现我无法使用任何断点。每当我跑步时,它们就会变得残疾,将鼠标悬停在它们上方会给我

Xcode won't pause at this breakpoint because it has not been resolved.
Resolving it requires that:
• The line at the breakpoint is compiled.
• The compiler generates debug information
that is not stripped out (check the Build
Settings).
• The library for the breakpoint is loaded.

为什么会出现这种情况?

我已经检查过它实际上已编译,代码正在运行,调试符号正在生成,产品没有被剥离,文件具有正确的成员资格。强化运行时未打开,并且 SIP 已关闭。那么...我错过了什么?

这发生在工作空间上。我也尝试删除所有断点并在项目级别创建它们。

xcode macos debugging breakpoints
1个回答
0
投票

经过大量搜索并尝试不同的建议解决方案后,我终于意识到,在我的案例中,问题的根源是我正在运行 PreferencePane,而不是其他任何东西。

无法正常将调试器附加到

System Preferences.app
,因为这样就无法解析符号。相反,正确的方法是附加到位于
PreferencePanes.framework

内部的遗留加载程序

来源:https://developer.apple.com/forums/thread/69431#649239022

© www.soinside.com 2019 - 2024. All rights reserved.