AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS. #4661
Replies: 12 comments 23 replies
-
This is driving me crazy and in the last week I'm not able to make any progress. Keep going around in circles. Who can help? All suggestions are welcome Whatever I'm trying I keep getting this error:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am having the exact same issue! But in an expo workflow, weirdly enough I have another project (not using expo) running the same version of react-native-maps and it doesn't give me this error |
Beta Was this translation helpful? Give feedback.
-
Having the same problem with expo |
Beta Was this translation helpful? Give feedback.
-
Should probably create an issue so maintainers are aware. |
Beta Was this translation helpful? Give feedback.
-
If you are following instructions that include copying the AirGoogleMaps folder, these are very old! Try following the latest instructions from https://github.com/react-native-maps/react-native-maps/blob/master/docs/installation.md#ios which are thankfully much simpler. I had similar issues before realising that I had been following very old instructions. There was a link to an old version in the main README in the react-native-maps repo, which is how I got there. I have submitted a PR to update it. |
Beta Was this translation helpful? Give feedback.
-
How are you installing your pods? I had the same issue while i used |
Beta Was this translation helpful? Give feedback.
-
Hello, if there is anyone still facing this issue, I was able to fix it following the first answer in this post: Basically go to xCode > Your Project > Build Settings > Preprocessor Macros > added HAVE_GOOGLE_MAPS=1 in the Debug option |
Beta Was this translation helpful? Give feedback.
-
Was anyone able to resolve this - I've tried all of the above but I'm still stuck with it. Any help appreciated! UPDATE: Resolved (somewhat) by removing |
Beta Was this translation helpful? Give feedback.
-
hi, this answer in stackoverflow worked for me: |
Beta Was this translation helpful? Give feedback.
-
I'm closing this discussion as well because if installation instructions are followed correctly, this shouldn't happen. |
Beta Was this translation helpful? Give feedback.
-
Briefly: When you run: But in our case, you need to build your app again. What you should get:
Trouble: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been reading all posts and suggestions. I've been trying for days to solve this problem without any luck, unfortunately. I'm really stuck and hope to get some help from this group.
I've followed all the instructions to install the react-native-maps for ios. I do get the Apple Maps on the simulator so big part of the installation was successful, at least that is my conclusion. When I add the provider={PROVIDER_GOOGLE} statement I get the following error message:
Of course I've added added to folder to my project, see screenshot:
Still I'm getting the error message and I don't know what to do. Who can help? Suggestions?
Again, I know there are similar posts on the forum about this error message, I've read them, tried to follow them but without any luck.
Beta Was this translation helpful? Give feedback.
All reactions