Bug 44305 - ECLImagePicker is not working with iOS 10 Simulator
Summary: ECLImagePicker is not working with iOS 10 Simulator
Status: RESOLVED FIXED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: N/A
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: David Humphreys
URL:
Depends on:
Blocks:
 
Reported: 2016-09-14 17:27 UTC by Larry Pauley
Modified: 2016-11-01 21:55 UTC (History)
3 users (show)

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

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 Larry Pauley 2016-09-14 17:27:23 UTC
I have iOS Simulator 9.3 and 10.0 in XCode on my Mac. ELCImagePicker work fine with 9.3, but just stops working when I click the picker button (+).  I have tried to include the ELCImagePicker solution with my ELCImagePickerSample solution to see what line the DLL seems to be having a problem, but the ELCImagePicker solution is not providing any debug information.  It just dies once I click the picker for an image library.
Comment 1 Larry Pauley 2016-09-14 19:20:04 UTC
I have tested my current code with an iPhone 6 Plus with iOS 10.0 and it works, but the simulator under XCode 10 does not work.

I have included some output from Visual Studio 2015, after I click the PICKER button.  I hope this helps some.

******************************************************************************
Here is output from Visual Studio 2015 when I click the PICKER BUTTON:

2016-09-14 15:14:31.024 ELCImagePickerSample[39693:413143] critical: 
Native stacktrace:
2016-09-14 15:14:31.025 ELCImagePickerSample[39693:413143] critical: 	0   ELCImagePickerSample                0x0026f56d mono_handle_native_sigsegv + 317
2016-09-14 15:14:31.025 ELCImagePickerSample[39693:413143] critical: 	1   ELCImagePickerSample                0x00279371 sigabrt_signal_handler + 161
2016-09-14 15:14:31.026 ELCImagePickerSample[39693:413143] critical: 	2   libsystem_platform.dylib            0x0b3ab79b _sigtramp + 43
2016-09-14 15:14:31.026 ELCImagePickerSample[39693:413143] critical: 	3   ???                                 0xffffffff 0x0 + 4294967295
2016-09-14 15:14:31.026 ELCImagePickerSample[39693:413143] critical: 	4   libsystem_c.dylib                   0x0b04b137 abort + 141
2016-09-14 15:14:31.027 ELCImagePickerSample[39693:413143] critical: 	5   libsystem_sim_kernel.dylib          0x0b10cfd7 __interposition_sim_fallback_abort_with_payload + 0
2016-09-14 15:14:31.027 ELCImagePickerSample[39693:413143] critical: 	6   libsystem_sim_kernel.dylib          0x0b10cff7 __interposition_sim_fallback_abort_with_payload + 32
2016-09-14 15:14:31.027 ELCImagePickerSample[39693:413143] critical: 	7   TCC                                 0x0ca15621 __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 236
2016-09-14 15:14:31.027 ELCImagePickerSample[39693:413143] critical: 	8   TCC                                 0x0ca15535 __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 0
2016-09-14 15:14:31.028 ELCImagePickerSample[39693:413143] critical: 	9   TCC 
                                0x0ca186b9 __tccd_send_block_invoke + 292
2016-09-14 15:14:31.028 ELCImagePickerSample[39693:413143] critical: 	10  libxpc.dylib                        0x0b25d79c _xpc_connection_reply_callout + 45
2016-09-14 15:14:31.028 ELCImagePickerSample[39693:413143] critical: 	11  libxpc.dylib                        0x0b254a97 _xpc_connection_call_reply + 32
2016-09-14 15:14:31.028 ELCImagePickerSample[39693:413143] critical: 	12  libdispatch.dylib                   0x0af6c6ef _dispatch_client_callout + 14
2016-09-14 15:14:31.029 ELCImagePickerSample[39693:413143] critical: 	13  libdispatch.dylib                   0x0af51c60 _dispatch_queue_override_invoke + 777
2016-09-14 15:14:31.029 ELCImagePickerSample[39693:413143] critical: 	14  libdispatch.dylib                   0x0af534bc _dispatch_root_queue_drain + 384
2016-09-14 15:14:31.029 ELCImagePickerSample[39693:413143] critical: 	15  libdispatch.dylib                   0x0af532d4 _dispatch_worker_thread3 + 134
2016-09-14 15:14:31.029 E
LCImagePickerSample[39693:413143] critical: 	16  libsystem_pthread.dylib             0x0b3bb25c _pthread_wqthread + 1050
2016-09-14 15:14:31.029 ELCImagePickerSample[39693:413143] critical: 	17  libsystem_pthread.dylib             0x0b3b8f56 start_wqthread + 34
2016-09-14 15:14:31.030 ELCImagePickerSample[39693:413143] critical: 
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Launch succeeded. The app  'ELCImagePickerSample' has been successfully launched on 'iPhone 6 iOS 10.0'.
The app has been terminated.
Comment 2 Larry Pauley 2016-09-14 19:21:25 UTC
It would appear it has something to do with a "PRIVACY VIOLATION".
Comment 3 Larry Pauley 2016-09-14 19:44:05 UTC
I found the solution to this problem here:

http://stackoverflow.com/questions/39384804/crash-on-xcode-8-0-gm-iphone-simulator-ios-10

If anyone else has this problem, just add the following to your XML file "Info.plist" in Visual Studio.  iOS 10 now absolutely requires you supply descriptions such as:

  <key>NSPhotoLibraryUsageDescription</key>
  <string>For selecting pictures</string>
Comment 4 David Humphreys 2016-11-01 21:55:30 UTC
I have updated the samples and the documentation to reflect the new requirements