我想同时获取main app 、today-extension 调试信息。
我运行了 main app 方案,只得到了 main app 调试信息。
我尝试通过 Process Identifier(today-extension id) 附加,但是当我选择 today-extension 进程时它是空白的。
我该怎么办?
Best Answer-推荐答案 strong>
Basically select the Watch App as the scheme in xcode, hit build+run
which will build the iOS app and WatchKit app, install the WatchKit
app on to the Watch and attach the debugger to the WatchKit Extension.
Then in xcode select the iOS app in the scheme selector and select the
iPhone as the target device, launch the iOS app by tapping the app
icon on the phone and in xcode in the menu bar select "Debug > Attach
to Process" and select your app in the list. This should result in
having xcode attached to both processes at the same time. If you want
to debug something early in the iOS app's lifecycle you can select
"Debug > Attach to Process by PID or Name..." and type in the process
name of the iOS app prior to launching it manually. This way the
debugger will be attached right when the app launches.
来自 Apple 开发者 site .
请注意,他们讨论的是 WatchKit,但 Today Extension 也是如此。
关于ios - XCode 同时调试主应用程序和今天的扩展程序,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/40198925/
|