0
我通過使用調試>附加到進程PID或名稱(我花了我一直弄清楚)來連接到我的UNNotificationServiceExtension
實現,雖然當我的斷點被擊中,並且我嘗試了po
一個變量時,如下:如何在調試擴展時打印變量?
(lldb) po response // `response` is a `NSURLResponse`, so I would expect it to be available to the debugger by way of `Foundation`.
warning: Swift error in module
MyExtensionProxy(0x00000001000e8000).
Debug info from this module will be unavailable in the debugger.
warning: Swift error in module
MyExtension(0x0000000100118000).
Debug info from this module will be unavailable in the debugger.
error: in auto-import:
failed to get module 'MySharedFramework' from AST context
(lldb)
我找不到任何關於如何解決這些框架運行時錯誤的信息,所以調試幾乎是不可能的。我怎樣才能使這些模塊在調試器中可用,並且能夠使用我的對象?
...太棒了,謝謝。 – Hyperbole