iOS 8 keyboard extension only loading on iPhone 5 and 5s - ios

I am currently working on a keyboard extension for iOS 8. Until recently, I was testing the extension exclusively on the iPhone 5 simulator. Upon switching the simulator to the iPhone 6(both simulator and physical phone), 6 Plus, and 4s and clicking on a text field, the keyboard doesn't appear at all. No error is shown either. Thinking that this was a bug in my program, I tested a new program that just had the default code, and the same thing happened. I am using the latest OS X, Xcode, and IOS Simulators.

There is a known issue with 8.1 that causes keyboards to not display in simulator.
Keyboards Known Issue
Additional Keyboards, including 3rd party keyboards, may not appear in
Safari, Maps or 3rd party apps on the Simulator.
Workaround: Keyboards should be testable in Calendar, Spotlight,
Contacts, and Photos.
I interpret this to mean your enclosing app won't work either. My keyboard won't display in Safari or Maps, but works fine in Photos search bar.

You have to clean the project EVERYTIME you change something in the code of an application linked to an App Extension on Xcode 6.1 (Acknowledged bug in Xcode 6.1 release notes)

Related

Xcode 12 Simulator banner reads "MyApp pasted from CoreSimulatorBridge"

Starting in Xcode 12, when my app launches in Simulator, a banner temporarily appears at the top. It reads "MyApp pasted from CoreSimulatorBridge".
The banner is styled differently than anything in my app. I am certain it comes from Simulator itself. I have noticed it in every simulated device: iPhone 11, iPhone 8, iPhone 11 Pro Max, and probably others.
What does this mean? Does it indicate something bad or is it merely informational?
I did not notice this in Xcode 12.0.1. I first noticed it in Xcode 12.4.
It's the same banner that appears whenever an app reads the clipboard, either intentionally by the user tap doing some kind of paste, or in the background by frameworks that are grabbing the clipboard contents.
CoreSimulatorBridge is the iOS process that is mirroring your Mac's clipboard to the simulator.
If you aren't grabbing the clipboard, perhaps one of the 3rd-party frameworks you're using is?
In my case this was because of an old version of Admob. I went through my game and disabled everything and it only went away when disabled GoogleMobileAds framework.
Jesus Christ, Google!

Xcode 9 compiled app and iOS 9.5.3 (iPad 2)

Anyone noticed issues with apps that are created with Xcode 9 and do not seem to work on iOS 9.5.3 and in this case an older iPad 2?
I have a customer that downloaded my app that I’ve complied and uploaded with Xcode 9, but when he installs the app it crashes straight away, and on some occasions in a flash of 2 sec. will display the interface builder screen layout of the app (ie all the views, buttons etc that are visible on interface builder but with a normal app nicely hidden until needed etc).
The minimum development target in Xcode is set to 8.2 so I assume it will and should be backwards compatible?
Seems like the device is jailbroken.. My latest app version includes a check for a jailbroken device, and does not allow the app to load when it detects one.
I Could reproduce the exact behaviour when triggering this validation check.

Unable to select my custom keyboard from the available keyboards list

I'm developing a custom keyboard app for iOS devices. After adding keyboard extension to my app I added a TextView to Main.storyboard and then I ran my app on an iPhone 5 simulator.
For adding my custom keyboard to available keyboards list I went to Settings > General > Keyboards > Add new Keyboard & here I added my custom keyboard but when I'm returning back to my app and trying to select my custom keyboard by long pressing the globe icon, my custom keyboard has not been shown there.
What's the matter here?
Please reply & I'm sorry for no code as I haven't coded any yet.
Thanks in advance
Please neglect the mistakes!
There is a bug concerning the simulator.
Either you run your extension on a real device or you can use the Photo app or Safari browser of the simulator to test your extension.
general article about developing iOS keyboards (head for “The Simulator”)
As of Xcode 6.1, you can no longer open 3rd party keyboards in most apps in the Simulator, including your own. (And not just 3rd party keyboards: most system keyboards refuse to show up, too.) Not only does this make debugging a whole lot harder, but it also prevents you from easily making screenshots of your keyboard if you don’t own some of the newer devices. This issue is marked as a bug in Radar, and seeing as how it first appeared in the Xcode 6.1 betas, I cannot fathom how it got through to release.

iPhone 6 UIWebView select drop down issue

My iPhone app uses a UIWebView interface to launch local HTML/JavaScript pages. It worked perfectly 'til the advent of iPhone 6. Both the 6 and the 6+ render the pages correctly, but pages with a form element seem broken. Tapping the selector fails to bring up the traditional option picker at the bottom of the screen.
I've tried Xcode 6 iOS 8 base SDK builds with targets ranging from iOS 5 to 8, and the problem persists. All simulators from 5S (iOS 8) and down work fine, but 6 and 6+ have the selector problem.
Also tried a Cordova build with no improvement. And no luck adding onmouseover="" to the select element:
Any advice?
I think its related to this issue iOS8 cordova issue and it link to the cordova bug https://issues.apache.org/jira/browse/CB-7694
The cordova bug says that its a ios bug... So I wonder why it still allowed to use this technique, at least we should be warned big time to not use SELECT elements.
Still looking for a patch or a workaround...
[UPDATE] The "presentViewController" code in my first link works !
Are you just using the iOS simulator to test this? I had a similar issue in the simulator, but testing it on an actual device seemed to work fine for me. However, in iOS Simulator, try going to Hardware -> Keyboard, and uncheck 'Connect Hardware Keyboard'.

How to get iPhone simulator 7.1 skin same like iPhone in Xcode 5.1.1 or Xcode 5

If I select normal iPhone simulator in Xcode 5 or Xcode 5.1.1, I am able view simulator same as an iPhone.
But, if I try the same thing with a 4-inch iPhone simulator, retina or non retina, (iOS 6.0, 7.0, 7.1), I'm not able to view simulator like iPhone. It's just showing only the screen, but not the skin or body?
I have tried to select iPhone 4-inch simulator and window scale 100% but it is just showing very big simulator.
If I do same thing for the normal iPhone simulator, it works fine and simulator shows like iPhone, but not for 4-inch simulator. How to get that?
I guess it would depend on your screen size, because I have the same "problem". However, it shouldn't be an issue.
If you need the home button functionality, you can just press Shift-Command-H
If you need to lock, it's just Command-L
That should be all you need in terms of what the skin can do...otherwise I don't really see the point in needing the skin.
The skin makes sense to have for making app preview videos. Now that we can add preview videos to the app store, we can't use the simulator to make a real looking phone simulation
While the iOS Simulator doesn't let you display the device skin/chrome, there are third-party tools that can. For example, I use an app called Reflector that basically makes your Mac look like an Apple TV on the network. You AirPlay the app as it runs on your device (not the simulator) to the Reflector app on your Mac. It, in turn, displays the screen and the skin/chrome around it.
(Looking for the URL, I just noticed that it now lets you display on Windows and allows you to "cast" Android apps as well.)

Resources