When using AppBuilder v2.11.3 or v2.11.4 on iOS 9 it crashes when there is a drop down without any values. Works fine on Android and on AppBuilder v2.11.2.
1 Answer, 1 is accepted
0
Tina Stancheva
Telerik team
answered on 28 Dec 2015, 01:22 PM
Hi David,
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 iOSUIWebView - 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.