设备上的键盘扩展名崩溃 [英] Keyboard Extension Crash on Device

查看:103
本文介绍了设备上的键盘扩展名崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许您可以帮我吗?

我以前有一个键盘扩展件可以在设备上工作,但是在我的新项目中,它不起作用...在模拟器上,它可以正常工作.我在设置"中添加了键盘,并允许在模拟器和设备上进行完全访问.

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.

在设备上,当我从任何其他键盘切换到新键盘时,它会暂停一会,就像正在加载一样,并且会弹出Xcode错误:与"Kjell Connelly's iPhone"的连接断开.恢复与"Kjell Connelly的iPhone"的连接,然后再次运行"com.2xpop.KeyboardRPG.Keyboard-RPG",或者如果"com.2xpop.KeyboardRPG.Keyboard-RPG"仍在运行,则可以选择调试">附加到Process> com.2xpop.KeyboardRPG.Keyboard-RPG.

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.

我认为应用程序中可能发生了太多事情,因此我注释掉了viewDidAppear和viewDidLoad方法中的所有代码(超级部分除外),因此至少键盘会显示为空白.仍然没有帮助.

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.

推荐答案

噢,老天,我因为搁浅而推迟了几个项目,才弄清楚了:我需要让arm64工作...我转身之所以关闭,是因为当前的AdMob SDK无法在arm64上运行.没关系,因为扩展程序不使用广告,仅使用原始应用程序.

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.

这篇关于设备上的键盘扩展名崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆