Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

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

Open
JuroJ opened this issue Nov 20, 2023 · 0 comments

Comments

@JuroJ
Copy link

JuroJ commented Nov 20, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant