在模拟器Swift上运行自定义键盘时出错 [英] Error while running Custom Keyboard running on simulator Swift

查看:104
本文介绍了在模拟器Swift上运行自定义键盘时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作自定义键盘。对于简单的自定义键盘来说,它运行良好,但是在单击表情符号时却显示以下错误:

I am trying to make custom keyboard.For simple custom keyboard it is running fine, but while clicking on emoji it is showing below error :


viewServiceDidTerminateWithError ::错误域= _UIViewServiceInterfaceErrorDomain代码= 3(null) UserInfo = {消息=服务连接中断}

viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}

我也尝试过使用Device运行它,但仍然显示相同的错误。有人知道它的解决方案吗?

I have also tried running this with Device but still it is showing same error. Do anyone know what is the solution for it?

推荐答案

对我来说,解决该问题的办法是在自定义键盘上启用完全访问权限。



What fixed it for me is to enable Full Access on the custom Keyboard.


  1. 点击错误并出现系统键盘

  2. Cmd + Shift + H(在模拟器)

  3. 转到设置>常规>键盘

  4. 选择自定义键盘

  5. 点击公开指示器

  6. 启用(或切换/关闭)完全访问指示器

  7. 在显示完全访问警报时点按允许

  8. 重新运行键盘应用程序

  9. 选择要运行的容器应用程序

  1. Click through the error and the system keyboard appears
  2. Cmd+Shift+H (on the simulator)
  3. Go to Settings > General > Keyboards
  4. Select the custom keyboard
  5. Tap the disclosure indicator
  6. Enable (or Toggle off/on) the Full Access indicator
  7. Tap Allow when the Full Access alert shows up
  8. Rerun the keyboard app
  9. Choose your container app to run

这篇关于在模拟器Swift上运行自定义键盘时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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