SKLabelNode error , crash only iOS7

161 Views Asked by At

I start my project crashes immediately on ios7 , with the following error , but I can not understand how to solve .

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'
1

There are 1 best solutions below

2
On

As you can see in the image bellow the method nodeWithFileNamed: is available in iOS 8.0 and above, this is why your app is crashing on a lower iOS version.

SKNode Class Reference