How to debug an iOS app extension?
问题 I'm trying to debug an iOS app extension and all I can do is to set breakpoints but it would be nice to be able to print to console. Is this possible with Xcode 9? Or at least read it somewhere, maybe a file? I went to see my device's logs in "devices and simulators" but could't find what I printed from my iOS app extension. 回答1: You can debug an app extension like any other app by just choosing target and device and then running the extension. You need to choose an app to run with the