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
ios cocoa-touch xcode swift sprite-kit


source to share


No one has answered this question yet

Check out similar questions:

462
Swift how to sort array of custom objects by property value
395
Static vs class functions / variables in Swift classes?
317
How do I print the type or class of a variable in Swift?
135
Swift class error: property not initialized when calling super.init
128
Store closure as a variable in Swift
105
How to initialize / instantiate UIView class with XIB file in Swift
93
Rapid programming: getter / setter in stored property
2
Xcode: add default standard font to SKLabelNode with Swift
1
SKLabelNodes does not respond to "isHidden" property in Swift 4
0
SKLabelNode under SKSpriteNode crash swift app



All Articles
Loading...
X
Show
Funny
Dev
Pics