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?
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. :)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With