Keyboard Extension Crash on Device

。_饼干妹妹 提交于 2020-01-02 23:26:23

问题


maybe you can help me?

I've got a keyboard extension to work before on a device, but in my new project, it doesn't work... On the simulator, it works fine. I add the keyboard in Settings, and allow full access on both simulator and device.

On the device, when I switch from any other keyboard to the new keyboard, it pauses for a bit, like it is loading, and a Xcode error pops up: Lost connection to "Kjell Connelly’s iPhone". Restore the connection to "Kjell Connelly’s iPhone" and run "com.2xpop.KeyboardRPG.Keyboard-RPG" again, or if "com.2xpop.KeyboardRPG.Keyboard-RPG" is still running, you can attach to it by selecting Debug > Attach to Process > com.2xpop.KeyboardRPG.Keyboard-RPG.

Sometimes the popup happens right away when I switch to the new keyboard, but sometimes it happens after the keyboard tries to load for a few seconds.

I did what the popup says, and tried to attach the debugger to the process, but it never attaches.

I thought that maybe too much was happening in the app, so I commented out all of the code in the viewDidAppear and viewDidLoad methods (except the super parts) so at least the keyboard would appear blank. Still didn't help.

Anyone have this problem before or have any ideas?

The normal app works as expected, but just not the extension, and only on device.


回答1:


Oh jeez, i just figured it out, after a few weeks of putting this project off because being stuck: I need to have arm64 working... I turned it off because the current AdMob SDK doesn't work for arm64. But thats ok because the extension doesn't use ads, only the original app.



来源:https://stackoverflow.com/questions/27305055/keyboard-extension-crash-on-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!