Xcode Swift playground hangs with the "Hello, playground" sample script without displaying the result to the right.
It hangs with the spinning wheel at the top either saying "Launching Simulator" or "Running MyPlayground1"
I had this problem before and stopped using Xcode for developing (I don't use GUI to code generally), but tried again today after having a fresh install of High Sierra and then Xcode 9.2 (really no other apps, just iCloud syncing documents).
Computer:
MacBookPro Early 2011
2.3 GHz Intel Core i5
4gb 1333 DDR3
SATA HD
OS:
10.13.3 installed today (same issue previously on Sierra)
Code:
"
import UIKit
var str = "Hello playground"
"
Would be willing to buy more RAM if that is the definitive answer.
Also willing to debug, but I'm not getting any errors and not sure what system log/ application log this would show up in.
I assume this is is likely a hardware compatibility issue since I reproduced the error on a new OS/ Xcode install, but would like to know how to get around it if possible.