Xamarin.Forms.GoogleMaps icon indicating copy to clipboard operation
Xamarin.Forms.GoogleMaps copied to clipboard

framework not found GoogleMaps

Open AhmedAdelGadElkareeem opened this issue 5 years ago • 9 comments

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)

AhmedAdelGadElkareeem avatar Nov 03 '19 12:11 AhmedAdelGadElkareeem

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] `

zank-stlab avatar Nov 05 '19 10:11 zank-stlab

Solve the error by using GoogleMaps version 3.2.0

On Tue, Nov 5, 2019, 12:27 PM zank-stlab [email protected] 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 .

AhmedAdelGadElkareeem avatar Nov 05 '19 10:11 AhmedAdelGadElkareeem

ok thanks

zank-stlab avatar Nov 05 '19 10:11 zank-stlab

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

AlainCuypers avatar Nov 14 '19 08:11 AlainCuypers

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)?

codercampos avatar Dec 06 '19 15:12 codercampos

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.

miroserge avatar Dec 09 '19 19:12 miroserge

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.

deepblueday avatar Dec 12 '19 14:12 deepblueday

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

REDECODE avatar Feb 06 '20 14:02 REDECODE

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

davjvo avatar Sep 10 '20 10:09 davjvo