Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift println command does not output in console

Using a playground file in Xcode 6 beta, I am trying to get an output in the console for the println command. I have written println("test"), opened the Assistant Editor (View\Assistant Editor\Show Assistant Editor) and see that little window named "Console output", but still I get nothing. I have also tried to close and restart Xcode.

What am I doing wrong?

like image 375
OscarWyck Avatar asked Jul 29 '26 11:07

OscarWyck


2 Answers

In recent Versions of Xcode, like Beta 6, the println() result will be displayed in the sidebar on the right.

No need for Assistant Editor anymore.

But you need to install new Beta Versions manually.

like image 135
Blackvenom Avatar answered Aug 01 '26 01:08

Blackvenom


1) Close the Assistant Editor

2) Quit Xcode

3) Reopen the playground file

4) Open Assistant Editor (Command+Option+Enter or View/Assistant Editor/Show Assistant Editor)

Now it should show the logs.

like image 40
Upendar Gareri Avatar answered Aug 01 '26 02:08

Upendar Gareri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!