cannot decode object of class (SKReferenceNode)

In Xcode 7.0 using Swift 2.0, I drag a SKScene file into my main scene to create a SKReferenceNode. It's seems to work, the scene is embedded.

People from Apple showed this in a video from the last WWDC.

But when I run the app, I've got this error :

*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (SKReferenceNode)'

Did I miss something ?

Accepted Reply

Ok, I missed something big: SKReferenceNode needs iOS 9.0 and my device was running iOS 8.4.1.

Replies

Ok, I missed something big: SKReferenceNode needs iOS 9.0 and my device was running iOS 8.4.1.