Daniel Brim
Daniel Brim

Reputation: 507

iOS 8 custom keyboard crash when debugging

Issue

Most times, when I try to debug my custom keyboard extension, I receive the following error and then the keyboard disappears (presumably crashes, so the system removes it from screen and replaces it with the standard keyboard)

 plugin com.db.Trype.TrypeKeyboard interrupted

(Note: Trype is the name of my keyboard.)

Process

I am debugging the keyboard the following way:

I've tried different version of Xcode-Beta and tried restarting the simulator, computer, etc., all to a varying degree of temporary success.

Anyone else run into this error and have a suggestion?

Update: Here is an accompanying error message. Maybe there is some way to print out more of the UserInfo?

 viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3  
 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.)" 
 UserInfo=0x7fc99c900a50 {Message=Service Connection Interrupted}

Upvotes: 8

Views: 4503

Answers (1)

Daniel Brim
Daniel Brim

Reputation: 507

After messing around with it some more, I'm beginning to conclude this is an iOS 8/Xcode bug with the way that extensions are debugged.

Xcode sometimes seems to build project and install multiple versions of the extension keyboard into the iOS simulator. It also occasionally kills the extension and reloads it. Very strange behavior. Just sitting and staring at the debugging sidebar shows it get killed (disappear) and then relaunch.

The first is a successful launch. The second is an unsuccessful launch where the extension appears to hang and wait to attach.

Shows both processes attached to the debugger

Extension waiting to attach

Upvotes: 2

Related Questions