console.error: "react-native-maps" AirGoogleMaps dir must be added to your xCode project
I got this error when I am trying to test the example in react-native-maps
module.
Github: https://github.com/airbnb/react-native-maps/tree/master/example
It is obvious that I should add the dir the to my Xcode project but I don't know how to add them.
May I have an example of adding dir to a Xcode project?
I had this problem using react native 0.61, the solution on my case was: Stop the Metro Bundler, After that go to the pods directory:
cd ..
cd ios
Install again the pods:
pod install
Go to the project root:
cd ..
and run the project again npx react-native run-ios
This is the segment of my 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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With