xamarin.ios

Xamarin IOS app crashes with exception: EXC_BAD_ACCESS (SIGABRT)

拜拜、爱过 提交于 2021-01-29 10:57:32
问题 As soon as I open my app in iPhone 8 , it suddenly crashes from today. It was working fine till yesterday night. This app is downloaded from app store which was published 3 weeks ago. Previously I used to have Corrupt database error and it kept crashing, but today the log says some SIGABRT exception. Here is the log file from Analytics data from the device: {"app_name":"TCRMobile.iOS","timestamp":"2018-09-13 10:29:23.02 -0700","app_version":"1.0.0","slice_uuid":"e52d1787-ffb2-3fb1-b09d

xamarin ios app crashing with CBCentralManager

☆樱花仙子☆ 提交于 2021-01-29 10:35:44
问题 I have a Fresh application with basically no code added to it except the following Code. If I try it in a simulator it goes into update state and says unsupported. If I try to run in on a 6 generation ipad (with bluetooth turned on) the application crashes as soon as debugging exits UIButton231_TouchUpInside (and never goes into the catch). Am I missing anything? CBCentralManager _central; partial void UIButton231_TouchUpInside(UIButton sender) { try { BluetoothLEManager(); } catch (Exception

Getting SSID of the connected wifi network in Xamarin.iOS, iOS 13

本小妞迷上赌 提交于 2021-01-29 08:44:43
问题 After passing from iOS 12 to 13 I am no more able to get the SSID of the connected wifi network. I tried the solution for iOS 13 proposed in this question but with no result. My previous successful code for iOS 12 (moreover 'CaptiveNetwork' is deprecated now): if (CaptiveNetwork.TryGetSupportedInterfaces(out string[] supportedInterfaces) == StatusCode.OK) { foreach (var item in supportedInterfaces) { if (CaptiveNetwork.TryCopyCurrentNetworkInfo(item, out NSDictionary info) == StatusCode.OK) {

UITextContentType.OneTimeCode in Xamarin iOS

霸气de小男生 提交于 2021-01-29 08:19:41
问题 i'm trying to implement the OTC into my app. I'm doing the next: _txtField = new UITextField() { UserInteractionEnabled = true, TextContentType = UITextContentType.OneTimeCode }; _txtFieldDelegate = new UITextFieldDelegate(); _txtField.Delegate = _txtFieldDelegate; I got the SMS, but i have nothing to fill the TextField, what more i need to get this works? 回答1: Firstly, OneTimeCode is available after iOS 12.0.So,add the following code if (UIDevice.CurrentDevice.CheckSystemVersion(12, 0)) {

how to convert image in a byte[] array to Xamarin.IOS UIImage control

十年热恋 提交于 2021-01-29 08:08:02
问题 My Xamarin.IOS app gets build error: "cannot convert type byte[] to UIKit.UIImage" My code: ImageView_camera.Image = Camera_Socket_Client.packet_frame_state.buffer; The buffer contains a frame sent by socket from a UWP Windows app, which got the frame from a USB camera from a Logitech HD 1080p webcam. I want to show live image from webcam at IPAD. 回答1: UIImage.LoadFromData(NSData.FromArray(myByteArray)); 来源: https://stackoverflow.com/questions/53890842/how-to-convert-image-in-a-byte-array-to

EXC_BAD_ACCESS In Test Flight

偶尔善良 提交于 2021-01-29 07:20:27
问题 My Xamarin application runs flawlessly when ran on a simulator, or on Android. The problem is arisen when I deploy it to TestFlight and attempt to run it on iOS. It's giving a very odd behavior which I've been trying to wrap my head around for some time. About 70% of the time, the app crashes immediately on launch. Once the app crashes, you can re-launch the app and it will have no issue. Then if you restart the device, or wait hours (I'm assuming because whatever iOS's garbage collection is

Xamarin Forms - iOS CLLocationCoordinate2D is not initializing correctly

百般思念 提交于 2021-01-29 06:56:50
问题 I'm trying to initialize a CLLocationCoordinate2D class in a iOS custom render that i have, and in the constructor i can pass a Latitude and Longitude (double, double) as parameters to initialize it, but whatever the values i give, the class always comes with the default double value for the Latitude and Longitude. (0,0) , here is how i tried to initialize it at first: CLLocationCoordinate2D iosCoords = new CLLocationCoordinate2D(38.00000000000000, -9.00000000000000); //This inits has (0,0) /

Xamarin Forms - iOS CLLocationCoordinate2D is not initializing correctly

时光怂恿深爱的人放手 提交于 2021-01-29 06:53:42
问题 I'm trying to initialize a CLLocationCoordinate2D class in a iOS custom render that i have, and in the constructor i can pass a Latitude and Longitude (double, double) as parameters to initialize it, but whatever the values i give, the class always comes with the default double value for the Latitude and Longitude. (0,0) , here is how i tried to initialize it at first: CLLocationCoordinate2D iosCoords = new CLLocationCoordinate2D(38.00000000000000, -9.00000000000000); //This inits has (0,0) /

Xamarin Plugin SDK style IOS project UIKit.UIImage method returns a nill and doesn't find file

只愿长相守 提交于 2021-01-29 05:56:44
问题 Converting xamarin plugin to SDK style plugin (i.e. ). I'm receiving nil. System.Exception: 'Could not initialize an instance of the type 'UIKit.UIImage': the native 'initWithContentsOfFile:' method returned nil. var favoriteImage = new UIImage("color-picker-favorite@2x.png") I've moved this file into Resources folder (didn't work), and I've used the following to link it to Resources folder in my project. <BundleResource Include="..\PopColorPicker.iOS.Shared\Resources\color-picker-favorite