AppBuilder on iOS Crashes

Thread is closed for posting
2 posts, 0 answers
  1. David Weinberg
    David Weinberg avatar
    24 posts
    Member since:
    Jul 2015

    Posted 23 Dec 2015 Link to this post

    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.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 28 Dec 2015 Link to this post

    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 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.

    Tina Stancheva

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top