Xcode Doesn't Write Anything to Output Console

Cannot print to console in Xcode

You cannot print to the console from a SwiftUI preview.

The only possibility for outputting debug info in a preview is to display your logs in a Text (or any other UI element) that's displayed in your Preview.

However, if you need proper debugging, run the full app, don't use previews. Previews are great for initial wireframes, but once you get to the stage where you need debugging, switch to using the view in your app and running that on the Simulator (or a real device) rather than using the preview.

Xcode 4 - Debug Area no longer shows my console output (NSLog)

Not sure but may be you have clicked on one of the three buttons at the top right corner of the debug area that are used to either show only variables view, only the console or both.

Xcode 8 (Swift) No print output in Console

Try with this way

View --> Debug Area --> Activate Console

XCode doesn't run and doesn't show output

I've faced the same issue. If I launch Xcode using rosetta it doesn't show anything, but once I switch off rosetta and it works perfectly.
Open Get Info on Xcode.app and unchecked "Open using Rosetta". then Playgrounds springs into life.

Xcode get info unchecked open using rosetta



Related Topics



Leave a reply



Submit