Fixing an issue with Xamarin.Forms.GoogleMaps and latest packages

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/,3): Error: Did not find reference matching RestoreAssemblyResources AssemblyName metadata 'Google.Maps, Version=, Culture=neutral, PublicKeyToken=null'

To fix the issue,

I downloaded the source code and did the following:

  1. Update all dependencies/packages in all the projects
  2. 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 and updated to

built the project and generate the nuget package following this, 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 🙂