0

我开始我的项目在 ios7 上立即崩溃,出现以下错误,但我不明白如何解决。

2014-12-08 18:29:07.605 MyProject[1293:613] +[SKLabelNode nodeWithFileNamed:]:    unrecognized selector sent to class 0x10c6273a0
2014-12-08 18:29:07.608 MyProject[1293:613] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[SKLabelNode nodeWithFileNamed:]: unrecognized selector sent to class 0x10c6273a0'
4

1 回答 1

1

正如您在下图中看到的,方法 nodeWithFileNamed: 在 iOS 8.0 及更高版本中可用,这就是您的应用在较低 iOS 版本上崩溃的原因。

SKNode 类参考

于 2014-12-08T23:43:13.637 回答