react-native-maps icon indicating copy to clipboard operation
react-native-maps copied to clipboard

<GoogleMaps/GoogleMaps.h> not found ver 0.12.2, react native 0.37.0. Please help

Open 2ducanhpham opened this issue 9 years ago • 5 comments

Step:

  • Touch Podfile
  • Copy Podfile in example and past my podfile
  • Pod install
  • Drag node_modules/react-native-maps/ios/AirGoogleMaps/

2ducanhpham avatar Dec 08 '16 10:12 2ducanhpham

try pod 'GoogleMaps', '~> 2.1.1' in your podfile instead of pod 'GoogleMaps'. Worked for me!

teameh avatar Dec 10 '16 01:12 teameh

I try , but not working

2ducanhpham avatar Dec 13 '16 07:12 2ducanhpham

I was having the same issue where I could see <GoogleMaps/GoogleMaps.h> not found in the compiler output, but the maps were still working. So I tried opening the Xcode project and tried building it there. It turned out that the Tests bundle was the one that was causing the error. Double checking the search paths for the tests, I found that it was not inheriting the same paths that the app target was. Specifically, it wasn't inheriting the ios/Pods/Headers/Public path, which is where GoogleMaps.h is.

You could add the path yourself manually, but I just omitted the tests bundle from the build by editing the scheme settings and unchecking "Run" for the Tests bundle. I think the search paths get filled out by react-native link? So maybe something can be done fix the search paths for the Tests.

oatssss avatar Jun 29 '17 17:06 oatssss

install 0.15.2 & react native 0.45 -> Worked

2ducanhpham avatar Jun 30 '17 13:06 2ducanhpham

@2ducanhpham didn't work for me :(

nonameolsson avatar Jul 12 '17 01:07 nonameolsson