Skip to content

"fatal error: use of unimplemented initializer" when running #21

Closed

Description

@mctoon

I downloaded the zip, open in freshly updated xcode 6.2 and get this error:

/path-to/TableViewCellWithAutoLayoutiOS8-master/TableViewCellWithAutoLayout/TableViewController/TableViewController.swift: 10: 7: fatal error: use of unimplemented initializer 'init(nibName:bundle:)' for class 'TableViewCellWithAutoLayout.TableViewController'
(lldb)

Activity

  1. smileyborg commented on Mar 28, 2015

    @smileyborg
    Owner

    Hi @mctoon,

    Thanks for reporting this. Looks like it was caused by PR #19. Adding the following code back in to TableViewController.swift resolves the issue on Xcode 6.2:

    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }
    

    I need to test this on Xcode 6.3 beta, but based on PR #19 implementing that method as above actually causes issues in Swift 1.2.

  2. smileyborg commented on Mar 28, 2015

    @smileyborg
    Owner

    @mctoon Please give it a try again. I just pushed some changes that make the code compatible with both Xcode 6.2 (Swift 1.1) and Xcode 6.3 beta 4 (Swift 1.2).

  3. mctoon commented on Apr 8, 2015

    @mctoon
    Author

    Thank you, it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions