Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.15 fails to pod install on react native 74 #5065

Closed
ororsatti opened this issue May 23, 2024 · 7 comments
Closed

1.15 fails to pod install on react native 74 #5065

ororsatti opened this issue May 23, 2024 · 7 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@ororsatti
Copy link

Summary

There is not too much in this, Im trying to build a completely new project from scratch and with react native 0.74 and react-native-maps it fails to pod install, tho I followed all steps.

Here is the error I get:
Screenshot 2024-05-23 at 15 38 45

BTW, on previous versions of react, such as 0.73, it works fine.

Reproducible sample code

npx react-native-community@cli@latest init ProjectName
yarn add react-native-maps
cd ios && pod install

Steps to reproduce

npx react-native-community@cli@latest init ProjectName
yarn add react-native-maps
cd ios && pod install

Expected result

it should have worked I assume

Actual result

it didnt

React Native Maps Version

1.15.2

What platforms are you seeing the problem on?

iOS (Apple Maps), iOS (Google Maps)

React Native Version

0.74

What version of Expo are you using?

Not using Expo

Device(s)

all iphones

Additional information

No response

@ororsatti ororsatti added the bug Something isn't working label May 23, 2024
@GuySerfaty
Copy link

+1

1 similar comment
@EduFaks
Copy link

EduFaks commented May 23, 2024

+1

@rodrigolopezr
Copy link

+1 Same problem same versions

@EduFaks
Copy link

EduFaks commented May 24, 2024

For any one having a smilar issue I found a quick fix for it!

  1. cd into your main project folder
  2. Uninstall/Remove react-native-maps (use npm or yarn depending on how you installed it).
  3. Run yarn add [email protected]
  4. OPTIONAL - If running on an M1 or M2 chip Mac, add the following command in your Podfile above use_native_modules!
# The following line is only needed if building on an Apple silicon Mac without rosetta.
pod 'Google-Maps-iOS-Utils', :git => 'https://github.com/Simon-TechForm/google-maps-ios-utils.git', :branch => 'feat/support-apple-silicon'
  1. OPTIONAL - If you want to use google maps with IOS (or even if it is still not working add the following code below the previous code
# React Native Maps dependencies
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
  1. cd ios && pod install

Hope it helps! 👍🏼

@ororsatti
Copy link
Author

For any one having a smilar issue I found a quick fix for it!

  1. cd into your main project folder
  2. Uninstall/Remove react-native-maps (use npm or yarn depending on how you installed it).
  3. Run yarn add [email protected]
  4. OPTIONAL - If running on an M1 or M2 chip Mac, add the following command in your Podfile above use_native_modules!
# The following line is only needed if building on an Apple silicon Mac without rosetta.
pod 'Google-Maps-iOS-Utils', :git => 'https://github.com/Simon-TechForm/google-maps-ios-utils.git', :branch => 'feat/support-apple-silicon'
  1. OPTIONAL - If you want to use google maps with IOS (or even if it is still not working add the following code below the previous code
# React Native Maps dependencies
rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
  1. cd ios && pod install

Hope it helps! 👍🏼

I dont feel comfortable using a beta version of this lib when there is a stable version.
I just moved to the latest .073 version of react native, untill the devs will fix this issue.

@salah-ghanim
Copy link
Collaborator

@ororsatti I think your bug report is not completely accurate, but please correct me if I'm wrong.

since you use react-native@latest means you're using 0.74.1 which is known for now to break the pod install step due to one of those two issues (I'm not exactly sure which one specific to our library / google-maps).

facebook/react-native#44437
or
facebook/react-native#44628

we're waiting on react-native team to merge them and publish 0.74.2 , we'll merge then and hopefully the example will be back to working as expected with react-native@latest out of the box

@salah-ghanim salah-ghanim reopened this May 24, 2024
@salah-ghanim salah-ghanim added the dependencies Pull requests that update a dependency file label May 24, 2024
salah-ghanim added a commit that referenced this issue May 25, 2024
- Fixes issue where Pods were not installing successfully (#5065)
- Update example project to React Native 0.74.1
- Update documentation to clarify usage of unstable_reactLegacyComponentNames and include warning message
react-native-maps-bot pushed a commit that referenced this issue May 25, 2024
## [1.15.4](v1.15.3...v1.15.4) (2024-05-25)

### Bug Fixes

* **ios:** resolve issue with Pods installation ([#5065](#5065)) ([9992c36](9992c36))
@salah-ghanim
Copy link
Collaborator

fixed in the latest release

DavidLee0501 added a commit to DavidLee0501/React-Native-Map that referenced this issue Aug 12, 2024
- Fixes issue where Pods were not installing successfully (react-native-maps/react-native-maps#5065)
- Update example project to React Native 0.74.1
- Update documentation to clarify usage of unstable_reactLegacyComponentNames and include warning message
DavidLee0501 added a commit to DavidLee0501/React-Native-Map that referenced this issue Aug 12, 2024
## [1.15.4](react-native-maps/react-native-maps@v1.15.3...v1.15.4) (2024-05-25)

### Bug Fixes

* **ios:** resolve issue with Pods installation ([#5065](react-native-maps/react-native-maps#5065)) ([9992c36](react-native-maps/react-native-maps@9992c36))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

5 participants