My react native venture hold giving error:
ReactCodegen : Command PhaseScriptExecution failed with a nonzero exit code .
Podfile
# Resolve react_native_pods.rb with node to permit for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, min_ios_version_supported
prepare_react_native_project!
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.places "Configuring Pod with #{linkage}ally linked Frameworks".inexperienced
use_frameworks! :linkage => linkage.to_sym
finish
goal 'AppName' do
config = use_native_modules!
use_frameworks! :linkage => :static
pod 'Firebase', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseAuthInterop', :modular_headers => true
pod 'FirebaseAppCheckInterop', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'RecaptchaInterop', :modular_headers => true
# React Native dependencies
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your software root.
:app_path => "#{Pod::Config.occasion.installation_root}/.."
)
goal 'AppNameTests' do
inherit! :full
# Pods for testing
finish
post_install do |installer|
# React Native post-install configuration
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
)
# Extra configurations
installer.aggregate_targets.every do |goal|
goal.xcconfigs.every do |variant, xcconfig|
xcconfig_path = goal.client_root + goal.xcconfig_relative_path(variant)
IO.write(xcconfig_path, IO.learn(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
finish
finish
installer.pods_project.targets.every do |goal|
goal.build_configurations.every do |config|
config.build_settings['SWIFT_VERSION'] = '5.0'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
if config.base_configuration_reference.is_a? Xcodeproj::Mission::Object::PBXFileReference
xcconfig_path = config.base_configuration_reference.real_path
IO.write(xcconfig_path, IO.learn(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
finish
finish
finish
finish
finish
Bundle.json
{
"title": "AppName",
"model": "0.0.1",
"non-public": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"begin": "react-native begin",
"take a look at": "jest"
},
"dependencies": {
"@gorhom/bottom-sheet": "^5.0.5",
"@invertase/react-native-apple-authentication": "^2.4.0",
"@react-native-async-storage/async-storage": "^1.24.0",
"@react-native-community/datetimepicker": "^8.2.0",
"@react-native-community/slider": "^4.5.2",
"@react-native-firebase/analytics": "^21.6.1",
"@react-native-firebase/app": "^21.6.1",
"@react-native-firebase/auth": "^21.6.1",
"@react-native-firebase/firestore": "^21.6.1",
"@react-native-google-signin/google-signin": "^13.1.0",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"cloudinary-react-native": "^1.0.1",
"occasions": "^3.3.0",
"firebase": "^10.13.1",
"react": "18.3.1",
"react-native": "0.75.2",
"react-native-blob-util": "^0.19.11",
"react-native-file-viewer": "^2.1.5",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.20.2",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-paper": "^5.12.5",
"react-native-pdf": "^6.7.5",
"react-native-permissions": "^4.1.5",
"react-native-safe-area-context": "^4.10.9",
"react-native-screens": "^3.34.0",
"react-native-svg": "^15.6.0",
"react-native-toast-message": "^2.2.1",
"react-native-view-shot": "^4.0.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.75.2",
"@react-native/eslint-config": "0.75.2",
"@react-native/metro-config": "0.75.2",
"@react-native/typescript-config": "0.75.2",
"@varieties/react": "^18.2.6",
"@varieties/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
I’m caught right here from 2 days, I’ve reinstalled pods, reinstalled packages, tried each answer accessible. I feel there’s some difficulty in my podfile or bundle.json. Please recommend me the modifications within the podfile and packages file.