thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.75k stars 864 forks source link

[BUG]: Hermes-engine cocoapods issue #348

Closed 00MB closed 1 year ago

00MB commented 1 year ago

react-native environment setup

Description

When I build other react native bp's everything is fine.

Initially when getting started I get

`✖ Installing CocoaPods dependencies (this may take a few minutes) error warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md

✖ Installing CocoaPods dependencies (this may take a few minutes) error Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/next/environment-setup and follow the React Native CLI QuickStart guide for macOS and iOS.`

I then went to cd ios, bundle exec pod install to investigate and saw this.

warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md Auto-linking React Native modules for targetMyApp2: RNCMaskedView, RNGestureHandler, RNReanimated, RNScreens, react-native-flipper, react-native-mmkv, and react-native-safe-area-context Framework build type is static library [Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json Analyzing dependencies Fetching podspec forDoubleConversionfrom../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec [Codegen] Found FBReactNativeSpec Fetching podspec forRCT-Follyfrom../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec Fetching podspec forboostfrom../node_modules/react-native/third-party-podspecs/boost.podspec Fetching podspec forglogfrom../node_modules/react-native/third-party-podspecs/glog.podspec Fetching podspec forhermes-enginefrom../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec [!] CocoaPods could not find compatible versions for pod "hermes-engine": In snapshot (Podfile.lock): hermes-engine (from../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)

In Podfile: hermes-engine (from ../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec)

It seems like you've changed the version of the dependency hermes-engine and it differs from the version stored in Pods/Local Podspecs. You should run pod update hermes-engine --no-repo-update to apply changes made locally.`

Version

3.6.5

On which OS this issue appear on?

Desktop OS

Mac Ventera 13.3

JeremyDolle commented 1 year ago

Seems to duplicate #344

00MB commented 1 year ago

Yup, good shout