This is a migrated thread and some comments may be shown as answers.

AppBuilder on iOS Crashes

1 Answer 63 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David Weinberg
Top achievements
Rank 2
David Weinberg asked on 24 Dec 2015, 12:20 AM
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

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

Regards,
Tina Stancheva
Telerik
 

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

 
Tags
Report a bug
Asked by
David Weinberg
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Share this question
or