-
Notifications
You must be signed in to change notification settings - Fork 505
[Bug] Azure Devops release pipeline 1.6 RC1 #1589
Comments
I am getting this error when running on Azure DevOps. MTOUCH : error MT2101: 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'. |
I receive the same error as @dhindrik when I build my application archive with the latest Xamarin Essentials 1.6 release candidate (rc1). The only references I can find to this code are the following: This seems to be related to methods that may / may not exist in different iOS versions. I hope this helps someone with more knowledge of Xamarin Essentials debug/fix the issue. |
I have the same issue with Xamarin Essentials 1.6.0 stable. When using 1.6.0-pre2, it doesn't occur. |
Well, I've had the same problem. The problem is that the default azure devops image uses xamarin.iOS version 13.x instead of 14.x (even if you use select-xamarin-sdk.sh 6_12_0).
@mattleibow using boots slows down the builds by more than a minute. Do you think you could open an issue for the latest version of select-xamarin-sdk.sh to use the default version 14 of xamarin.iOs? Thanks |
Yes, it is recommended to build and compile against the latest iOS SDK. Although @mattleibow we should look into this to see if we can backport it somehow like we did with web authenticator stuff..... |
This will allow the code to build in older VS versions Fixes #1589
This should be fixed in #1606 |
Lovely! This code always boggles my mind. |
This will allow the code to build in older VS versions Fixes #1589
@mattleibow hi there just for clarity can we upgrade to the latest xamarin essentials and will work with azure devops pipeline or do we have to wait for 1.6.1 to be released? |
I just pushed out a preview 1 of v1.6.1 that now has this fix: https://www.nuget.org/packages/Xamarin.Essentials/1.6.1-preview1 If you can' switch to the preview, then you will have to install the latest version of Xamarin.iOS on the agents. |
@mattleibow thank you for your prompt response, really appreciated |
@mattleibow I just migrated to RC1 and I am still having the issue
|
@ekjuanrejon I think you are having another issue... There is a reference to I had a quick look and it appears to be some binding or third party library. Did you update any other packages? This appears to be the Android linker not able to find some type that is referenced in assembly: 'jose-jwt.dll' ---> Since I think this might be a bug with Android, could you open an issue here? https://github.com/xamarin/xamarin-android |
Thank you. I tried your solution and thing and it worked for me. |
I am still having this issue with the 1.6.1 preview version. Where in the Azure DevOps pipeline should the boots script be inserted? |
Also having the same issue. I got the 1.6.1 preview version including .NET 5.0 Dotnet info:
Error log:
Adding the script above also doesn't help. When I tried a custom bash script to build the solution as mentioned above too doesn't work either. **Copied build script: **
Edit1: Temporarily downgraded to Essentials to 1.5.3.1 |
Same for me, donwgrading to 1.5.3.1 all worked fine but not with versions greater than that. |
Hi! if you use mono version 6_12_4 you can resolve your problem. Usage: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_12_4 |
I think I found out why this was still happening. There is another place that was using the new property. I am building a PR as we type and will push out ASAP. |
I´ve changed and worked correctly with the latest preview package, Thanks a lot |
Description
Update project to use essentials 1.6 rc1. Run build through azure devops and getting an error. The project builds locally and works when using the debugger but fails when attempting to create a release
Steps to Reproduce
##[error]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Legacy.targets(366,5): Error XALNK7000: Mono.Linker.MarkException: Error processing method: 'System.Byte[] Jose.ConcatKDF::DeriveKey(System.Security.Cryptography.CngKey,System.Security.Cryptography.CngKey,System.Int32,System.Byte[],System.Byte[],System.Byte[],System.Byte[])' in assembly: 'jose-jwt.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Security.Cryptography.ECDiffieHellmanCng
at Mono.Linker.Steps.MarkStep.HandleUnresolvedType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
at Xamarin.Android.Tasks.LinkAssemblies.RunTask()
at Xamarin.Android.Tasks.AndroidTask.Execute()
The text was updated successfully, but these errors were encountered: