<Googlemaps/Googlemaps.H> File Not Found Google Maps Sdk for iOS

GoogleMaps/GoogleMaps.h file not found Google Maps SDK for iOS

Make sure you unzip the SDK with something which understands symbolic links.

GoogleMaps.framework/Headers is a symbolic link to GoogleMaps.framework/Versions/A/Headers.

When I unzip it on my Mac the symbolic link is set up correctly. But when I unzip it on my PC instead of symbolic links I get text files which just contain the path (eg Versions/Current/Headers).

If you unzip on a PC and then copy the folder to your Mac (or unzip using some other method which doesn't create symbolic links), then you will get the error you see.

iOS - #import GoogleMaps/GoogleMaps.h not found

This could be an issue of you not copying the frameworks to the project folder, and then after adding the GoogleMaps framework maybe you moved the framework file on your computer to a new location?

Try deleting the framework from your project and then adding the framework again by going to your Project's Build Setting --> Build Phases and dragging the framework into that window.

Also, perform a Project Clean, and make sure that if you have an iOS Simulator running (in any project) to stop it and close it.

Sometimes this causes Xcode to freeze the update process within the coding.

React Native ios 'GoogleMaps/GoogleMaps.h' file not found

Ok so I just found a solution that worked :

add pod Google-Maps-iOS-Utils in the podfile

remove AirMaps.xcodeproj from Libraries

remove libAirMap.a from Link Binary with Libraries

But now i got a new problem: the map appears but now i can't use fitToCoordinates because an error occur:

Unknown argument type 'AIRMapCoordinatesArray' in method - [AIRGoogleMapManager fitToCoordinates:coordinates:edgePadding:animated: ). Extend RCTConvert to support this type.

when i take a look to the debugger it tells me:

Warning: Native component for "AIRMap" does not exist

(more info in the react-native-maps issue I reported)

Edit:

I added the AirMaps folder in my project and everything seems to work fine

Framework not found GoogleMaps sdk in iOS

I solved my issue

You need to do this

  1. Click on your project (targets)
  2. Click on Build Settings
  3. Under Framework search paths (set your framework path)

Following information for getting framework search paths

  1. Right click on your framework folder (for ex: GoogleMaps.framework)
  2. select Get info
  3. copy the path from General->where and paste this path in your framework search path (path should contain in single line)

Good luck



Related Topics



Leave a reply



Submit