Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was 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

Description

@JuroJ

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions