Recently I decided to update one of my projects to upgrade all the nuget packages to latest version. Surprisely, everything went just fine (even on Android). The only issue was with Xamarin.iOS.
I was unable to build the iOS project due to some error reported by Xamarin.Forms.GoogleMaps plugin,
/Users/theuser/.nuget/packages/xamarin.build.download/0.7.1/buildTransitive/Xamarin.Build.Download.targets(3,3): Error: Did not find reference matching RestoreAssemblyResources AssemblyName metadata 'Google.Maps, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null'
To fix the issue,
I downloaded the source code and did the following:
- Update all dependencies/packages in all the projects
- I still get same error, but went deeper on the solution and found that it was referencing the wrong Xamarin.Google.iOS.Maps package, was 126.96.36.199 and updated to 188.8.131.52
built the project and generate the nuget package following this https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package-dotnet-cli, manually added the repository, remove all nuget packages and restore and was able to make it work.
After that was able to build, had to add the local repository in the meanwhile, but is working 🙂