This issue can also be replicated outside the AppBuilder
companion app. I created a sample project with an empty <select>
element which I deployed directly on an iPhone running iOS 9.2. Opening the select element caused the app to crash with the following exception: Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
This seems to be an issue in the iOS UIWebView
- I noticed it was also discussed in the comments section of this Cordova issue
. I am afraid I can't suggest a fix as the cause seems to lie in the native implementation of the UIWebView
. As a workaround you can try replacing the default WebView
with a WKWebView
as described here
If you decide to try that, please note that enabling the WKWebView
basically enables the WKWebView Polyfill
plugin in the Plugins
section. At the moment in AppBuilder
, the latest supported version of this plugin is 0.6.8
but it only works in an app built in Release
mode. If you want to test the <select>
element behavior in a WKWebView
in debug mode, you can change the plugin version to 0.6.7
. This article
describes how to update the version of a Verified Plugin.
Let me know if I can help you with more information.