简体   繁体   English

今日扩展断点未在Xcode 8.3.2中触发

[英]Today Extension Breakpoints not triggered in Xcode 8.3.2

I try to debug my Today Extension. 我尝试调试“今日扩展”。 When I run the scheme for the Today Extension on my Device I can see all NSLogs. 当我在设备上运行“今日扩展”方案时,我可以看到所有NSLogs。 But all Breakpoints get ignored so far. 但是到目前为止,所有断点都被忽略了。 The host app can be debugged normally. 主机应用可以正常调试。

That means I already attached my Today Extension target to the debugger. 这意味着我已经将“今日扩展”目标附加到调试器。

I already tried to delete the DerivedData folder. 我已经尝试删除DerivedData文件夹。 I already tried to reset my Xcode Defaults. 我已经尝试过重置Xcode默认值。

break list returns all breakpoints which are set. break list返回设置的所有断点。

Any ideas? 有任何想法吗?

when I was developing today extension, I was debugging it like this: 当我今天开发扩展时,我正在像这样调试它:

1) I ran my app on device 1)我在设备上运行了我的应用

2) Debug > Attach to process by PID or Name > type my_process_name ( see screenshot ) 2)调试>通过PID或名称附加到进程>输入my_process_name(请参见屏幕截图)

3) Click attach, then it worked 3)点击附加,然后成功了

在此处输入图片说明

I was able to identify the problem: 我能够确定问题所在:

It is necessary to add each source file to the Today Extension Target. 必须将每个源文件添加到Today Extension Target。 Otherwise it is not possible for the Debugger to find the breakpoint in my case. 否则,调试器无法在我的情况下找到断点。 But this is more complicated to change. 但这要更复杂。 Because of our current architecture. 由于我们目前的架构。 But now I do know that Xcode works as appropriate. 但是现在我知道Xcode可以正常工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM