当我在 iOS 扩展中调试代码时。我面临一些崩溃EXC_BREAKPOINT
我做了什么?
- 使用 Xcode 11.5 运行我的应用程序。
- 开始调试扩展:
Debug
->Attach to Process by PID or name
->Input my Extension name and click Attach Button
Extension code
在(我的是UNNotificationServiceExtension
)中设置一些断点- 最小化APP。
- 推送通知。
- 触发我设置的断点。
- 继续调试。然后我看到了这个崩溃。
我的问题是如何在我的情况下调试扩展?