Yesterday I recived an email from google saying that I could acces to the map api for ios, I generated my key from the app console and I follow the steps of https://develope
make sure you upgrade to the latest sdk. v1 and v3 were different. had trouble getting v1 to work
This answer will also might help you. The above all answers are not worked for me at last after a long time i found like this
# import "GoogleMapsM4B/GoogleMaps.h"
Use like this it definitely solves your problem
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.
Its better install Pod for google map, Just add google maps into pod. Note if you don't have pod file in your project folder ios/ then do below steps pod init
the add below code in your pod file
platform :ios, '9.0'
target 'YourAppTarget' do
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
end
# pre_install do |installer|
# copied from https://github.com/CocoaPods/CocoaPods/issues/2926
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
# def installer.verify_no_static_framework_transitive_dependencies; end
# end
target 'YourAppTarget-tvOS' do
end
Do not forget to add AirGoogleMaps to your project directory from node_modules/react-native-maps/lib/ios