amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 346 forks source link

iOS build error with v3.3.0 #665

Closed stesvis closed 4 years ago

stesvis commented 4 years ago

VERSIONS

PLATFORMS

ACTUAL BEHAVIOR

Build error: /Users/stesvis/Documents/projects/levitica/livedispatch/LiveDispatch.Mobile/LiveDispatch.Mobile.iOS/error MT5209: Error: warning: directory not found for option '-FGMps-3.5.0/Maps/Frameworks' (LiveDispatch.Mobile.iOS) Native linking

EXPECTED BEHAVIOR

It should build with no errors

HOW TO REPRODUCE

  1. Install the latest version
  2. Build the iOS project
galadril commented 4 years ago

i have the same issue.

amay077 commented 4 years ago

Is this link helps you?

I think it is related with Xcode project setting.

erdugen commented 4 years ago

I have the same problem. I can't compile for ios when I upgrade to 3.3.0. No problem in 3.2.1. image

amay077 commented 4 years ago

I can not reproduce. Probably it is not related Xamarin.Forms.GoogleMaps also not related Xamarin.Forms .

I think it is Xamarin.iOS with GoogleApisForiOSComponents issue.

Please try using Xamarin.Google.iOS.Maps 3.5.0 with Xamarin.iOS(NOT Xamarin.Forms) and if you can see same error, report to Xamarin team.

hajuuk commented 4 years ago

I submitted this issue to Xamarin repo and finally solved by explicit add a NuGet package Xamarin.Build.Download.

https://github.com/xamarin/GoogleApisForiOSComponents/issues/324#issuecomment-545725609

galadril commented 4 years ago

Thanks @hajuuk That solves it indeed

amay077 commented 4 years ago

@hajuuk, you did great work! 👍

stesvis commented 4 years ago

Awesome! Side note, you have to target at least iOS 10 otherwise you still get build errors.

stesvis commented 4 years ago

@hajuuk do we need to install it only on the iOS project or all three?

hajuuk commented 4 years ago

@hajuuk do we need to install it only on the iOS project or all three?

I tested, install it for the iOS project is sufficient.

erdugen commented 4 years ago

I added the Xamarin.Build.Download nuget package to my project and then upgraded it to v.3.3.0. But the problem did not disappear. Anybody have any ideas?

image

stesvis commented 4 years ago

@erdugen i had to target minimum iOS 10.0

erdugen commented 4 years ago

@erdugen i had to target minimum iOS 10.0

@stesvis Thank you. Problem solved in this way.