Got SIGABRT when executing native xamarin.ios code

I created the xamarin.ios application. The application works absolutely fine. There were no code changes and due to blue, the application now crashes when accessing the camera. I have no idea why this is happening, can anyone shed some light on this problem? I tried this error and searched for various things, including removing various packages. I recently upgraded to ios 10, but the application still worked fine after the upgrade. The error is below:

2016-10-10 21: 44: 28.925 Instructor [307: 24128] critical: native StackTrace:

2016-10-10 21: 44: 28.934 Coacher [307: 24128] critical: 0
libmonosgen-2.0.dylib 0x00363d33 mono_handle_native_sigsegv + 242 2016-10-10 21: 44: 28.934 Coacher [307: 24128] critical: 1 libsystem_platform.dylib
0x1db5326d _sigtramp + 24 2016-10-10 21: 44: 28.935 Coacher [307: 24128] critical: 2 libsystem_kernel.dylib 0x1da9fd8f + 64 2016-10-10 21: 44: 28.935 Trainer [307: 24128] critical: 3 libsystem_kernel. dylib 0x1da9fdd9 system_set_sfi_window + 0 2016-10-10 21: 44: 28.935 Coacher [307: 24128] critical: 4 TCC 0x201a8e85 + 228 2016-10-10 21: 44: 28.936 Trainer [307: 24128] critical: 5 TCC 0x201a8da1 + 0 2016-10-10 21: 44: 28.936 Coach [307: 24128] critical: 6 TCC
0x201ab57b + 276 2016-10-10 21: 44: 28.936 Coacher [307: 24128] critical: 7 libxpc.dylib 0x1db8915f + 46 2016-10-10 21: 44: 28.937 Trainer [307: 24128] critical: 8 libxpc.dylib 0x1db89101 + 26 2016-10-10 21: 44: 28.937 Trainer [307: 24128] critical: 9
libdispatch.dylib 0x1d9ae49b + 604 2016-10-10 21: 44: 28.937 Trainer [307: 24128] critical: 10 libdispatch.dylib 0x1d9afa91 + 378 2016-10-10 21: 44: 28.938 Trainer [307: 24128] critical: 11 libdispatch.dylib 0x1d9af8b7 + 106 2016-10-10 21: 44: 28.938 Trainer [307: 24128] critical: 12 libsystem_pthread.dylib 0x1db55947 _pthread_wqthread + 1168 2016-10-10 21: 44: 28.938 Trainer [307: 24128] 13 libsystem_pthread.dylib 0x1db5549c start_wqthread + 8 2016-10-10 21: 44: 28.939 Trainer [307: 24128] critical: ======================== =========================================== Got SIGABRT when executing its own code. This usually indicates a fatal error in the mono executable version or one of the built-in libraries used by your

applications.

+5
source share
1 answer

This is due to the iOS 10 update. You need to request permission for the camera now. The following blog explains how to configure these permissions now.

https://blog.xamarin.com/new-ios-10-privacy-permission-settings/

Starting with iOS 10, almost all APIs that require authorization authorization and other APIs, such as opening a camera or photo galleries, require a new pair of key values ​​to describe their use in Info.plist. This is very similar to the requirement of NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription, which must be placed in Info.plit when using the Geolocation and iBeacon APIs. Now the difference is that the application will crash when the application tries to authenticate without these keys.

+8
source

Source: https://habr.com/ru/post/1257991/


All Articles