maplibre / maplibre-react-native

A MapLibre react native module for creating custom maps
Other
266 stars 55 forks source link

Error resolving dependencies when upgrading to v10 #510

Open wmonecke-gen opened 3 days ago

wmonecke-gen commented 3 days ago

While trying to upgrade to v10 I am encountering issues in xCode.

Image

Failed to resolve dependencies Dependencies could not be resolved because root depends on 'maplibre-gl-native-distribution' 6.5.4..<7.0.0 and root depends on 'maplibre-gl-native-distribution' 5.13.0.

I followed the installation steps here: https://github.com/maplibre/maplibre-react-native/blob/main/ios/install.md#ios-installation

Changed the post_install to $RCTMLN.post_install(installer)

and even added the following to the Podfile:

$RCTMLN_SPM_Spec = {
  url: "https://github.com/maplibre/maplibre-gl-native-distribution",
  requirement: {
    kind: "upToNextMajorVersion",
    minimumVersion: "6.5.4"
  },
  product_name: "MapLibre"
}

Any ideas what could be going on?

Seems like something from the previous version is still hanging around somehow?

Environment

wmonecke-gen commented 3 days ago

I fixed it by following these steps and setting the exact version to the one in the error.

https://i.sstatic.net/nZ4vf.jpg

Still a bit weird it was there after removing and reinstalling.

wmonecke-gen commented 3 days ago

I am now getting the following error though:

Image

This is my Package.resolved

{
  "originHash" : "93004ae322b4ca0d0df41da4297c41af20f08ba47df8cd8af368bad1187ee8c2",
  "pins" : [
    {
      "identity" : "geos",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/GEOSwift/geos.git",
      "state" : {
        "revision" : "f510e634c822116fca615064d889300dba40d761",
        "version" : "8.1.0"
      }
    },
    {
      "identity" : "geoswift",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/GEOSwift/GEOSwift",
      "state" : {
        "revision" : "939c9e7f19a084a425239dd8e2c744beb78da7d6",
        "version" : "10.3.0"
      }
    },
    {
      "identity" : "maplibre-gl-native-distribution",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/maplibre/maplibre-gl-native-distribution",
      "state" : {
        "revision" : "abe762f1e19e03a4c6943d2aad92c219da384b29",
        "version" : "6.5.4"
      }
    }
  ],
  "version" : 3
}

And yeah Mapbox is not being included, but its still being requested somehow

In xCode Link Binaries with Libraries I do see Mapbox, should that even be there?

Image

If I remove Mapbox from the Linked Binaries I get the following error:

Image

wmonecke-gen commented 3 days ago

@KiwiKilian do you have any ideas on this one?

KiwiKilian commented 3 days ago

Looks quite a few individual problems with your setup. Mapbox probably shouldn't be required anymore.