学习Swift最快捷的方法就是创建playground,但有时后运行很慢或者一直显示Running,无法输出。解决办法关闭Xcode在终端里执行2段代码rm -rf ~/Library/Developer/CoreSimulator/Deviceskillall -9 com.apple.CoreSimulator.CoreSimulatorService再打开playground文件就正常了