0

I just updated to XCode Beta 3 and I had to change every single array in the application because arrays are now defined differently than before. But I do not think this is the problem. The application runs with no compile errors or warnings.

The application crash here:

extension SKNode { class func unarchiveFromFile(file : NSString) -> SKNode? { // CRASH let path = NSBundle.mainBundle().pathForResource(file, ofType: "sks") var sceneData = NSData.dataWithContentsOfFile(path, options: .DataReadingMappedIfSafe, error: nil) var archiver = NSKeyedUnarchiver(forReadingWithData: sceneData) archiver.setClass(self.classForKeyedUnarchiver(), forClassName: "SKScene") let scene = archiver.decodeObjectForKey(NSKeyedArchiveRootObjectKey) as GameScene archiver.finishDecoding() return scene } } 

What has happend?

1
  • What is the crash message? Commented Jul 11, 2014 at 16:28

1 Answer 1

2

Try cleaning out the build folder

You can do it from the Products menu while holding ALT.
Or by using the CMD + ALT + SHIFT + K keyboard shortcut

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.