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
Summary
Description
While installing iOS dependencies for a React Native project using react-native-maps, the CocoaPods installation fails with the following error:
pod installin theiosdirectory.Command
pod installfailed.└─ Cause: No podspec found for
react-native-google-mapsinnode_modules/react-native-mapspod 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 iosRun CocoaPods install:
pod installInstallation 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-mapsin node_modules/react-native-mapsAs a result, iOS dependencies are not installed and the project cannot be built.
Additional Context
Reproducible sample code
Steps to reproduce
expo prebuildExpected result
Cocoapods installed
Actual result
pod installin theiosdirectory.Command
pod installfailed.└─ Cause: No podspec found for
react-native-google-mapsinnode_modules/react-native-mapspod 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