Error creating an instance of a class with stored variable value and default value, SKLabelNode, Swift iOS 8.1

This is a new crash I am getting with iOS 8.1, XCode 6.1, iPhone 5 a1528, which was not there in iOS 8.0, XCode 6.0, iPhone 5 a1528.

Offensive line of code:

class GameScene: SKScene, UIGestureRecognizerDelegate {
    var scoreLabel = SKLabelNode(fontNamed: "American Typewriter")
    ...

      

Relevant feedback:

frame #0: 0x1fe0c08c dyld`dyld_fatal_error
frame #1: 0x1fe0e902 dyld`dyld::halt(char const*) + 74
frame #2: 0x1fe0eb1a dyld`dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 278
frame #3: 0x300e0094 libdyld.dylib`dyld_stub_binder + 20
frame #4: 0x000c5dcc Pizza Slice`Pizza_Slice.GameScene.init (size=CoreGraphics.CGSize at 0x001ea3f0, self=0x16d034f0)(size : C.CGSize) -> Pizza_Slice.GameScene + 156 at GameScene.swift:16

      

And the only visible error is from dyld_fatal_error

:

EXC_BREAKPOINT

Does anyone have similar similar errors in their projects?

0


source to share





All Articles