react-native-maps: 'RCTConvert+AirMap.h' file not found
Bug report
Summary
Environment info
react-native info output:
System:
OS: macOS 10.15.6
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 50.64 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.8.1 - ~/.nvm/versions/node/v8.8.1/bin/node
Yarn: 1.12.1 - /usr/local/bin/yarn
npm: 5.4.2 - ~/.nvm/versions/node/v8.8.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
Android SDK: Not Found
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 12.1/12A7403 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_181 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: ^4.13.0 => 4.13.0
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
My Xcode version 12.1 (12A7403) “react-native-maps”: “0.27.1”,
Podfile
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
Steps to reproduce
When I build my ios project always shown 'RCTConvert+AirMap.h' file not found message
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 10
- Comments: 32 (3 by maintainers)
Dear @JustineUIT, I hope it’s not too late. I’m putting here a fully working Podfile example. Hope also helps who ended up with this discussion further. A briefly key thing to know is the setting pre-installer section in Podfile and marking whole build failing libraries as Static, let’s see in example:
Pro tip: after applying this and find all the libraries they needs static library change. Remove Pods one last time and remove DerivedData too
I made it work following this discussion thread. The solution, or better say workaround, for the problem is the following:
Create a
react-native-maps-plugin.jsin the root of the project with the following content:Then load then plugin inside
app.jsonand setuseFrameworks: 'static'anddeploymentTarget: "13.0":See the linked thread for more information and some alternative solutions.
In the long run however, I think this should be made as an official Expo plugin. I might send a PR if I find the time.
Have you find a solution? I’m facing the same problem
To be more specific about the additional statements you need to add to your files:
Additional statements need to be added to
Podfile:Additional statements need to be added to
AppDelegate.mm:For the configuration:
I don’t know why it no longer says this in the installation instructions but I’ve seen it on YouTube of people installing older versions on this library and the instruction use to say to put
pod 'GoogleMaps'in your pod file.my pod file now looks like:
This fixed it for me, hope it helps people in the future.
Thanks, I found this earlier – works like a charm 🙌
Thanks you, work like a charm!
This one not work for me, in case i am using use_framework! in my podfile. I also try this instruction: https://github.com/googlemaps/google-maps-ios-utils/blob/b721e95a500d0c9a4fd93738e83fc86c2a57ac89/Swift.md but does not work! Anyone have a full guide to install react-native-maps with use_framework!. I tried all the tutorials on the internet but none of them really worked
try add below code to your
ios/Podfileeven your RN is higher then 0.59https://github.com/react-native-maps/react-native-maps/blob/master/docs/installation.md#using-cocoapods-react-native-059-and-lower
This saved the day !! Thanks a lot.
Here is my version of the podfile,
Thanks, worked here also perfectly 😃 !
Worked perfectly, thanks 💯
Worked perfectly, thanks