gsabran / DDDKit

360 video player for iOS written in swift - a subset of SceneKit that works

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example project crashes

jamezilla opened this issue · comments

Blows up on unimplemented public required init?(coder aDecoder: NSCoder) in DDDViewController, immediately after startup.

image

Happens in both the latest release (1.3.0) and in the master branch.

Thanks for reporting. I'll have a look

I also get this issue no matter on Simulator or Real iPhone.

I've fixed the issue..
Remove below function from DDDView.swift

public required init?(coder aDecoder: NSCoder) {
    fatalError("DDDViewController should not be initialized from a coder")
}

And add

required public init(coder aDecoder: NSCoder) {
    self.isPaused = false
    DDDViewController.count += 1
    super.init(coder: aDecoder)!
}

Thanks.

Fixed by b348499, thanks for reporting!