我对 Mac 开发和 Swift 语言完全陌生。我正在尝试在 Playground 中运行来自 Swift 博客(这里!)的 Balloons 演示,但在该行中:
let scene = SKScene(fileNamed: "GameScene")
我得到错误:
Execution was interrupted, reason: SIGABRT
控制台显示:
2014-08-11 22:23:40.647 Balloons[484:303] +[SKScene nodeWithFileNamed:]: unrecognized selector sent to class 0x103d999d8
由于我是 Swift 新手,我完全不知道发生了什么。我没有对原始代码进行任何修改。
谁能告诉我这里的灯?谢谢。