My problem is pretty simple and stackoverflow has many 'similar' problems but couldn't find the exact one. Maybe too easy to solve? Anyway, here is the problem:
I use X in podfile like this:
pod 'X', '3.3.4'
and when I added the follwing,
pod 'MapboxNavigation', '~> 0.17'
I got this error from pod:
[!] The ‘Pods-WayStride’ target has frameworks with conflicting names: mapbox.framework.
And yes, the X
that I've been using uses 'mapbox.framework', probably part of it, already, as I can see it under 'Pods > Pods > Steerpath-Map-SDK > Frameworks > Mapbox.framework'
in Project navigator of Xcode.
Because of this error, when I tried to compile using Xcode (ver 9.4, with swift), I get this error on the line of 'import MapboxDirections':
No such module 'MapboxDirections'
What can I do?
My Podfile is very simple:
# Uncomment the next line to define a global platform for your projectplatform :ios, '9.3'# by SPsource 'https://github.com/CocoaPods/Specs.git'source 'https://bitbucket.org/nimbledevices/steerpath-sdk-ios-podspec.git'source 'https://bitbucket.org/nimbledevices/steerpath-mapbox-ios-podspec.git'# Comment the next line if you're not using Swift and don't want to use dynamic frameworksuse_frameworks!target 'WayStride' do # platform :ios, '8.0' pod 'Steerpath', '3.3.4' pod 'SwiftyJSON' pod 'Mixpanel-swift' pod 'Toast-Swift', '~> 3.0.1' pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'MapboxNavigation', '~> 0.17'# target 'WayStrideTests' do# inherit! :search_paths# # Pods for testing# end## target 'WayStrideUITests' do# inherit! :search_paths# # Pods for testing# endend