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.
Related Topics
Adding Swift Files to Test Target Not Fixing Unit Tests
Core Data Predicate:Unimplemented SQL Generation for Predicate
iOS Swift 3:Convert "Yyyy-Mm-Dd'T'Hh:Mm:Ssz" Format String to Date Object
Calling Instance Method During Initialization in Swift
iOS Client Certificates and Mobile Device Management
How to Control Avassetwriter to Write at the Correct Fps
How to Read Incoming Sms by Using Application in iOS
How to Determine If a User Has an iOS App Installed
Optional Binding Succeeds If It Shouldn'T
How to Ensure to Run Some Code on Same Background Thread
Alert When New Version of iOS App Is Available
Fonts Not Displaying in Interface Builder
Apple Watch - Only Getting Data If App on Phone Is Active