IOS – ny way to see iPhone logs on Mac’s Console over wifi

iosiphonemacxcode

As the title says, is there any way to read the console logs without connecting the iphone to the mac via USB? I've tried putting the iPhone on the same Wi-Fi and it still does not work.

I need to debug a behaviour that happens when the iPhone is not charging.

Also, from Xcode devices & simulators window the option "Open Console" is greyed out. View Device Logs does not show the same amount of detail.

enter image description here

Best Answer

On the device list in the left sidebar, it's possible to provide an IP address by right clicking the device. As long as both are in the same network Xcode will be able to connect to the iPhone.