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
- Click on your project (targets)
- Click on Build Settings
- Under Framework search paths (set your framework path)
Following information for getting framework search paths
- Right click on your framework folder (for ex: GoogleMaps.framework)
- select Get info
- 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
Firestore Paginating Data + Snapshot Listener
Creating an Image Format with an Unknown Type Is an Error Objective-C Xcode 8
How to Access an Iboutlet from Another Class
How to Write Output of Augraph to a File
Uploads Using Backgroundsessionconfiguration and Nsurlsessionuploadtask Cause App to Crash
Swift Error: Editor Placeholder in Source File
Why Does Unexpected Non-Void Return Value in Void Function Happen
Facebook App Invites Notification Not Working in iOS
Get the Callers Phone Number from an Incoming Call on Iphone
How to Control Avassetwriter to Write at the Correct Fps
Swift Dynamic Table Cell Height
Multiple Unusernotifications Not Firing
Send an Email from My App Without Using Mfmailcomposeviewcontroller