06 Feb 2023 10:41 PM - last edited on 07 Feb 2023 01:37 AM by Ana_Kuzmenchuk
I am getting exception in calling location api:
var request = new GeolocationRequest(GeolocationAccuracy.Medium, new TimeSpan(0, 0, 3));
var Loc = await Geolocation.GetLocationAsync(request);
bold line is getting exception
Cannot get the method descriptor for the selector 'locationManager_DTX:didUpdateLocations:' on the type 'Xamarin.Essentials.SingleLocationListener', because the selector does not correspond to a method
Solved! Go to Solution.
I got answer from support team. We need to configure below variable in config file
"DTXInstrumentGPSLocation" : false
This just removes the symptom, so it is only a partial solution for the case where no location capturing is desired.
If accurate location capturing is desired this would need more investigation.
our investigations showed that this seems to be a Problem with the Xamarin Simulator on ARM based Macs - the simulator still runs as x86 under rosetta and handling our instrumentation somehow causes troubles there. This does not happen on a device.