Expo SDK 47, eas-cli, managed workflow, issue with react-native-maps (valied API key is added in ios.config.googleMapsApiKey)

Hello
My app is using Expo SDK 47, managed workflow and I’m using eas-cli to build development build for ios. I have a problem with react-native-maps. When I open development build in IOS simulator I’m getting error:
“react-native-maps: AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS.”

I was following documentation and completed all of the steps.

app.json

 "ios": {
      ...
      "bundleIdentifier": "BUNDLE_IDENTIFIER",
      "config": {
        "googleMapsApiKey": "API_KEY"
      }
    },

MapVIew provider:

 <MapView
          initialRegion={{
            ...
          }}
          provider={PROVIDER_GOOGLE}
        >

eas.json

"devclient": {
      "releaseChannel": "default",
      "distribution": "internal",
      "developmentClient": true,
      "android": {
        "buildType": "apk"
      },
      "ios": {
        "simulator": true
      }
    },

Screenshot 2022-11-20 at 19.07.54

And bundle identifier added to API key is valid.

I would highly appreciate any help

Hi @arsicdejan,

Reproducing this on the iOS simulator after running an EAS build, I’m not getting the error you stated. Also, looking at the configuration you shared seems good to me. I hope, in your project, you are using the latest version compatible of react-native-maps: 1.3.2 and 47.0.6 as the expo version.

Can you please make sure to look into the instructions to install the configure the library for iOS. Or if your project contains other libraries as well, to reproduce the error, try to isolate it by creating a new project and following the instructions you did for the first time?

@amanhimself Thank you very much for your time!

Yes, I am using latest versions.

I noticed my Google Cloud billing account was not configured properly, so, maybe that cause issue, but from error message it looks like it is something else.

I will create new project and let you know if everything is ok.

1 Like