Environment info "react": "17.0.2", "react-native": "0.66.3" "react-native-maps": "^0.29.4"
XCode Version 13.1 (13A1030d) macOS 12.0.1 Target Platform iOS 15.1 Phone using GoogleMaps
Steps to reproduce Create new project Add config = use_native_modules! in the Podfile Add in the Podfile:
react-native-maps dependencies rn_maps_path = '../node_modules/react-native-maps' pod 'react-native-google-maps', :path => rn_maps_path pod 'GoogleMaps' pod 'Google-Maps-iOS-Utils'
pod install
Add in AppDelegate.m:
#import "AppDelegate.h"
#import <GoogleMaps/GoogleMaps.h>
#import <GooglePlaces/GooglePlaces.h>
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary
*)launchOptions
{
[GMSServices provideAPIKey:@"xxxx"];
[GMSPlacesClient provideAPIKey:@"xxxx"];
}
Build in XCode
Describe what you expected to happen:
Build successful
Describe what you actually happens:
/ios/UbiWalkerReactNat/AppDelegate.m:2:9: 'GoogleMaps/GoogleMaps.h' file not found