Xamarin.forms.googlemaps: framework not found GoogleMaps

Created on 3 Nov 2019  Â·  9Comments  Â·  Source: amay077/Xamarin.Forms.GoogleMaps

framework not found GoogleMaps Native linking this error appear in my iOS project
using

  • GoogleMaps Nuget Version 3.3.0
  • visual studio Mac Version 8.3.6
  • macOs Mojave Version 10.14.6 (18G103)

    • Xcode version Version 11.2 (11B52)

Most helpful comment

Add nuget package Xamarin.Build.Download and it will work with version 3.3

All 9 comments

same, posting detailed error:
error MT5209 : Native linking error : warning: directory not found for option '-FGMps-3.5.0/Maps/Frameworks' [/Users/runner/runners/2.160.0/work/1/s/***.iOS/***.iOS.csproj] error MT5209 : Native linking error : warning: directory not found for option '-FGMps-3.5.0/Maps/Frameworks' [/Users/runner/runners/2.160.0/work/1/s/***.iOS/***.iOS.csproj] error MT5209 : Native linking error : warning: directory not found for option '-FGMps-3.5.0/Base/Frameworks' [/Users/runner/runners/2.160.0/work/1/s/***.iOS/***.iOS.csproj] error MT5209 : Native linking error : framework not found GoogleMaps [/Users/runner/runners/2.160.0/work/1/s/***.iOS/***.iOS.csproj] MTOUCH : error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -ObjC -ObjC -lc++ -lz [/Users/runner/runners/2.160.0/work/1/s/***.iOS/***.iOS.csproj] MTOUCH : error MT5202: Native linking failed. Please review the build log. [/Users/runner/runners/2.160.0/work/1/s/***.iOS/***.iOS.csproj] clang : error : linker command failed with exit code 1 (use -v to see invocation) [/Users/runner/runners/2.160.0/work/1/s/***.iOS/***.iOS.csproj]
`

Solve the error by using GoogleMaps version 3.2.0

On Tue, Nov 5, 2019, 12:27 PM zank-stlab notifications@github.com wrote:

same, posting detailed error:
error MT5209 : Native linking error : warning: directory not found for
option '-FGMps-3.5.0/Maps/Frameworks'
[/Users/runner/runners/2.160.0/work/1/s/.iOS/.iOS.csproj] error
MT5209 : Native linking error : warning: directory not found for option
'-FGMps-3.5.0/Maps/Frameworks'
[/Users/runner/runners/2.160.0/work/1/s/.iOS/.iOS.csproj] error
MT5209 : Native linking error : warning: directory not found for option
'-FGMps-3.5.0/Base/Frameworks'
[/Users/runner/runners/2.160.0/work/1/s/.iOS/.iOS.csproj] error
MT5209 : Native linking error : framework not found GoogleMaps
[/Users/runner/runners/2.160.0/work/1/s/.iOS/.iOS.csproj] MTOUCH :
error MT5201: Native linking failed. Please review the build log and the
user flags provided to gcc: -ObjC -ObjC -ObjC -lc++ -lz
[/Users/runner/runners/2.160.0/work/1/s/.iOS/.iOS.csproj] MTOUCH :
error MT5202: Native linking failed. Please review the build log.
[/Users/runner/runners/2.160.0/work/1/s/.iOS/.iOS.csproj] clang :
error : linker command failed with exit code 1 (use -v to see invocation)
[/Users/runner/runners/2.160.0/work/1/s/.iOS/.iOS.csproj]
`

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/amay077/Xamarin.Forms.GoogleMaps/issues/673?email_source=notifications&email_token=AHHI4NLKBMKZVK5UO27YLHLQSFDCNA5CNFSM4JIK7OTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDCLK3I#issuecomment-549762413,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHHI4NJQPY27U2WNM5WMD5DQSFDCNANCNFSM4JIK7OTA
.

ok thanks

Add nuget package Xamarin.Build.Download and it will work with version 3.3

After I tried every solution I can imagine, I tried to use Xamarin.Build.Download version 0.4.11 instead of the recent one. I will try to reproduce the issue in a clean project and confirm if We need to add this package as a dependency or anyone has an idea if this is happening to anyone (that does not have Xamarin.Build.Download)?

Add nuget package Xamarin.Build.Download and it will work with version 3.3

That and setting the Deployment Target to 9.0 (in Info.plist) made it work for me.

I believe we are talking about the error below:

/Users/zzz/.nuget/packages/xamarin.build.download/0.4.11/build/Xamarin.Build.Download.targets(3,3): Error: Did not find reference matching RestoreAssemblyResources AssemblyName metadata 'Google.Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' (MapsPOC.iOS)

I was able to get past that specific error for a while by installing Xamarin.Build.Download, and deleting bin and obj folders. But then, as soon as i made changes to the project and tried to rebuild again, got the error back.

Worst thing is...after I reverted to Xamarin.Forms.GoogleMaps 3.2.1 now the error won't go away...Tried deleting bin and obj folders, cleaning solution, rebuilding, restoring nuget packages, cleaning nuget cache...

It's nightmarish.

This error arppeared for me after i upgraded the Plugin.Firebase.Notification from 2.3.6 to 3.1.6 (really strange)
But adding the Xamarin.Build.Download 0.4.11 worked for me!
Thanks

Same thing here

  • Xamarin Forms 4.8.0.1364
  • Xamarin.Forms.GoogleMaps 3.3.0
  • MinimumOSVersion 9.0

Fixed the problem with Xamarin.Build.Download 0.10.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ViktorBylbas picture ViktorBylbas  Â·  4Comments

dreamsystems picture dreamsystems  Â·  5Comments

Gavrielo picture Gavrielo  Â·  3Comments

soile1991 picture soile1991  Â·  5Comments

prajithmp picture prajithmp  Â·  6Comments