简体   繁体   English

ios键盘未在“设置”中显示

[英]ios keyboard not showing in Settings

After following the steps in here , the custom keyboard section is not shown in the Settings. 执行此处的步骤后,“设置”中不会显示自定义键盘部分。

One thing that I noticed, is that when setting up the project the "Embed in Application" drop down was set to None and had no other options. 我注意到的一件事是,在设置项目时,“嵌入应用程序”下拉列表设置为“无”,没有其他选项。 Also the directions said to add a Bundle display name row in my plist, but that was already there and had the project/keyboard name there. 此外,方向说我在我的plist中添加了一个Bundle显示名称行,但那已经存在并且在那里有项目/键盘名称。

I can run the keyboard project and it does ask for me to choose an application (I picked Safari). 我可以运行键盘项目,它确实要求我选择一个应用程序(我选择了Safari)。 Then I expected to be able to go to the settings and enable my keyboard, but it is not there. 然后我希望能够进入设置并启用我的键盘,但它不存在。

设置图像

确保键盘扩展目标 - >常规 - >部署目标不比设备当前的操作系统版本新。

You can try the following option, as it helped in my case: 您可以尝试以下选项,因为它在我的情况下有所帮助:

  1. Select your main app target. 选择您的主应用目标。
  2. Select "Build Phases" 选择“构建阶段”
  3. Expand "Embed App Extensions" 展开“嵌入应用扩展”
  4. Make sure that checkbox for "Copy only when installing" is unchecked 确保未选中“仅在安装时复制”复选框
  5. Run your app and check again Settings 运行您的应用并再次检查设置

在此输入图像描述

For me, the only thing that worked was restarting the phone . 对我来说,唯一有效的是重启手机

I could run the main app target and also debug the keyboard extension in another app, however it wouldn't show up in the list at Settings -> General -> Keyboard -> Keyboards -> Add New Keyboard... . 我可以运行主应用程序目标并在另一个应用程序中调试键盘扩展,但它不会显示在Settings -> General -> Keyboard -> Keyboards -> Add New Keyboard...

As soon as the phone was restarted, the keyboard extension showed up in the list straight away. 电话重启后,键盘扩展名立即显示在列表中。

My guess is that adding and removing the keyboard many times has the potential to confuse iOS and result in it thinking that the keyboard had already been added (hence why it doesn't show up in the list). 我的猜测是多次添加和删除键盘有可能混淆iOS并导致它认为键盘已经被添加(因此它没有出现在列表中)。

This link may help 此链接可能有所帮助

http://verisage.us/en/blog/2014/07/17/ios-8-custom-keyboard-swift-tutorial/ http://verisage.us/en/blog/2014/07/17/ios-8-custom-keyboard-swift-tutorial/

In short, you need an dummy app to deploy the keyboard. 简而言之,您需要一个虚拟应用程序来部署键盘。


Search " To run the custom keyboard and attach the Xcode debugger " in the following link. 在以下链接中搜索“ 运行自定义键盘并附加Xcode调试器 ”。 You will find how to attach the process to debugger. 您将找到如何将进程附加到调试器。

https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Keyboard.html#//apple_ref/doc/uid/TP40014214-CH16-SW7 https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Keyboard.html#//apple_ref/doc/uid/TP40014214-CH16-SW7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM