07 Feb 2023 06:41 AM - last edited on 07 Feb 2023 09: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.
07 Feb 2023 11:21 AM
I got answer from support team. We need to configure below variable in config file
"DTXInstrumentGPSLocation" : false
Thanks
07 Feb 2023 02:31 PM
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.
16 Feb 2023 07:14 AM
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.