skip to Main Content

I am playing with a navigation app in swift to learn mapbox. I ran into an issue while adding a Textbox which is supposed to use the MapboxSearchUI pod, because I can’t install it. My Terminal gives me some errors, I am thinking the versions could be incompatible. Somehow, the pod install lines from mapbox itself don’t work together. The Pods I used to use and which worked fine:

  pod 'Mapbox-iOS-SDK', '~> 6.3.0'
  pod 'MapboxNavigation', '~> 1.4.2'

The Pod I am trying to add which breaks my pod install:

  pod 'MapboxSearchUI' , ">= 1.0.0-beta.9", "< 2.0"

I copied it straight from their website. Terminal gives me this:

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "MapboxMobileEvents":
  In snapshot (Podfile.lock):
    MapboxMobileEvents (= 0.10.8, ~> 0.10.2, ~> 0.10.4)
  In Podfile:
    MapboxSearchUI (< 2.0, >= 1.0.0-beta.9) was resolved to 1.0.0-beta.9, which depends on
      MapboxSearch (< 2.0, >= 1.0.0-beta.9) was resolved to 1.0.0-beta.9, which depends on
        MapboxMobileEvents (~> 1.0.2)
Specs satisfying the `MapboxMobileEvents (= 0.10.8, ~> 0.10.2, ~> 0.10.4), MapboxMobileEvents (~> 1.0.2)` dependency were found, but they required a higher minimum deployment target.

Does anyone know what causes the issue and maybe what version I could use? I usually don’t use the terminal therefore can’t really use trial and error. Removing the version behind the Maobox Search didn’t work though.

Thanks!

2

Answers


  1. Chosen as BEST ANSWER

    So for everyone having the same Issue, here is how I ended up fixing the installation 5 days later, having still not gotten any answer from the support...

    Even though on many Installation guides (From mapbox themselves) the pod line is always stated as

    pod 'MapboxSearchUI', ">= 1.0.0-beta.9", "<2.0"
    

    this leads to version issues, because of the beta.9 part.

    Solution:

    pod 'MapboxSearchUI', ">= 1.0.0-beta", "<2.0
    

    This works as it should. This has taken me significantly longer than I'd like to admit. Hope this helped someone.


  2. I also ran into the same issue and removing the explicitly declared Pod versions from the Podfile resolved the issue.

    In your Podfile, remove the versions in front of the pod name.

    pod 'Mapbox-iOS-SDK', '~> 6.3.0'
    pod 'MapboxNavigation', '~> 1.4.2'
    

    i.e. It should be updated as follows.

    pod 'Mapbox-iOS-SDK'
    pod 'MapboxNavigation'
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search