-
Notifications
You must be signed in to change notification settings - Fork 695
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 #1535
Comments
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 Mapbox Maps SDK for iOS 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.) This error affects any application that uses both RNMBGL and another iOS framework that depends on the iOS map SDK. |
@1ec5 is there a quick fix for this on this lib's side? Ex: rename the |
We also encountered the naming conflict when trying to use navigation. @kristfal renaming the framework (and where it is referenced) in this lib should resolve the issue |
This issue is related to #1533 |
@mysport12 if you have a workable approach, can you open a PR against #1533 with your additions? With these changes, I agree it makes sense to push towards a pod based installation of this repo. |
@ClementPF hi, have you already solved the problem, could you please tell how you solve it, I am still struggling with it. |
I have not solved the problem. |
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: