We have a React Native app that uses Mapbox maps v10. We need to have an integration with react-native-mapbox-navigation as well. Neither iOS, nor Android are compiling, here's an error screenshot and Podfile:
Navigation: v2.1.2
Maps: v10.1.1
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
install! 'cocoapods', :disable_input_output_paths => true
IOS_VERSION = '13.0'
platform :ios, IOS_VERSION
plugin 'cocoapods-user-defined-build-types'
enable_user_defined_build_types!
$RNMapboxMapsImpl = 'mapbox'
$RNMapboxMapsVersion = '>= 10.1.1'
# $RNMapboxMapsVersion = '~> 10.9.0'
project 'Project', {
'DebugStage' => :debug,
'DebugProd' => :debug,
'ReleaseStag' => :release,
'ReleaseProd' => :release,
}
debugs = ['DebugStage', 'DebugProd']
target 'project' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-AppTrackingTransparency', :path => "#{permissions_path}/AppTrackingTransparency"
pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars"
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts"
pod 'Permission-FaceID', :path => "#{permissions_path}/FaceID"
pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy"
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"
pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary"
pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone"
pod 'Permission-Motion', :path => "#{permissions_path}/Motion"
pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications"
pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"
pod 'Permission-PhotoLibraryAddOnly', :path => "#{permissions_path}/PhotoLibraryAddOnly"
pod 'Permission-Reminders', :path => "#{permissions_path}/Reminders"
pod 'Permission-Siri', :path => "#{permissions_path}/Siri"
pod 'Permission-SpeechRecognition', :path => "#{permissions_path}/SpeechRecognition"
pod 'Permission-StoreKit', :path => "#{permissions_path}/StoreKit"
pod 'IQKeyboardManager'
pod 'AppAuth', '1.2'
pod 'Plaid', '~> 2.5.1'
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
use_native_modules!
pre_install do |installer|
# $RNMapboxMaps.pre_install(installer)
$RNMBNAV.pre_install(installer)
end
post_install do |installer|
# $RNMapboxMaps.post_install(installer)
$RNMBNAV.post_install(installer)
react_native_post_install(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
case target.name
when 'RCT-Folly'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
else
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = IOS_VERSION
end
end
end
`sed -i -e $'s/__IPHONE_10_0/__IPHONE_12_0/' Pods/RCT-Folly/folly/portability/Time.h`
end
pod 'RNReactNativeHapticFeedback', :path => '../node_modules/react-native-haptic-feedback'
pod 'react-native-appsflyer', :path => '../node_modules/react-native-appsflyer'
pod 'react-native-config', :path => '../node_modules/react-native-config'
end
Hello!
We have a React Native app that uses Mapbox maps v10. We need to have an integration with react-native-mapbox-navigation as well. Neither iOS, nor Android are compiling, here's an error screenshot and Podfile:
Navigation: v2.1.2 Maps: v10.1.1