Target Application Logs Not showing while running XCUITest

In our application, we are having custom logging. When the project is compiled locally on the XCode, I can see that those logs are appearing properly on Xcode Console (Debug Area). Also, when compiling the UITest scheme, the application logs are appearing as expected. But when I run a uitest, then only test runner logs are showing up in debug area. When I select My application target then it's not having application logs.


Is this something expected? Is there any setting that I have to turn ON with in Xcode?

Any help will be really appreciated.


Thanks

Replies

Solution: Choose the App target -> 2 as indicated in the screenshot to print app logs in the console.