[X] I verified that I have not react-native-cli installed globally and be up to date about the 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.`
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 target
MyApp2: 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 for
DoubleConversionfrom
../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec[Codegen] Found FBReactNativeSpec Fetching podspec for
RCT-Follyfrom
../node_modules/react-native/third-party-podspecs/RCT-Folly.podspecFetching podspec for
boostfrom
../node_modules/react-native/third-party-podspecs/boost.podspecFetching podspec for
glogfrom
../node_modules/react-native/third-party-podspecs/glog.podspecFetching podspec for
hermes-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 inPods/Local Podspecs
. You should runpod 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