xamarin / GoogleApisForiOSComponents

MIT License
225 stars 156 forks source link

Google Maps nuget doesn't include GoogleMap.bundle resources to net6.0-ios project #637

Open JuroJ opened 7 months ago

JuroJ commented 7 months ago

Create sample.Net iOS application (do not use Xamarin). Add package reference to Xamarin.Google.iOS.Maps nuget. Set API key by calling Google.Maps.MapServices.ProvideApiKey Create Google.Maps.MapView and add it as view controller subview in app delegate.

Expected: Google MapView will show. Actual: App crashes complaining that GoogleMaps.bundle is missing: NSException {Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources'} There's also related warning in console: WARNING: Unable to find and load 'GoogleMaps.bundle' for Google Maps SDK for iOS. This may be a sign that you've forgotten to include a resources bundle in your 'Copy Bundle Resources' build phase. As this bundle contains important resources, you may encounter missing images, translations and other incorrect behavior.

Problem seems to be in Xamarin.Google.iOS.Maps.targets which seems to skip "_GMpsDownloadedItems" target.

The same package works fine with Xamarin.iOS app.