3

My custom keyboard runs smooth and nice. Now, I wanna add an UICollectionView. I added it in the control to my view in the Interface Builder and the data source and delegate protocol to my view controller which is the File's owner of the related xib file and linked it to the control.

If I deploy and run the app, I will always get the error message:

"plugin xxx-Keyboard interrupted"

If i remove the collection view, I'm able to run the keyboard without any problems.

This is how I connect the keyboard extension view controller to the xib file:

    let nib     = UINib(nibName: "KeyboardView", bundle: nil)
    let objects = nib.instantiateWithOwner(self, options: nil)
    view        = objects[0] as! UIView

1 Answer 1

4

Lesson learned today:

  • You cannot debug an extensions like the "main" app

    • You have to attach the debugger by hand to the process
  • If something crashes inside the extension, there is only the "interrupted label"

  • If everything works properly, the view / custom keyboard will load

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.