问题
I build an app to my iPhone, quit it, launch it again and then I succesfully Attach to Process in Xcode. Now I have a running Debug in the Log Navigator, but my console is just empty. Shouldn't I see all my usual console outputs there?
回答1:
You can see the logs in Device logs. Open xcode Window-->Devices (Select device)-->Device logs.Click on 'up' arrow button to see the consol.It display every logs in development/adhoc/appstore apps.
回答2:
The console in Xcode will only display output from your application's process, not the firehose of output shown in the general device console.
回答3:
I too face this problem recently and found it working when I force quit xcode and try clean build. Its adhock but it works. Have fun.
回答4:
check if you changed the bottom-left parameter of the XCode console
try selecting the default value "All Output"
来源:https://stackoverflow.com/questions/15431036/xcode-console-empty-after-attaching-to-process