-
Notifications
You must be signed in to change notification settings - Fork 314
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
Can't use react-native-mapbox-gl and MapboxNavigation with CocoaPods #2016
Comments
RNMBGL v6.x depends on a very old version of the iOS map SDK. v7.x will likely be based on a compatible version. It’s being developed in nitaliano/react-native-mapbox-gl#1377; see nitaliano/react-native-mapbox-gl#1238 (comment) for the latest progress update. I’m closing this issue because there’s nothing the navigation SDK project can do about a downstream project’s dependency management. |
Additionally, the incompatibility reported by CocoaPods is caused by the fact that RNMBGL is distributed as Mapbox.framework, which happens to be the same bundle name that the iOS map SDK uses. CocoaPods requires each framework embedded within an iOS application target to have a distinct name. (This is a best practice for iOS applications in general.) nitaliano/react-native-mapbox-gl#1535 is sufficient for tracking this issue. |
I still didn't get how to solve the problem, even I checked all the links above. |
@1ec5 is there any update to this upcoming update? Currently trying to bridge together mapbox-react-native + navigation into a single application. Any leads would be appreciated. |
I'm searching too how to implement mapbox navigation sdk into react-native, if someone has some advice |
You should check this repository out |
@clarodanesh does this work for with mapbox + navigation? seems like the documentation is non-existant can you state how the package/properties are used? |
@DavidKHahn Yes it uses the mapbox navigation sdk. I havent played around with it much yet, I have only followed the bare installation steps and have got the navigation working on an Android phone. |
@clarodanesh i checked out your link and it is working on my device after cloning it but how do i use it on a different project? |
I’m trying to do exactly the same, any advice on how to implement it would be greatly appreciated. |
Hi! Do you have any progress? I have the same question now( |
nope no progress so far, I ended up creating a custom navigation but its not that brilliant since the map doesn't move according to the path (road) , if the road is a curve, the pin still moves straight, you have to rotate the map manually |
@iutin @deriksadiki hi guys, Im in the same situation, havent implemented this in another project, only used the cloned repository. |
@clarodanesh @deriksadiki or anyone else, do you have a link to https://github.com/SRHealth/react-native-mapbox-navigation repository? it seems to be missing now... |
i do not have it, maybe he deleted the repo |
Hi, no unfortunately, it seems to have been deleted now. I dont have a downloaded or cloned copy either. |
Mapbox Navigation SDK version: 0.29.1
react-native-mapbox-gl 6.1.3
Hello, I'm having an issue trying to use the Mapbox iOS Navigation along with the react-native-mapbox-gl module with CocoaPods.
Trying to use them together throws
[!] The 'Pods-abcd' target has frameworks with conflicting names: mapbox.framework.
Steps to reproduce:
react-native init abcd
cd abcd && npm install @mapbox/react-native-mapbox-gl --save
cd ios && touch Podfile
pod install
[!] The 'Pods-abcd' target has frameworks with conflicting names: mapbox.framework.
preventing the creation of the .xcworkspaceExpected behavior:
The two SDKs should be able to be used together.
Thanks !
The text was updated successfully, but these errors were encountered: