Swift Playground Not Working

Hi! I'm fairly new to Swift and was trying to mess around with it in Xcode and Playgrounds. The thing is that it refuses to print anything to the console. I have it on "automatic run" (signified by the purple play button) but have also tried it in "manual run". Does anyone have an idea about what is going on?


That should work. Which version of Xcode ?

Could you test with :

Swift.print(greeting)

And tell what you get ?

Check also in Xcode Preferences, in case you have set a white font for the console:

Otherwise, could you attach the full playground project so that one can investigate ?

Same here, for me it's not working either.

Swift Playground Not Working
 
 
Q