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