gpt4 book ai didi

xcode - swift 博客中的气球演示错误

转载 作者:搜寻专家 更新时间:2023-10-31 22:16:58 26 4
gpt4 key购买 nike

我对 Mac 开发和 Swift 语言完全陌生。我正在尝试在 Playground 中运行来自 Swift 博客(Here!)的气球演示,但在以下行中:

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 的新手,所以我完全不知道发生了什么。我没有对原始代码进行任何修改。

谁能告诉我这里的灯?谢谢。

最佳答案

一定要满足博文中的要求:

This playground uses new features of SpriteKit and requires the latest beta versions of Xcode 6 and OS X Yosemite.

Balloons Playground 无法在 OS X Mavericks 上运行,即使您使用最新的 Xcode 测试版也是如此。

关于xcode - swift 博客中的气球演示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25254947/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com