You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to install MapboxNavigation in my React Native and iOS project using Cocoapods. My Podfile looks something like this:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
EXPO_CPP_HEADER_DIR = 'ExpoKit'
target 'pq-app-v2' do
pod 'Mapbox-iOS-SDK', '~> 4.5',
:modular_headers => true
pod 'MapboxNavigation', '~> 0.22.0',
:modular_headers => true
pod 'React',
:path => "../node_modules/react-native",
:inhibit_warnings => true,
:subspecs => [
"Core",
"ART",
"RCTActionSheet",
"RCTAnimation",
"RCTCameraRoll",
"RCTGeolocation",
"RCTImage",
"RCTNetwork",
"RCTText",
"RCTVibration",
"RCTWebSocket",
"DevSupport",
"CxxBridge"
]
// ... (some other pods)
end
But when I run pod repo update && pod install in the console I get the following error:
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod `MapboxCoreNavigation` depends upon `MapboxMobileEvents`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
The Swift pod `MapboxNavigation` depends upon `MapboxMobileEvents`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
I do not understand this error, because I specified :modular_headers => true for the Mapbox dependencies in the Podfile (see above). How can I solve this error?
The text was updated successfully, but these errors were encountered:
The line above is in order to get the fix in mapbox/mapbox-events-ios#85, which has already been merged and released. So you should only have to pod update in order to verify whether the fix works. Please open a new issue if the error persists.
I am trying to install
MapboxNavigation
in my React Native and iOS project using Cocoapods. MyPodfile
looks something like this:But when I run
pod repo update && pod install
in the console I get the following error:I do not understand this error, because I specified
:modular_headers => true
for the Mapbox dependencies in the Podfile (see above). How can I solve this error?The text was updated successfully, but these errors were encountered: