Skip to content

CocoaPods fails with “No podspec found for react-native-google-maps” #5915

@Ershivnandan

Description

@Ershivnandan

Summary

Description

While installing iOS dependencies for a React Native project using react-native-maps, the CocoaPods installation fails with the following error:

⚠️ Something went wrong running pod install in the ios directory.

Command pod install failed.
└─ Cause: No podspec found for react-native-google-maps in
node_modules/react-native-maps

pod install --repo-update --ansi exited with non-zero code: 1

This prevents the iOS build from completing successfully.

Environment

React Native version: 0.83.2
react-native-maps version: 1.72.2
iOS version: 26
CocoaPods version: 1.16.2
Node version: 20

Steps to Reproduce

Install project dependencies using npm install or yarn install

Navigate to the iOS directory:

cd ios

Run CocoaPods install:

pod install
Installation fails with the above error
Expected Behavior

CocoaPods should successfully install all dependencies for react-native-maps, including Google Maps support if enabled.

Actual Behavior

CocoaPods fails with:

No podspec found for react-native-google-maps in node_modules/react-native-maps

As a result, iOS dependencies are not installed and the project cannot be built.

Additional Context

  • The issue persists even after running pod install --repo-update
  • node_modules contains react-native-maps, but the expected Google Maps podspec is not found
  • This appears to be related to pod configuration or missing integration for Google Maps on iOS

Reproducible sample code

<MapView
                style={styles.basicMap}
                initialRegion={bookingLocationRegion}
                region={bookingLocationRegion}
                provider="google"
                mapType="satellite"
                loadingEnabled={false}
                showsUserLocation={false}
                scrollEnabled={false}
                zoomEnabled={false}
                pitchEnabled={false}
                rotateEnabled={false}
                showsCompass={false}
                toolbarEnabled={false}
                onMapReady={() => {
                  // Map ready callback
                }}
              >
               {{children}} 
              </MapView>

Steps to reproduce

expo prebuild

Expected result

Cocoapods installed

Actual result

⚠️ Something went wrong running pod install in the ios directory.

Command pod install failed.
└─ Cause: No podspec found for react-native-google-maps in
node_modules/react-native-maps

pod install --repo-update --ansi exited with non-zero code: 1

React Native Maps Version

1.27.2

What platforms are you seeing the problem on?

iOS (Google Maps)

React Native Version

0.83.2

What version of Expo are you using?

SDK 53

Device(s)

iPhone 17 (os 26)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions