Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 have the keyboard extension as a target.
  • I've modified the TrypeKeyboard scheme to run my app executable on launch.
  • The keyboard has been added in the Simulator's Settings App.

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}
like image 462
Daniel Brim Avatar asked Sep 05 '14 20:09

Daniel Brim


1 Answers

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

like image 174
Daniel Brim Avatar answered Oct 11 '22 18:10

Daniel Brim