I am trying to release my application so I can distribute, however when I try to build my application I get this error message.
Can't resolve the reference 'CoreLocation.CLAuthorizationStatus CoreLocation.CLLocationManager::get_AuthorizationStatus()', referenced from the method 'System.Void Xamarin.Essentials.Permissions/LocationWhenInUse/ManagerDelegate::DidChangeAuthorization(CoreLocation.CLLocationManager)' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. (MT2101)
Everything works fine when I am in debug mode. I can test on my phone and the emulator but when I think I am good to release I get hit with the error above. I read in the docs, looks like this happens when someone is trying to request access to the location information. However the only thing I can think I am requesting is the current UTC time and dateTime.Now for local time which I don't think has anything to do with the location of the device/user.
That is the only major thing I have changed from my last release, that and I updated some nugget packages. I had issues when I tried to release last time and someone on here was able to help me figure it out, it was a nugget package creating a conflict with another one. I want to think it is my Xamarin.Essentials nugget but I'm not sure. Has anyone else seen this? I saw some people requested help from Xamarin forums but the solution they explained I did not find helpful.
they said to do the following.
Updatring
pool: vmImage: 'macOS-latest'
and removing
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_8_0
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…