I upgraded React Native from 0.70.7 to 0.74, but I am getting the following error.
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User] Config codegen /Users/hakanuysal/Library/Developer/Xcode/DerivedData/myProject-dzmuzwuniukjeedngibspubvfwbd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Script-46EB2E00042F70.sh (in target 'react-native-config' from project 'Pods')
(1 failure)
error Command failed with exit code 1.
package.json
:
{
"name": "myProject",
"version": "1.0.0",
"private": true,
"scripts": {
"android": "react-native run-android --variant=productiondebug --appId com.myProject",
"ios": "react-native run-ios",
"start": "react-native start",
"ios:beta": "react-native run-ios --scheme 'myProjectStaging' --configuration 'StagingDebug'",
"test": "jest",
"lint": "eslint --ext src/**/*.{js,ts,tsx}",
"clean": "cd android && ./gradlew clean && rm -rf ~/.gradle/caches/build-cache-* && ./gradlew --stop && cd .. && watchman watch-del-all && rm -rf node_modules/ && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && yarn cache clean && yarn install && cd ios && rm -rf Podfile.lock && rm -rf Pods/ && pod install && cd .. && yarn start --reset-cache",
"metro-clean": "watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && yarn cache clean && yarn start --reset-cache",
"cache-clean": "yarn start --reset-cache",
"postinstall": "patch-package",
"prettier:write": "yarn prettier --write src/**/*.{js,ts,tsx,json}",
"package-check": "npm-check -i @myProject/* -p",
"package-check:dev": "npm-check -i @myProject/* -d",
"build-android:apk": "cd android && ./gradlew clean && rm -rf ~/.gradle/caches/build-cache-* && ./gradlew --stop && watchman watch-del-all && ./gradlew assembleProductionRelease && ./gradlew --stop",
"build-android-market": "cd android && ./gradlew bundleProductionRelease"
},
"dependencies": {
"@eva-design/eva": "^2.1.1",
"@invertase/react-native-apple-authentication": "^2.2.2",
"@ptomasroos/react-native-multi-slider": "^2.2.2",
"@react-native-clipboard/clipboard": "1.14.1",
"@react-native-community/datetimepicker": "8.0.0",
"@react-native-firebase/analytics": "19.2.2",
"@react-native-firebase/app": "19.2.2",
"@react-native-firebase/auth": "19.2.2",
"@react-native-firebase/crashlytics": "19.2.2",
"@react-native-firebase/database": "19.2.2",
"@react-native-firebase/messaging": "19.2.2",
"@react-native-firebase/perf": "19.2.2",
"@react-native-google-signin/google-signin": "^11.0.1",
"@react-native-masked-view/masked-view": "0.3.1",
"@react-navigation/bottom-tabs": "6.5.20",
"@react-navigation/drawer": "6.6.15",
"@react-navigation/elements": "1.3.30",
"@react-navigation/native": "6.1.17",
"@react-navigation/stack": "6.3.29",
"@reduxjs/toolkit": "2.2.3",
"@rnhooks/keyboard": "^1.1.0",
"@sentry/react-native": "5.22.0",
"@ui-kitten/components": "^5.1.2",
"@ui-kitten/eva-icons": "^5.1.2",
"axios": "1.6.8",
"deprecated-react-native-prop-types": "^5.0.0",
"expo": "^50.0.17",
"expo-linear-gradient": "12.7.2",
"expo-screen-orientation": "6.4.1",
"i18next": "23.11.3",
"lodash": "^4.17.21",
"lottie-ios": "4.4.1",
"lottie-react-native": "6.7.2",
"metro": "0.80.8",
"moment": "2.30.1",
"moment-duration-format": "^2.3.2",
"prop-types": "^15.8.1",
"react": "18.3.1",
"react-i18next": "14.1.1",
"react-native": "0.74.0",
"react-native-adjust": "4.38.1",
"react-native-agora": "4.3.0-build.1",
"react-native-bootsplash": "5.5.3",
"react-native-code-push": "8.2.2",
"react-native-confetti-cannon": "^1.5.2",
"react-native-config": "1.5.0",
"react-native-device-info": "10.13.2",
"react-native-dialog": "^9.2.2",
"react-native-fast-image": "8.6.3",
"react-native-fbsdk-next": "^13.0.0",
"react-native-flash-message": "0.4.2",
"react-native-gesture-handler": "2.16.1",
"react-native-gifted-chat": "2.4.0",
"react-native-google-mobile-ads": "13.2.0",
"react-native-gradle-plugin": "^0.71.19",
"react-native-hyperlink": "^0.0.22",
"react-native-inappbrowser-reborn": "^3.7.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-localize": "3.1.0",
"react-native-mmkv": "2.12.2",
"react-native-modal": "^13.0.1",
"react-native-modal-datetime-picker": "17.1.0",
"react-native-pager-view": "6.3.1",
"react-native-permissions": "3.0.4",
"react-native-purchases": "7.27.1",
"react-native-reanimated": "^3.10.0",
"react-native-restart": "^0.0.27",
"react-native-safe-area-context": "^4.10.1",
"react-native-screens": "3.31.1",
"react-native-snackbar": "^2.4.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-store-review": "^0.4.3",
"react-native-svg": "^15.2.0",
"react-native-swipe-list-view": "^3.2.9",
"react-native-tab-view": "3.5.2",
"react-native-vector-icons": "10.0.3",
"react-native-walkthrough-tooltip": "^1.6.0",
"react-redux": "9.1.1",
"redux": "5.0.1",
"socket.io-client": "4.7.5"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/plugin-proposal-decorators": "7.24.1",
"@babel/plugin-syntax-typescript": "7.24.1",
"@babel/preset-typescript": "7.24.1",
"@babel/runtime": "^7.24.5",
"@react-native-community/eslint-config": "^3.2.0",
"@sentry/types": "^7.112.2",
"@types/eslint": "^8.56.10",
"@types/jest": "29.5.12",
"@types/lodash": "^4.17.0",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.3.0",
"@types/react-native": "^0.73.0",
"@types/react-native-snap-carousel": "^3.8.11",
"@types/react-redux": "7.1.33",
"@types/react-test-renderer": "^18.3.0",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"@ui-kitten/metro-config": "^5.1.2",
"babel-jest": "^29.7.0",
"babel-plugin-module-resolver": "^5.0.2",
"babel-plugin-transform-inline-environment-variables": "0.4.4",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "9.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.0.0",
"eslint-config-universe": "^12.0.1",
"eslint-import-resolver-typescript": "^3.5.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-standard": "^5.0.0",
"jest": "^29.7.0",
"metro-react-native-babel-preset": "0.77.0",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.2.5",
"pretty-quick": "^4.0.0",
"react-test-renderer": "18.3.1",
"ts-jest": "29.1.2",
"typescript": "5.4.5"
},
"jest": {
"preset": "react-native",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"expo": {
"autolinking": {
"exclude": [
"react-native-reanimated"
]
}
}
}
podfile:
use_modular_headers!
$RNFirebaseAsStaticFramework = true
$RNFirebaseAnalyticsWithoutAdIdSupport=true
$RNGoogleMobileAdsAsStaticFramework = true
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '14.0'
install! 'cocoapods', :deterministic_uuids => false
project 'myProject',
'DevDebug' => :debug,
'DevRelease' => :release,
'StagingDebug' => :debug,
'StagingRelease' => :release,
'Debug' => :debug,
'Release' => :release
target 'myProject' do
use_expo_modules!
post_integrate do |installer|
begin
expo_patch_react_imports!(installer)
rescue => e
Pod::UI.warn e
end
begin
expo_patch_react_imports!(installer)
rescue => e
Pod::UI.warn e
end
end
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => false,
:fabric_enabled => false,
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone"
pod 'Permission-AppTrackingTransparency', :path => "#{permissions_path}/AppTrackingTransparency"
pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications"
## Firebase pods
pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
# __apply_Xcode_12_5_M1_post_install_workaround(installer)
installer.target_installation_results.pod_target_installation_results
.each do |pod_name, target_installation_result|
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
resource_bundle_target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end
2
Answers
I'm still having the same problem, I couldn't fix it. Even though the env file is correct, react-native config gives an error regarding env. xcode logs :
eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal/undefined_arch/react-native-cons Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products/Debug-iphonesimulator/react-native-config/ export MODULEMAP_FILE=Headers/Public/react_native_config/react-native-config.modulemap export MODULE_CACHE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/ModuleCache.noindex export MTL_ENABLE_DEBUG_INFO=INCLUDE_SOURCE export MTL_FAST_MATH=YES export NATIVE_ARCH=arm64 export NATIVE_ARCH_32_BIT=arm export NATIVE_ARCH_64_BIT=arm64 export NATIVE_ARCH_ACTUAL=arm64 export NO_COMMON=YES export OBJC_ABI_VERSION=2 export OBJECT_FILE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects export OBJECT_FILE_DIR_normal=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal export OBJROOT=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex export ONLY_ACTIVE_ARCH=YES export OS=MACOS export OSAC=/usr/bin/osacompile export OTHER_CFLAGS= -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/DoubleConversion/DoubleConversion.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/React-Core/React/React-Core.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/cxxreact/React-cxxreact.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/fmt/fmt.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/folly/RCT-Folly.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/jsi/React-jsi.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/jsinspector/React-jsinspector.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/jsireact/React-jsiexecutor.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/libevent/libevent.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/logger/React-logger.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/reactperflogger/React-perflogger.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/yoga/Yoga.modulemap" export OTHER_CPLUSPLUSFLAGS= -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/DoubleConversion/DoubleConversion.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/React-Core/React/React-Core.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/cxxreact/React-cxxreact.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/fmt/fmt.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/folly/RCT-Folly.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/jsi/React-jsi.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/jsinspector/React-jsinspector.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/jsireact/React-jsiexecutor.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/libevent/libevent.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/logger/React-logger.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/reactperflogger/React-perflogger.modulemap" -fmodule-map-file="/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Headers/Public/yoga/Yoga.modulemap" export PACKAGE_TYPE=com.apple.package-type.static-library export PASCAL_STRINGS=YES export PATH=/Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/appleinternal/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES=/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms export PER_ARCH_OBJECT_FILE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal/undefined_arch export PER_VARIANT_OBJECT_FILE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal export PKGINFO_FILE_PATH=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/PkgInfo export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform export PLATFORM_DISPLAY_NAME=iOS Simulator export PLATFORM_FAMILY_NAME=iOS export PLATFORM_NAME=iphonesimulator export PLATFORM_PREFERRED_ARCH=x86_64 export PLATFORM_PRODUCT_BUILD_VERSION=21E210 export PLIST_FILE_OUTPUT_FORMAT=binary export PODS_BUILD_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products export PODS_CONFIGURATION_BUILD_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products/Debug-iphonesimulator export PODS_DEVELOPMENT_LANGUAGE=en export PODS_ROOT=/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods export PODS_TARGET_SRCROOT=/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/../../node_modules/react-native-config export PODS_XCFRAMEWORKS_BUILD_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES export PRECOMP_DESTINATION_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/PrefixHeaders export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO export PROCESSED_INFOPLIST_PATH=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal/undefined_arch/Processed-Info.plist export PRODUCT_BUNDLE_IDENTIFIER=org.cocoapods.react-native-config export PRODUCT_MODULE_NAME=react_native_config export PRODUCT_NAME=react-native-config export PRODUCT_SETTINGS_PATH= export PRODUCT_TYPE=com.apple.product-type.library.static export PROFILING_CODE=NO export PROJECT=Pods export PROJECT_DERIVED_FILE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/DerivedSources export PROJECT_DIR=/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods export PROJECT_FILE_PATH=/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/Pods.xcodeproj export PROJECT_NAME=Pods export PROJECT_TEMP_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build export PROJECT_TEMP_ROOT=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex export REACT_NATIVE_PATH=/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods/../../node_modules/react-native export RECOMMENDED_IPHONEOS_DEPLOYMENT_TARGET=12.5 export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES export REMOVE_CVS_FROM_RESOURCES=YES export REMOVE_GIT_FROM_RESOURCES=YES export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES export REMOVE_HG_FROM_RESOURCES=YES export REMOVE_STATIC_EXECUTABLES_FROM_EMBEDDED_BUNDLES=YES export REMOVE_SVN_FROM_RESOURCES=YES export REZ_COLLECTOR_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/ResourceManagerResources export REZ_EXECUTABLE=YES export REZ_OBJECTS_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/ResourceManagerResources/Objects export REZ_SEARCH_PATHS=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products/Debug-iphonesimulator/react-native-config export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO export SCRIPT_INPUT_FILE_0=/Users/hakanuysal/Desktop/aaa/aloha-mobile/node_modules/react-native-config/ios/ReactNativeConfig/BuildDotenvConfig.rb export SCRIPT_INPUT_FILE_COUNT=1 export SCRIPT_INPUT_FILE_LIST_COUNT=0 export SCRIPT_OUTPUT_FILE_0=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products/GeneratedInfoPlistDotEnv.h export SCRIPT_OUTPUT_FILE_COUNT=1 export SCRIPT_OUTPUT_FILE_LIST_COUNT=0 export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk export SDK_DIR_iphonesimulator=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk export SDK_DIR_iphonesimulator17_4=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk export SDK_NAME=iphonesimulator17.4 export SDK_NAMES=iphonesimulator17.4 export SDK_PRODUCT_BUILD_VERSION=21E210 export SDK_STAT_CACHE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData export SDK_STAT_CACHE_ENABLE=YES export SDK_STAT_CACHE_PATH=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.4-21E210-aa93b11c43e2d16681ac3fa171344f4f.sdkstatcache export SDK_VERSION=17.4 export SDK_VERSION_ACTUAL=170400 export SDK_VERSION_MAJOR=170000 export SDK_VERSION_MINOR=170400 export SED=/usr/bin/sed export SEPARATE_STRIP=NO export SEPARATE_SYMBOL_EDIT=NO export SET_DIR_MODE_OWNER_GROUP=YES export SET_FILE_MODE_OWNER_GROUP=NO export SHALLOW_BUNDLE=NO export SHARED_DERIVED_FILE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products/Debug-iphonesimulator/react-native-config/DerivedSources export SHARED_PRECOMPS_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/PrecompiledHeaders export SKIP_INSTALL=YES export SOURCE_ROOT=/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods export SRCROOT=/Users/hakanuysal/Desktop/aaa/aloha-mobile/ios/Pods export STRINGSDATA_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal/undefined_arch export STRINGSDATA_ROOT=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build export STRINGS_FILE_INFOPLIST_RENAME=YES export STRINGS_FILE_OUTPUT_ENCODING=binary export STRIP_BITCODE_FROM_COPIED_FILES=NO export STRIP_INSTALLED_PRODUCT=NO export STRIP_STYLE=debugging export STRIP_SWIFT_SYMBOLS=YES export SUPPORTED_DEVICE_FAMILIES=1,2 export SUPPORTED_PLATFORMS=iphoneos iphonesimulator export SUPPORTS_TEXT_BASED_API=NO export SUPPRESS_WARNINGS=NO export SWIFT_ACTIVE_COMPILATION_CONDITIONS=DEBUG export SWIFT_EMIT_LOC_STRINGS=NO export SWIFT_OPTIMIZATION_LEVEL=-Onone export SWIFT_PLATFORM_TARGET_PREFIX=ios export SWIFT_RESPONSE_FILE_PATH_normal_arm64=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal/arm64/react-native-config.SwiftFileList export SWIFT_VERSION=5.0 export SYMROOT=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities export SYSTEM_APPS_DIR=/Applications export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices export SYSTEM_DEMOS_DIR=/Applications/Extras export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin export SYSTEM_DEVELOPER_DEMOS_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SYSTEM_DEVELOPER_DOC_DIR=/Applications/Xcode.app/Contents/Developer/ADC Reference Library export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Java Tools export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools export SYSTEM_DEVELOPER_RELEASENOTES_DIR=/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools export SYSTEM_DEVELOPER_TOOLS_DOC_DIR=/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR=/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities export SYSTEM_DEXT_INSTALL_PATH=/System/Library/DriverExtensions export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions export SYSTEM_LIBRARY_DIR=/System/Library export TAPI_DEMANGLE=YES export TAPI_ENABLE_PROJECT_HEADERS=NO export TAPI_LANGUAGE=objective-c export TAPI_LANGUAGE_STANDARD=compiler-default export TAPI_USE_SRCROOT=YES export TAPI_VERIFY_MODE=Pedantic export TARGETED_DEVICE_FAMILY=1,2 export TARGETNAME=react-native-config export TARGET_BUILD_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Products/Debug-iphonesimulator/react-native-config export TARGET_DEVICE_IDENTIFIER=3508443B-7304-4355-B2BF-7E3717A39C7D export TARGET_DEVICE_MODEL=iPhone16,1 export TARGET_DEVICE_OS_VERSION=17.4 export TARGET_DEVICE_PLATFORM_NAME=iphonesimulator export TARGET_NAME=react-native-config export TARGET_TEMP_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build export TEMP_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build export TEMP_FILES_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build export TEMP_FILE_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build export TEMP_ROOT=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex export TEST_FRAMEWORK_SEARCH_PATHS= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk/Developer/Library/Frameworks export TEST_LIBRARY_SEARCH_PATHS= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO export UID=501 export UNINSTALLED_PRODUCTS_DIR=/Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/UninstalledProducts export UNSTRIPPED_PRODUCT=NO export USER=hakanuysal export USER_APPS_DIR=/Users/hakanuysal/Applications export USER_LIBRARY_DIR=/Users/hakanuysal/Library export USE_DYNAMIC_NO_PIC=YES export USE_HEADERMAP=YES export USE_HEADER_SYMLINKS=NO export USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES=YES export VALIDATE_DEVELOPMENT_ASSET_PATHS=YES_ERROR export VALIDATE_PRODUCT=NO export VALID_ARCHS=arm64 arm64e i386 x86_64 export VERBOSE_PBXCP=NO export VERSION_INFO_BUILDER=hakanuysal export VERSION_INFO_FILE=react-native-config_vers.c export VERSION_INFO_STRING="@(#)PROGRAM:react-native-config PROJECT:Pods-" export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode export XCODE_PRODUCT_BUILD_VERSION=15E204a export XCODE_VERSION_ACTUAL=1530 export XCODE_VERSION_MAJOR=1500 export XCODE_VERSION_MINOR=1530 export XPCSERVICES_FOLDER_PATH=/XPCServices export YACC=yacc export arch=undefined_arch export variant=normal /bin/sh -c /Users/hakanuysal/Library/Developer/Xcode/DerivedData/AlohaLive-eujtnqadlxnqlhamrqbzdnhghsji/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Script-46EB2E00043140.sh
Upgrading React Native can sometimes trip things up with your setup. It looks like your build scripts might be out of sync with the new version. Here’s what I suggest to get things back on track:
Firstly: Try Clean House
You can start a fresh by cleaning up and setting things up again:
Clear out old watchman data and reset Metro’s cache
watchman watch-del-all
rm -rf $TMPDIR/react-native-packager-cache-*
rm -rf $TMPDIR/metro-bundler-cache-*
Remove old modules and re-install
rm -rf node_modules/ && yarn install
Now, head over to iOS and clean up there as well
cd ios
rm -rf Pods Podfile.lock
pod install –repo-update
cd ..
Secondly, Try checking your build scripts:
That error you’re seeing seems to come from react-native-config. There might be a script that needs an update in your Xcode project settings under the Pods target. Make sure it’s all good for React Native 0.74
#I hope this will help