Use of Unresolved Identifier 'GMSServices' Use of Unresolved Identifier 'GMSServices' ios ios

Use of Unresolved Identifier 'GMSServices'


I have solved the problem by "import GoogleMaps" in the AppDelegate.swift.


Add this line in AppDelegate.m

#import "GoogleMaps/GoogleMaps.h"


For react native make sure you are importing from above to #if DEBUG mode.

Put librarries above #if DEBUG#import "AppDelegate.h"#import <React/RCTBridge.h>#import <React/RCTBundleURLProvider.h>#import <React/RCTRootView.h>#import "RNSplashScreen.h" // here#import <GoogleMaps/GoogleMaps.h>#if DEBUG#import <FlipperKit/FlipperClient.h>#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>```Found here -> https://github.com/react-native-community/react-native-maps/issues/3453#issuecomment-665475820


matomo