Bug 35653 - Mapbox SDK for iOS works in Simulator, but not works in real device.
Summary: Mapbox SDK for iOS works in Simulator, but not works in real device.
Status: RESOLVED FIXED
Alias: None
Product: Components
Classification: Xamarin
Component: Component Store ()
Version: Production (addons.xamarin.com)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jon Dick
URL:
Depends on:
Blocks:
 
Reported: 2015-11-07 10:49 UTC by kochizufan
Modified: 2015-12-01 16:32 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Error occuring sample project (7.21 MB, application/zip)
2015-11-07 10:51 UTC, kochizufan
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description kochizufan 2015-11-07 10:49:31 UTC
I also reported in forum,
http://forums.xamarin.com/discussion/55280/mapbox-sdk-for-ios-works-in-simulator-but-not-works-in-real-device

MapBox SDK is not worked in real device (iPhone5S + iOS9.1).
In simulator, it works fine.

At first, running on real device, sample causes error below:

> MapboxSampleiOS[3635:1365466] -[NSProcessInfo mgl_isInterfaceBuilderDesignablesAgent]: unrecognized selector sent to instance 0x156609bf0

but this error is solved if I add

> -gcc_flags "-ObjC"

to build options.

But next, sample causes error below:

> Wrapper type 'Mapbox.Annotation' is missing its native ObjectiveC class 'MGLAnnotation'.

on ViewController.cs line 33.

This error cannot be solved by my skill.
Maybe this is bug, I think.
Comment 1 kochizufan 2015-11-07 10:51:54 UTC
Created attachment 13718 [details]
Error occuring sample project
Comment 2 k.a.shah 2015-11-13 18:57:55 UTC
Loaded assembly: /private/var/mobile/Containers/Bundle/Application/0B58F618-85F6-4927-9B92-B1A1215DB952/MapboxSampleiOS.app/.monotouch-64/Newtonsoft.Json.dll
Loaded assembly: /private/var/mobile/Containers/Bundle/Application/0B58F618-85F6-4927-9B92-B1A1215DB952/MapboxSampleiOS.app/.monotouch-64/MapboxSampleiOS.exe
2015-11-13 17:57:12.356 MapboxSampleiOS[2941:881199] -[NSProcessInfo mgl_isInterfaceBuilderDesignablesAgent]: unrecognized selector sent to instance 0x16e4d4a0
2015-11-13 17:57:12.389 MapboxSampleiOS[2941:881199] critical: Stacktrace:

2015-11-13 17:57:12.390 MapboxSampleiOS[2941:881199] critical:   at <unknown> <0xffffffff>
2015-11-13 17:57:12.390 MapboxSampleiOS[2941:881199] critical: 
Native stacktrace:

2015-11-13 17:57:14.331 MapboxSampleiOS[2941:881199] critical: 	0   MapboxSampleiOS                     0x02675dad mono_handle_native_sigsegv + 240
2015-11-13 17:57:14.331 MapboxSampleiOS[2941:881199] critical: 	1   MapboxSampleiOS                     0x0267dfeb mono_sigsegv_signal_handler + 226
2015-11-13 17:57:14.332 MapboxSampleiOS[2941:881199] critical: 	2   libsystem_platform.dylib            0x36082077 _sigtramp + 42
2015-11-13 17:57:14.332 MapboxSampleiOS[2941:881199] critical: 	3   ???                                 0x00000000 0x0 + 0
2015-11-13 17:57:14.332 MapboxSampleiOS[2941:881199] critical: 	4   MapboxSampleiOS                     0x0267538d mono_handle_exception_internal + 1896
2015-11-13 17:57:14.333 MapboxSampleiOS[2941:881199] critical: 	5   MapboxSampleiOS                     0x02674c1f mono_handle_exception + 30
2015-11-13 17:57:14.333 MapboxSampleiOS[2941:881199] critical: 	6   MapboxSampleiOS                     0x0266ec85 mono_arm_throw_exception + 104
2015-11-13 17:57:14.333 MapboxSampleiOS[2941:881199] critical: 	7   MapboxSampleiOS                     0x0119faf4 throw_exception + 64
2015-11-13 17:57:14.334 MapboxSampleiOS[2941:881199] critical: 	8   MapboxSampleiOS                     0x002a0f7c ObjCRuntime_Runtime_throw_ns_exception_intptr + 28
2015-11-13 17:57:14.334 MapboxSampleiOS[2941:881199] critical: 	9   MapboxSampleiOS                     0x00bfa294 wrapper_native_to_managed_ObjCRuntime_Runtime_throw_ns_exception_intptr + 72
2015-11-13 17:57:14.334 MapboxSampleiOS[2941:881199] critical: 	10  MapboxSampleiOS                     0x0272e940 xamarin_throw_ns_exception + 52
2015-11-13 17:57:14.335 MapboxSampleiOS[2941:881199] critical: 	11  MapboxSampleiOS                     0x02730894 _ZL17exception_handlerP11NSException + 224
2015-11-13 17:57:14.335 MapboxSampleiOS[2941:881199] critical: 	12  CoreFoundation                      0x23d519b7 <redacted> + 642
2015-11-13 17:57:14.335 MapboxSampleiOS[2941:881199] critical: 	13  libobjc.A.dylib                     0x357a709f <redacted> + 174
2015-11-13 17:57:14.336 MapboxSampleiOS[2941:881199] critical: 	14  libc++abi.dylib                     0x34e73e17 <redacted> + 78
2015-11-13 17:57:14.336 MapboxSampleiOS[2941:881199] critical: 	15  libc++abi.dylib                     0x34e738f9 __cxa_increment_exception_refcount + 0
2015-11-13 17:57:14.336 MapboxSampleiOS[2941:881199] critical: 	16  libobjc.A.dylib                     0x357a6f5f objc_exception_rethrow + 42
2015-11-13 17:57:14.337 MapboxSampleiOS[2941:881199] critical: 	17  CoreFoundation                      0x23c6619f CFRunLoopRunSpecific + 654
2015-11-13 17:57:14.337 MapboxSampleiOS[2941:881199] critical: 	18  CoreFoundation                      0x23c65f05 CFRunLoopRunInMode + 108
2015-11-13 17:57:14.337 MapboxSampleiOS[2941:881199] critical: 	19  UIKit                               0x27eae20d <redacted> + 524
2015-11-13 17:57:14.338 MapboxSampleiOS[2941:881199] critical: 	20  UIKit                               0x27ea8f15 UIApplicationMain + 144
2015-11-13 17:57:14.338 MapboxSampleiOS[2941:881199] critical: 	21  MapboxSampleiOS                     0x00af6dd4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
2015-11-13 17:57:14.338 MapboxSampleiOS[2941:881199] critical: 	22  MapboxSampleiOS                     0x00183038 UIKit_UIApplication_Main_string___intptr_intptr + 52
2015-11-13 17:57:14.339 MapboxSampleiOS[2941:881199] critical: 	23  MapboxSampleiOS                     0x00182edc UIKit_UIApplication_Main_string___string_string + 204
2015-11-13 17:57:14.340 MapboxSampleiOS[2941:881199] critical: 	24  MapboxSampleiOS                     0x000bf130 MapBoxSampleiOS_Application_Main_string__ + 172
2015-11-13 17:57:14.340 MapboxSampleiOS[2941:881199] critical: 	25  MapboxSampleiOS                     0x01148d24 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2015-11-13 17:57:14.341 MapboxSampleiOS[2941:881199] critical: 	26  MapboxSampleiOS                     0x026804c7 mono_jit_runtime_invoke + 1150
2015-11-13 17:57:14.341 MapboxSampleiOS[2941:881199] critical: 	27  MapboxSampleiOS                     0x026c5fb9 mono_runtime_invoke + 88
2015-11-13 17:57:14.342 MapboxSampleiOS[2941:881199] critical: 	28  MapboxSampleiOS                     0x026c9633 mono_runtime_exec_main + 282
2015-11-13 17:57:14.342 MapboxSampleiOS[2941:881199] critical: 	29  MapboxSampleiOS                     0x027477a0 xamarin_main + 2072
2015-11-13 17:57:14.343 MapboxSampleiOS[2941:881199] critical: 	30  MapboxSampleiOS                     0x02568d39 main + 112
2015-11-13 17:57:14.343 MapboxSampleiOS[2941:881199] critical: 	31  libdyld.dylib                       0x35f15873 <redacted> + 2
2015-11-13 17:57:14.343 MapboxSampleiOS[2941:881199] critical: 
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 3 Jon Dick 2015-12-01 16:32:18 UTC
I can't reproduce this in the 3.0.0 version of the bindings that will be released soon (works fine in both Debug and Release mode on device), so I believe this version fixes it!