Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Custom keyboard does not load on physical device running iOS 8

I've successfully written a custom keyboard for iOS with swift and it loads perfectly on all iOS simulators (iPhone 5s, iPhone 6, iPhone 6Plus). but when I try to test my keyboard on physical device, keyboard won't load. :|

I'm using Xcode 6.0.1 and my iPhone runs iOS 8 (not beta version) and I've added my keyboard in Keyboard section in setting.

It's weird that keyboards load perfectly on simulator, but not actual device.

Is there anything that I am missing?

like image 416
Reza_Rg Avatar asked Nov 28 '25 05:11

Reza_Rg


2 Answers

I figured it out, to test your keyboard on physical device, you have to change the value of the RequestsOpenAccess Boolean key in the Info.plist file to YES.

and by Info.plist I mean Info.plist for your keyboard extension not containing app.

Then after running application on physical device yo have to grant access to keyboard in keyboard section of general and voila. :)

like image 63
Reza_Rg Avatar answered Nov 29 '25 19:11

Reza_Rg


Some mistakes I made that caused my keyboard extension to stop loading.

First, I created an app profile that had entitlements that didn't match the project. I ended up just deleting the profile and building with automatic settings since I'm pretty far from testing/submitting.

I also had changed the name of the entry UITextViewController and the extensions storyboard without updating them in the NSExtension principle class in it's info.plist.

like image 37
SafeFastExpressive Avatar answered Nov 29 '25 17:11

SafeFastExpressive



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!