Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: v3.0 Does not support cocoapods? #4646

Open
rgmyyw opened this issue May 14, 2024 · 9 comments
Open

[Bug]: v3.0 Does not support cocoapods? #4646

rgmyyw opened this issue May 14, 2024 · 9 comments
Labels
feature New feature request.

Comments

@rgmyyw
Copy link

rgmyyw commented May 14, 2024

Mapbox Navigation SDK version

v3.0.2

Steps to reproduce

  pod 'MapboxSearch', "2.0.2"
  pod 'MapboxSearchUI', "2.0.2"
  pod 'MapboxMaps'
  pod 'MapboxStatic.swift'
  
  pod 'MapboxCoreNavigation'
  pod 'MapboxNavigation'



pod install 


[!] CocoaPods could not find compatible versions for pod "MapboxCommon":
  In Podfile:
    MapboxMaps was resolved to 10.0.1, which depends on
      MapboxCommon (= 20.0.0)

    MapboxSearch (= 2.0.2) was resolved to 2.0.2, which depends on
      MapboxCommon (~> 24.4.0-beta.2)

CocoaPods could not find compatible versions for pod "MapboxCoreNavigation":
  In Podfile:
    MapboxCoreNavigation

    MapboxNavigation was resolved to 1.0.0, which depends on
      MapboxCoreNavigation (= 1.0.0)

CocoaPods could not find compatible versions for pod "MapboxMaps":
  In Podfile:
    MapboxMaps

There are only pre-release versions available satisfying the following requirements:

	'MapboxMaps', '>= 0'

You should explicitly specify the version in order to install a pre-release version
CocoaPods could not find compatible versions for pod "Polyline":
  In Podfile:
    MapboxCoreNavigation was resolved to 1.3.0, which depends on
      MapboxDirections (~> 1.2.0) was resolved to 1.2.0, which depends on
        Polyline (~> 5.0)

    MapboxStatic.swift was resolved to 0.11.0, which depends on
      Polyline (~> 4.2)

Expected behavior

Installation successful

Actual behavior

error

Is this a one-time issue or a repeatable issue?

repeatable

@rgmyyw rgmyyw added the bug Something isn’t working label May 14, 2024
@rgmyyw
Copy link
Author

rgmyyw commented May 14, 2024

Can you provide the latest version? I expect it to be the latest, not concerned about stability. MapboxSearch MapboxCommon MapboxMaps MapboxCoreNavigation, Because I have used it all

@volkdmitri
Copy link
Contributor

Thank you for bringing this issue to our attention! CocoaPods support is indeed on our roadmap for Mapbox Navigation version 3. Unfortunately, we do not have a specific timeline for its implementation at this moment. We will keep you updated with any new information as soon as it becomes available.

@YoussefHenna
Copy link

I'm trying to create a react native/expo wrapper for the navigation SDK and the lack of cocoapods is a real pain point in the process. Support for it soon will be greatly appreciated!

@fbeccaceci
Copy link

I'm trying to create a react native/expo wrapper for the navigation SDK and the lack of cocoapods is a real pain point in the process. Support for it soon will be greatly appreciated!

I’m trying to integrate with expo as well, have you found any workaround to make it work?

@YoussefHenna
Copy link

I'm trying to create a react native/expo wrapper for the navigation SDK and the lack of cocoapods is a real pain point in the process. Support for it soon will be greatly appreciated!

I’m trying to integrate with expo as well, have you found any workaround to make it work?

Yeah, but it's an ugly process. See the bottom of the readme here https://github.com/YoussefHenna/expo-mapbox-navigation. But also, you should be able to use the package as is. Although I've yet to add a bunch of features, and there's a know bug with the latest version on Expo 50.

@fbeccaceci
Copy link

Also trying to integrate the .xcframeworks with cocoapod as vendored frameworks throws this error in xcode
Failed to build module 'MapboxNavigationCore'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK.

@jmysliv
Copy link

jmysliv commented Jul 30, 2024

I was also trying to integrate with Expo. I ended up using different SDK versions per platform:

  • v3 for Android (Maps v11 )
  • v2 for iOS (Maps v10), as v2 supports cocoapods.

It works, however, I would like to align those versions as soon as Mapbox adds support for cocoapods in v3.

@kried kried added feature New feature request. and removed bug Something isn’t working labels Aug 1, 2024
@fbeccaceci
Copy link

I was also trying to integrate with Expo. I ended up using different SDK versions per platform:

  • v3 for Android (Maps v11 )
  • v2 for iOS (Maps v10), as v2 supports cocoapods.

It works, however, I would like to align those versions as soon as Mapbox adds support for cocoapods in v3.

I got it working with expo and v3.3.0, you gotta build the frameworks from source
There is some info and some replies of mine explaining the process here #4703

@YoussefHenna
Copy link

@kried Any updates on when we can expect this? It's blocking proper react-native/expo integrations and development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request.
Projects
None yet
Development

No branches or pull requests

6 participants