Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RCTConvert+AirMap.h file not found Error on React Native on IOS

enter image description here

i have this Error . RCTConvert+AirMap.h file not found Error on React Native on IOS

like image 515
cute soft Avatar asked Nov 06 '22 05:11

cute soft


1 Answers

I was able to fix this with:

  1. Adding $(SRCROOT)/../node_modules/react-native-maps/lib/ios/AirMaps in the project target header

  2. Moving the pod 'react-native-google-maps', path: rn_maps_path above use_native_modules (it was previously below that) in the Podfile

  3. Added:

  post_install do |installer|
      //...
      installer.pods_project.targets.each do |target|
      if target.name == 'react-native-google-maps'
        target.build_configurations.each do |config|
          config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
        end
      end
      
    end
  end
  1. after step 3 if still not working remove all the cache (pod deintegrate, pod install, remove derived data, clean build)
like image 193
Florin Dobre Avatar answered Nov 14 '22 21:11

Florin Dobre