Skip to content
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

Compiler issue with Maps v10 #106

Open
iuliiaivanova-andersen opened this issue Nov 17, 2022 · 0 comments
Open

Compiler issue with Maps v10 #106

iuliiaivanova-andersen opened this issue Nov 17, 2022 · 0 comments

Comments

@iuliiaivanova-andersen
Copy link

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

Screenshot 2022-11-16 at 21 27 09

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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant