Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在我的 XCUItest 的 Xcode 10.1 输出窗口中完美地查看 NSLog 行,但我无法在输出窗口中看到我的实际应用程序/代码的 NSLog 行。如何在一个窗口中同时查看我的应用程序的 NSLog 输出和我的测试?
如果这不可能,如果我可以在测试期间在我的 XCUtest 和我的应用程序输出窗口之间切换以查看相应的 NSlog,那就太好了。我知道我可以在测试期间切换目标,但如果我切换到我的真实应用程序,我看不到任何 NSLog 输出。
这些日志在“控制台”应用程序中可见。
如果您打开它并按您的应用名称过滤(PROCESS = 应用名称),您将能够看到它们。
知道如何在 Xcode 中做到这一点会很有趣。