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

iOS Release build from XCode fails at "[CP-User] [Hermes] Replace Hermes for the right configuration, if needed" step after adding a package #39903

Closed
louiszawadzki opened this issue Oct 6, 2023 · 46 comments
Labels
Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 Platform: iOS iOS applications. Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@louiszawadzki
Copy link
Contributor

New Version

0.73.0-rc.1

Old Version

0.72.5

Build Target(s)

iOS Simulator, Release mode

Output of react-native info

System:
  OS: macOS 13.5.2
  CPU: (10) arm64 Apple M1 Max
  Memory: 28.10 GB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.16.1
    path: /var/folders/5l/y80kyhh93kl22_mbytwl_hg40000gq/T/yarn--1696580732065-0.23045373433674454/node
  Yarn:
    version: 1.22.19
    path: /var/folders/5l/y80kyhh93kl22_mbytwl_hg40000gq/T/yarn--1696580732065-0.23045373433674454/yarn
  npm:
    version: 9.5.1
    path: ~/.volta/tools/image/node/18.16.1/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.12.1
    path: /Users/louis.zawadzki/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10671973
  Xcode:
    version: 14.3.1/14E300c
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.16.1
    path: /Users/louis.zawadzki/.sdkman/candidates/java/current/bin/javac
  Ruby:
    version: 2.7.5
    path: /Users/louis.zawadzki/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.0-rc.1
    wanted: 0.73.0-rc.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Issue and Reproduction Steps

Reproduction steps:

  • Create a new project with npx react-native@latest init MyApp --version 0.73.0-rc.1
  • Open the project in XCode xed ios
  • Right-click on MyApp > Edit Scheme and select Release
  • Build > The app builds
  • Run yarn add react-native-webview (or any other npm package)
  • Run cd ios && bundle exec pod install (not necessary for all packages, but does not fix the issue anyway)
  • Build > The build fails

The build fails with the following error:


Showing All Errors Only
PhaseScriptExecution [CP-User]\ [Hermes]\ Replace\ Hermes\ for\ the\ right\ configuration,\ if\ needed /Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Script-46EB2E00020010.sh (in target 'hermes-engine' from project 'Pods')
    cd /Users/louis.zawadzki/MyApp/ios/Pods
    export ACTION\=build
    export AD_HOC_CODE_SIGNING_ALLOWED\=YES
    export ALLOW_TARGET_PLATFORM_SPECIALIZATION\=NO
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
    export ALTERNATE_OWNER\=louis.zawadzki
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES\=NO
    export ALWAYS_SEARCH_USER_PATHS\=NO
    export ALWAYS_USE_SEPARATE_HEADERMAPS\=NO
    export APPLE_INTERNAL_DEVELOPER_DIR\=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR\=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR\=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR\=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS\=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY\=NO
    export APPLY_RULES_IN_COPY_FILES\=NO
    export APPLY_RULES_IN_COPY_HEADERS\=NO
    export APP_SHORTCUTS_ENABLE_FLEXIBLE_MATCHING\=YES
    export ARCHS\=arm64\ x86_64
    export ARCHS_STANDARD\=arm64\ x86_64
    export ARCHS_STANDARD_32_64_BIT\=arm64\ i386\ x86_64
    export ARCHS_STANDARD_32_BIT\=i386
    export ARCHS_STANDARD_64_BIT\=arm64\ x86_64
    export ARCHS_STANDARD_INCLUDING_64_BIT\=arm64\ x86_64
    export ARCHS_UNIVERSAL_IPHONE_OS\=arm64\ i386\ x86_64
    export ASSETCATALOG_COMPILER_APPICON_NAME\=AppIcon
    export ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS\=YES
    export ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME\=AccentColor
    export ASSETCATALOG_FILTER_FOR_DEVICE_MODEL\=iPhone16,1
    export ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION\=17.0
    export ASSETCATALOG_FILTER_FOR_THINNING_DEVICE_CONFIGURATION\=iPhone16,1
    export AUTOMATICALLY_MERGE_DEPENDENCIES\=NO
    export AVAILABLE_PLATFORMS\=appletvos\ appletvsimulator\ driverkit\ iphoneos\ iphonesimulator\ macosx\ watchos\ watchsimulator
    export BITCODE_GENERATION_MODE\=marker
    export BUILD_ACTIVE_RESOURCES_ONLY\=YES
    export BUILD_COMPONENTS\=headers\ build
    export BUILD_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products
    export BUILD_LIBRARY_FOR_DISTRIBUTION\=NO
    export BUILD_ROOT\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products
    export BUILD_STYLE\=
    export BUILD_VARIANTS\=normal
    export BUILT_PRODUCTS_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/hermes-engine
    export BUNDLE_CONTENTS_FOLDER_PATH_deep\=Contents/
    export BUNDLE_EXECUTABLE_FOLDER_NAME_deep\=MacOS
    export BUNDLE_EXTENSIONS_FOLDER_PATH\=Extensions
    export BUNDLE_FORMAT\=shallow
    export BUNDLE_FRAMEWORKS_FOLDER_PATH\=Frameworks
    export BUNDLE_PLUGINS_FOLDER_PATH\=PlugIns
    export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH\=PrivateHeaders
    export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH\=Headers
    export CACHE_ROOT\=/var/folders/5l/y80kyhh93kl22_mbytwl_hg40000gq/C/com.apple.DeveloperTools/15.0-15A240d/Xcode
    export CCHROOT\=/var/folders/5l/y80kyhh93kl22_mbytwl_hg40000gq/C/com.apple.DeveloperTools/15.0-15A240d/Xcode
    export CHMOD\=/bin/chmod
    export CHOWN\=/usr/sbin/chown
    export CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED\=YES
    export CLANG_ANALYZER_NONNULL\=YES
    export CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION\=YES_AGGRESSIVE
    export CLANG_COMPILE_CACHE_PATH\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/CompilationCache.noindex
    export CLANG_CXX_LANGUAGE_STANDARD\=c++20
    export CLANG_CXX_LIBRARY\=compiler-default
    export CLANG_ENABLE_EXPLICIT_MODULES\=NO
    export CLANG_ENABLE_MODULES\=YES
    export CLANG_ENABLE_OBJC_ARC\=YES
    export CLANG_ENABLE_OBJC_WEAK\=NO
    export CLANG_MODULES_BUILD_SESSION_FILE\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation
    export CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING\=YES
    export CLANG_WARN_BOOL_CONVERSION\=YES
    export CLANG_WARN_COMMA\=YES
    export CLANG_WARN_CONSTANT_CONVERSION\=YES
    export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS\=YES
    export CLANG_WARN_DIRECT_OBJC_ISA_USAGE\=YES_ERROR
    export CLANG_WARN_DOCUMENTATION_COMMENTS\=YES
    export CLANG_WARN_EMPTY_BODY\=YES
    export CLANG_WARN_ENUM_CONVERSION\=YES
    export CLANG_WARN_INFINITE_RECURSION\=YES
    export CLANG_WARN_INT_CONVERSION\=YES
    export CLANG_WARN_NON_LITERAL_NULL_CONVERSION\=YES
    export CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF\=YES
    export CLANG_WARN_OBJC_LITERAL_CONVERSION\=YES
    export CLANG_WARN_OBJC_ROOT_CLASS\=YES_ERROR
    export CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER\=NO
    export CLANG_WARN_RANGE_LOOP_ANALYSIS\=YES
    export CLANG_WARN_STRICT_PROTOTYPES\=YES
    export CLANG_WARN_SUSPICIOUS_MOVE\=YES
    export CLANG_WARN_UNGUARDED_AVAILABILITY\=YES_AGGRESSIVE
    export CLANG_WARN_UNREACHABLE_CODE\=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH\=YES
    export CLASS_FILE_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/JavaClasses
    export CLEAN_PRECOMPS\=YES
    export CLONE_HEADERS\=NO
    export CODESIGNING_FOLDER_PATH\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/hermes-engine/
    export CODE_SIGNING_ALLOWED\=NO
    export CODE_SIGNING_REQUIRED\=YES
    export CODE_SIGN_CONTEXT_CLASS\=XCiPhoneSimulatorCodeSignContext
    export CODE_SIGN_IDENTITY\=-
    export CODE_SIGN_INJECT_BASE_ENTITLEMENTS\=YES
    export COLOR_DIAGNOSTICS\=NO
    export COMBINE_HIDPI_IMAGES\=NO
    export COMPILER_INDEX_STORE_ENABLE\=Default
    export COMPOSITE_SDK_DIRS\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/CompositeSDKs
    export COMPRESS_PNG_FILES\=YES
    export CONFIGURATION\=Release
    export CONFIGURATION_BUILD_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/hermes-engine
    export CONFIGURATION_TEMP_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator
    export COPYING_PRESERVES_HFS_DATA\=NO
    export COPY_HEADERS_RUN_UNIFDEF\=NO
    export COPY_PHASE_STRIP\=NO
    export CORRESPONDING_DEVICE_PLATFORM_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
    export CORRESPONDING_DEVICE_PLATFORM_NAME\=iphoneos
    export CORRESPONDING_DEVICE_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk
    export CORRESPONDING_DEVICE_SDK_NAME\=iphoneos17.0
    export CP\=/bin/cp
    export CREATE_INFOPLIST_SECTION_IN_BINARY\=NO
    export CURRENT_ARCH\=undefined_arch
    export CURRENT_VARIANT\=normal
    export DEAD_CODE_STRIPPING\=YES
    export DEBUGGING_SYMBOLS\=YES
    export DEBUG_INFORMATION_FORMAT\=dwarf-with-dsym
    export DEFAULT_COMPILER\=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_DEXT_INSTALL_PATH\=/System/Library/DriverExtensions
    export DEFAULT_KEXT_INSTALL_PATH\=/System/Library/Extensions
    export DEFINES_MODULE\=NO
    export DEPLOYMENT_LOCATION\=NO
    export DEPLOYMENT_POSTPROCESSING\=NO
    export DEPLOYMENT_TARGET_SETTING_NAME\=IPHONEOS_DEPLOYMENT_TARGET
    export DEPLOYMENT_TARGET_SUGGESTED_VALUES\=12.0\ 12.1\ 12.2\ 12.3\ 12.4\ 13.0\ 13.1\ 13.2\ 13.3\ 13.4\ 13.5\ 13.6\ 14.0\ 14.1\ 14.2\ 14.3\ 14.4\ 14.5\ 14.6\ 14.7\ 15.0\ 15.1\ 15.2\ 15.3\ 15.4\ 15.5\ 15.6\ 16.0\ 16.1\ 16.2\ 16.3\ 16.4\ 16.5\ 16.6\ 17.0
    export DERIVED_FILES_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/DerivedSources
    export DERIVED_FILE_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/DerivedSources
    export DERIVED_SOURCES_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/DerivedSources
    export DEVELOPER_APPLICATIONS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED\=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_LIBRARY_DIR\=/Applications/Xcode.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE\=en
    export DIFF\=/usr/bin/diff
    export DONT_GENERATE_INFOPLIST_FILE\=NO
    export DO_HEADER_SCANNING_IN_JAM\=NO
    export DSTROOT\=/tmp/Pods.dst
    export DT_TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME\=.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT\=NO
    export DWARF_DSYM_FOLDER_PATH\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/hermes-engine
    export DYNAMIC_LIBRARY_EXTENSION\=dylib
    export EAGER_LINKING\=NO
    export EFFECTIVE_PLATFORM_NAME\=-iphonesimulator
    export EMBEDDED_CONTENT_CONTAINS_SWIFT\=NO
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE\=NO
    export ENABLE_APP_SANDBOX\=NO
    export ENABLE_BITCODE\=NO
    export ENABLE_CODE_COVERAGE\=YES
    export ENABLE_DEFAULT_HEADER_SEARCH_PATHS\=YES
    export ENABLE_DEFAULT_SEARCH_PATHS\=YES
    export ENABLE_HARDENED_RUNTIME\=NO
    export ENABLE_HEADER_DEPENDENCIES\=YES
    export ENABLE_NS_ASSERTIONS\=NO
    export ENABLE_ON_DEMAND_RESOURCES\=NO
    export ENABLE_PREVIEWS\=NO
    export ENABLE_STRICT_OBJC_MSGSEND\=YES
    export ENABLE_TESTABILITY\=NO
    export ENABLE_TESTING_SEARCH_PATHS\=NO
    export ENABLE_USER_SCRIPT_SANDBOXING\=NO
    export ENABLE_XOJIT_PREVIEWS\=NO
    export ENTITLEMENTS_DESTINATION\=__entitlements
    export ENTITLEMENTS_REQUIRED\=YES
    export EXCLUDED_ARCHS\=i386
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS\=.DS_Store\ .svn\ .git\ .hg\ CVS
    export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES\=\*.nib\ \*.lproj\ \*.framework\ \*.gch\ \*.xcode\*\ \*.xcassets\ \(\*\)\ .DS_Store\ CVS\ .svn\ .git\ .hg\ \*.pbproj\ \*.pbxproj
    export FILE_LIST\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects/LinkFileList
    export FIXED_FILES_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/FixedFiles
    export FRAMEWORK_SEARCH_PATHS\=\ \"/Users/louis.zawadzki/MyApp/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal\"\ \"/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates/hermes-engine/Pre-built\"
    export FRAMEWORK_VERSION\=A
    export FUSE_BUILD_PHASES\=YES
    export FUSE_BUILD_SCRIPT_PHASES\=NO
    export GCC3_VERSION\=3.3
    export GCC_C_LANGUAGE_STANDARD\=gnu11
    export GCC_NO_COMMON_BLOCKS\=YES
    export GCC_OBJC_LEGACY_DISPATCH\=YES
    export GCC_PFE_FILE_C_DIALECTS\=c\ objective-c\ c++\ objective-c++
    export GCC_PREPROCESSOR_DEFINITIONS\=POD_CONFIGURATION_RELEASE\=1\ \ COCOAPODS\=1
    export GCC_TREAT_WARNINGS_AS_ERRORS\=NO
    export GCC_VERSION\=com.apple.compilers.llvm.clang.1_0
    export GCC_VERSION_IDENTIFIER\=com_apple_compilers_llvm_clang_1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION\=YES
    export GCC_WARN_ABOUT_RETURN_TYPE\=YES_ERROR
    export GCC_WARN_UNDECLARED_SELECTOR\=YES
    export GCC_WARN_UNINITIALIZED_AUTOS\=YES_AGGRESSIVE
    export GCC_WARN_UNUSED_FUNCTION\=YES
    export GCC_WARN_UNUSED_VARIABLE\=YES
    export GENERATED_MODULEMAP_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator
    export GENERATE_INFOPLIST_FILE\=NO
    export GENERATE_INTERMEDIATE_TEXT_BASED_STUBS\=YES
    export GENERATE_MASTER_OBJECT_FILE\=NO
    export GENERATE_PKGINFO_FILE\=NO
    export GENERATE_PROFILING_CODE\=NO
    export GENERATE_TEXT_BASED_STUBS\=NO
    export GID\=20
    export GROUP\=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT\=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES\=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS\=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS\=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES\=YES
    export HEADERMAP_USES_VFS\=NO
    export HEADER_SEARCH_PATHS\=\ \"/Users/louis.zawadzki/MyApp/ios/Pods/Headers/Private\"\ \"/Users/louis.zawadzki/MyApp/ios/Pods/Headers/Private/hermes-engine\"\ \"/Users/louis.zawadzki/MyApp/ios/Pods/Headers/Public\"\ \"/Users/louis.zawadzki/MyApp/ios/Pods/Headers/Public/hermes-engine\"
    export HIDE_BITCODE_SYMBOLS\=YES
    export HOME\=/Users/louis.zawadzki
    export HOST_ARCH\=arm64
    export HOST_PLATFORM\=macosx
    export ICONV\=/usr/bin/iconv
    export INFOPLIST_ENABLE_CFBUNDLEICONS_MERGE\=YES
    export INFOPLIST_EXPAND_BUILD_SETTINGS\=YES
    export INFOPLIST_OUTPUT_FORMAT\=binary
    export INFOPLIST_PREPROCESS\=NO
    export INLINE_PRIVATE_FRAMEWORKS\=NO
    export INSTALLHDRS_COPY_PHASE\=NO
    export INSTALLHDRS_SCRIPT_PHASE\=NO
    export INSTALL_DIR\=/tmp/Pods.dst
    export INSTALL_GROUP\=staff
    export INSTALL_MODE_FLAG\=u+w,go-w,a+rX
    export INSTALL_OWNER\=louis.zawadzki
    export INSTALL_ROOT\=/tmp/Pods.dst
    export IPHONEOS_DEPLOYMENT_TARGET\=13.4
    export IS_UNOPTIMIZED_BUILD\=NO
    export JAVAC_DEFAULT_FLAGS\=-J-Xms64m\ -J-XX:NewSize\=4M\ -J-Dfile.encoding\=UTF8
    export JAVA_APP_STUB\=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES\=YES
    export JAVA_ARCHIVE_TYPE\=JAR
    export JAVA_COMPILER\=/usr/bin/javac
    export JAVA_FRAMEWORK_RESOURCES_DIRS\=Resources
    export JAVA_JAR_FLAGS\=cv
    export JAVA_SOURCE_SUBDIR\=.
    export JAVA_USE_DEPENDENCIES\=YES
    export JAVA_ZIP_FLAGS\=-urg
    export JIKES_DEFAULT_FLAGS\=+E\ +OLDCSO
    export KEEP_PRIVATE_EXTERNS\=NO
    export LD_DEPENDENCY_INFO_FILE\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal/undefined_arch/hermes-engine_dependency_info.dat
    export LD_EXPORT_SYMBOLS\=YES
    export LD_GENERATE_MAP_FILE\=NO
    export LD_MAP_FILE_PATH\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/hermes-engine-LinkMap-normal-undefined_arch.txt
    export LD_NO_PIE\=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER\=YES
    export LD_RUNPATH_SEARCH_PATHS\=\ @executable_path/Frameworks
    export LEGACY_DEVELOPER_DIR\=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LEX\=lex
    export LIBRARY_DEXT_INSTALL_PATH\=/Library/DriverExtensions
    export LIBRARY_FLAG_NOSPACE\=YES
    export LIBRARY_KEXT_INSTALL_PATH\=/Library/Extensions
    export LINKER_DISPLAYS_MANGLED_NAMES\=NO
    export LINK_FILE_LIST_normal_arm64\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal/arm64/hermes-engine.LinkFileList
    export LINK_FILE_LIST_normal_x86_64\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal/x86_64/hermes-engine.LinkFileList
    export LINK_OBJC_RUNTIME\=YES
    export LINK_WITH_STANDARD_LIBRARIES\=YES
    export LLVM_TARGET_TRIPLE_OS_VERSION\=ios13.4
    export LLVM_TARGET_TRIPLE_SUFFIX\=-simulator
    export LLVM_TARGET_TRIPLE_VENDOR\=apple
    export LOCALIZATION_EXPORT_SUPPORTED\=YES
    export LOCALIZATION_PREFERS_STRING_CATALOGS\=NO
    export LOCALIZED_STRING_MACRO_NAMES\=NSLocalizedString\ CFCopyLocalizedString
    export LOCALIZED_STRING_SWIFTUI_SUPPORT\=YES
    export LOCAL_ADMIN_APPS_DIR\=/Applications/Utilities
    export LOCAL_APPS_DIR\=/Applications
    export LOCAL_DEVELOPER_DIR\=/Library/Developer
    export LOCAL_LIBRARY_DIR\=/Library
    export LOCROOT\=/Users/louis.zawadzki/MyApp/ios/Pods
    export LOCSYMROOT\=/Users/louis.zawadzki/MyApp/ios/Pods
    export MAC_OS_X_PRODUCT_BUILD_VERSION\=22G91
    export MAC_OS_X_VERSION_ACTUAL\=130502
    export MAC_OS_X_VERSION_MAJOR\=130000
    export MAC_OS_X_VERSION_MINOR\=130500
    export MAKE_MERGEABLE\=NO
    export MERGEABLE_LIBRARY\=NO
    export MERGED_BINARY_TYPE\=none
    export MERGE_LINKED_LIBRARIES\=NO
    export METAL_LIBRARY_FILE_BASE\=default
    export METAL_LIBRARY_OUTPUT_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/hermes-engine/
    export MODULE_CACHE_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
    export MTL_ENABLE_DEBUG_INFO\=NO
    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/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects
    export OBJECT_FILE_DIR_normal\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal
    export OBJROOT\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex
    export ONLY_ACTIVE_ARCH\=NO
    export OS\=MACOS
    export OSAC\=/usr/bin/osacompile
    export OTHER_CFLAGS\=\ -DRN_FABRIC_ENABLED
    export OTHER_CPLUSPLUSFLAGS\=\ -DRN_FABRIC_ENABLED\ -DRN_FABRIC_ENABLED
    export OTHER_LDFLAGS\=\ -Wl\ -ld_classic
    export PASCAL_STRINGS\=YES
    export PATH\=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/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/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal/undefined_arch
    export PER_VARIANT_OBJECT_FILE_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal
    export PKGINFO_FILE_PATH\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.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\=21A325
    export PLIST_FILE_OUTPUT_FORMAT\=binary
    export PODS_BUILD_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products
    export PODS_CONFIGURATION_BUILD_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator
    export PODS_DEVELOPMENT_LANGUAGE\=en
    export PODS_ROOT\=/Users/louis.zawadzki/MyApp/ios/Pods
    export PODS_TARGET_SRCROOT\=/Users/louis.zawadzki/MyApp/ios/Pods/hermes-engine
    export PODS_XCFRAMEWORKS_BUILD_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR\=YES
    export PRECOMP_DESTINATION_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS\=NO
    export PRODUCT_BUNDLE_IDENTIFIER\=org.cocoapods.hermes-engine
    export PRODUCT_MODULE_NAME\=hermes_engine
    export PRODUCT_NAME\=hermes-engine
    export PRODUCT_SETTINGS_PATH\=
    export PROFILING_CODE\=NO
    export PROJECT\=Pods
    export PROJECT_DERIVED_FILE_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/DerivedSources
    export PROJECT_DIR\=/Users/louis.zawadzki/MyApp/ios/Pods
    export PROJECT_FILE_PATH\=/Users/louis.zawadzki/MyApp/ios/Pods/Pods.xcodeproj
    export PROJECT_NAME\=Pods
    export PROJECT_TEMP_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build
    export PROJECT_TEMP_ROOT\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex
    export REACT_NATIVE_PATH\=/Users/louis.zawadzki/MyApp/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/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/ResourceManagerResources
    export REZ_OBJECTS_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/ResourceManagerResources/Objects
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES\=NO
    export SCRIPT_INPUT_FILE_COUNT\=0
    export SCRIPT_INPUT_FILE_LIST_COUNT\=0
    export SCRIPT_OUTPUT_FILE_COUNT\=0
    export SCRIPT_OUTPUT_FILE_LIST_COUNT\=0
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
    export SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
    export SDK_DIR_iphonesimulator\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
    export SDK_DIR_iphonesimulator17_0\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
    export SDK_NAME\=iphonesimulator17.0
    export SDK_NAMES\=iphonesimulator17.0
    export SDK_PRODUCT_BUILD_VERSION\=21A325
    export SDK_STAT_CACHE_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData
    export SDK_STAT_CACHE_ENABLE\=YES
    export SDK_STAT_CACHE_PATH\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.0-21A325-9f995cea1212cde75317d7d3cd2045e2.sdkstatcache
    export SDK_VERSION\=17.0
    export SDK_VERSION_ACTUAL\=170000
    export SDK_VERSION_MAJOR\=170000
    export SDK_VERSION_MINOR\=170000
    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/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/hermes-engine/DerivedSources
    export SHARED_PRECOMPS_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/PrecompiledHeaders
    export SKIP_INSTALL\=YES
    export SOURCE_ROOT\=/Users/louis.zawadzki/MyApp/ios/Pods
    export SRCROOT\=/Users/louis.zawadzki/MyApp/ios/Pods
    export STRINGSDATA_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal/undefined_arch
    export STRINGSDATA_ROOT\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.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\=all
    export STRIP_SWIFT_SYMBOLS\=YES
    export SUPPORTED_DEVICE_FAMILIES\=1,2
    export SUPPORTED_PLATFORMS\=iphoneos\ iphonesimulator
    export SUPPORTS_TEXT_BASED_API\=NO
    export SWIFT_COMPILATION_MODE\=wholemodule
    export SWIFT_EMIT_LOC_STRINGS\=NO
    export SWIFT_OPTIMIZATION_LEVEL\=-O
    export SWIFT_PLATFORM_TARGET_PREFIX\=ios
    export SWIFT_RESPONSE_FILE_PATH_normal_arm64\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal/arm64/hermes-engine.SwiftFileList
    export SWIFT_RESPONSE_FILE_PATH_normal_x86_64\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Objects-normal/x86_64/hermes-engine.SwiftFileList
    export SWIFT_VERSION\=5.0
    export SYMROOT\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/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\=hermes-engine
    export TARGET_BUILD_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Products/Release-iphonesimulator/hermes-engine
    export TARGET_DEVICE_IDENTIFIER\=3E5009B7-9686-4D3A-95CC-739839803B61
    export TARGET_DEVICE_MODEL\=iPhone16,1
    export TARGET_DEVICE_OS_VERSION\=17.0
    export TARGET_DEVICE_PLATFORM_NAME\=iphonesimulator
    export TARGET_NAME\=hermes-engine
    export TARGET_TEMP_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build
    export TEMP_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build
    export TEMP_FILES_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build
    export TEMP_FILE_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build
    export TEMP_ROOT\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/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.0.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\=503
    export UNINSTALLED_PRODUCTS_DIR\=/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/UninstalledProducts
    export UNSTRIPPED_PRODUCT\=NO
    export USER\=louis.zawadzki
    export USER_APPS_DIR\=/Users/louis.zawadzki/Applications
    export USER_LIBRARY_DIR\=/Users/louis.zawadzki/Library
    export USE_DYNAMIC_NO_PIC\=YES
    export USE_HEADERMAP\=YES
    export USE_HEADER_SYMLINKS\=NO
    export USE_HERMES\=true
    export USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES\=YES
    export VALIDATE_DEVELOPMENT_ASSET_PATHS\=YES_ERROR
    export VALIDATE_PRODUCT\=YES
    export VALID_ARCHS\=arm64\ arm64e\ i386\ x86_64
    export VERBOSE_PBXCP\=NO
    export VERSION_INFO_BUILDER\=louis.zawadzki
    export VERSION_INFO_FILE\=hermes-engine_vers.c
    export VERSION_INFO_STRING\=\"@\(\#\)PROGRAM:hermes-engine\ \ 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\=15A240d
    export XCODE_VERSION_ACTUAL\=1500
    export XCODE_VERSION_MAJOR\=1500
    export XCODE_VERSION_MINOR\=1500
    export XPCSERVICES_FOLDER_PATH\=/XPCServices
    export YACC\=yacc
    export arch\=undefined_arch
    export variant\=normal
    /bin/sh -c /Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/RN0730RC1-cibslnlirfqtjbbmtbesrpffoeus/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/hermes-engine.build/Script-46EB2E00020010.sh

Node found at: /Users/louis.zawadzki/.volta/tools/image/node/18.16.1/bin/node
Preparing the final location
Extracting the tarball
tar: Error opening archive: Failed to open '/Users/louis.zawadzki/MyApp/ios/Pods/../../node_modules/react-native/sdks/downloads/hermes-ios-0.73.0-rc.1-Release.tar.gz'
node:child_process:960
    throw err;
    ^

Error: Command failed: tar -xf /Users/louis.zawadzki/MyApp/ios/Pods/../../node_modules/react-native/sdks/downloads/hermes-ios-0.73.0-rc.1-Release.tar.gz -C hermes-engine
tar: Error opening archive: Failed to open '/Users/louis.zawadzki/MyApp/ios/Pods/../../node_modules/react-native/sdks/downloads/hermes-ios-0.73.0-rc.1-Release.tar.gz'

    at checkExecSyncError (node:child_process:885:11)
    at execSync (node:child_process:957:15)
    at replaceHermesConfiguration (/Users/louis.zawadzki/MyApp/node_modules/react-native/sdks/hermes-engine/utils/replace_hermes_version.js:64:3)
    at main (/Users/louis.zawadzki/MyApp/node_modules/react-native/sdks/hermes-engine/utils/replace_hermes_version.js:79:3)
    at Object.<anonymous> (/Users/louis.zawadzki/MyApp/node_modules/react-native/sdks/hermes-engine/utils/replace_hermes_version.js:106:1)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12) {
  status: 1,
  signal: null,
  output: [
    null,
    Buffer(0) [Uint8Array] [],
    Buffer(209) [Uint8Array] [
      116,  97, 114,  58,  32,  69, 114, 114, 111, 114,  32, 111,
      112, 101, 110, 105, 110, 103,  32,  97, 114,  99, 104, 105,
      118, 101,  58,  32,  70,  97, 105, 108, 101, 100,  32, 116,
      111,  32, 111, 112, 101, 110,  32,  39,  47,  85, 115, 101,
      114, 115,  47, 108, 111, 117, 105, 115,  46, 122,  97, 119,
       97, 100, 122, 107, 105,  47, 103, 111,  47, 115, 114,  99,
       47, 103, 105, 116, 104, 117,  98,  46,  99, 111, 109,  47,
       68,  97, 116,  97,  68, 111, 103,  47, 109, 111,  98, 105,
      108, 101,  47,  97,
      ... 109 more items
    ]
  ],
  pid: 9810,
  stdout: Buffer(0) [Uint8Array] [],
  stderr: Buffer(209) [Uint8Array] [
    116,  97, 114,  58,  32,  69, 114, 114, 111, 114,  32, 111,
    112, 101, 110, 105, 110, 103,  32,  97, 114,  99, 104, 105,
    118, 101,  58,  32,  70,  97, 105, 108, 101, 100,  32, 116,
    111,  32, 111, 112, 101, 110,  32,  39,  47,  85, 115, 101,
    114, 115,  47, 108, 111, 117, 105, 115,  46, 122,  97, 119,
     97, 100, 122, 107, 105,  47, 103, 111,  47, 115, 114,  99,
     47, 103, 105, 116, 104, 117,  98,  46,  99, 111, 109,  47,
     68,  97, 116,  97,  68, 111, 103,  47, 109, 111,  98, 105,
    108, 101,  47,  97,
    ... 109 more items
  ]
}

Node.js v18.16.1
Command PhaseScriptExecution failed with a nonzero exit code

Command PhaseScriptExecution failed with a nonzero exit code

Tested on XCode 14.3.1 and XCode 15.

The download folder in node_modules/react-native/sdks does not exist anymore, it is deleted after running yarn add and not added again when running pod install, probably because the hermes pod is already installed.

Running rm -rf ios/Pods then pod install fixes the build.

My guess is that the hermes download should not be stored in node_modules, but (if possible) in ios/Pods as it is managed by Cocoapods.

@louiszawadzki louiszawadzki added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Oct 6, 2023
@github-actions github-actions bot added Platform: iOS iOS applications. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Oct 6, 2023
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

dmytrorykun added a commit to dmytrorykun/react-native that referenced this issue Oct 9, 2023
Summary:
Node package managers may purge or recreate `node_modules/react-native` when adding/removenf project dependencies. Storing hermes iOS artifacts inside `node_modules/react-native/sdks` is not reliable.
This diff moves those artifacts to `Pods/hermes-engine-artifacts`.
Should fix facebook#39903
Changelog: [Internal]

Differential Revision: D50081559
dmytrorykun added a commit to dmytrorykun/react-native that referenced this issue Oct 9, 2023
Summary:

Node package managers may purge or recreate `node_modules/react-native` when adding/removenf project dependencies. Storing hermes iOS artifacts inside `node_modules/react-native/sdks` is not reliable.
This diff moves those artifacts to `Pods/hermes-engine-artifacts`.
Should fix facebook#39903
Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D50081559
huntie pushed a commit that referenced this issue Oct 11, 2023
Summary:
Pull Request resolved: #40733

Node package managers may purge or recreate `node_modules/react-native` when adding/removenf project dependencies. Storing hermes iOS artifacts inside `node_modules/react-native/sdks` is not reliable.
This diff moves those artifacts to `Pods/hermes-engine-artifacts`.
Should fix #39903
Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D50081559

fbshipit-source-id: a130898e12fb6275cadaef7617bf4b6a09e6487e
Saadnajmi added a commit to microsoft/react-native-macos that referenced this issue Nov 7, 2023
* Set Hermes release version

* bumped packages versions

#publish-packages-to-npm

* Bump react-native-babel-preset to 0.73.18 #publish-packages-to-npm

* Enable native view configs in bridgeless mode in OSS (facebook#39476)

Summary:
Pull Request resolved: facebook#39476

This diff enables native view config interop layer in bridgeless mode by default for OSS.
It also removes redundant `enableNativeViewConfigsInBridgelessMode` JS feature flag.
Changelog: [General][Added] - Native view config interop layer enabled in bridgeless mode.

Reviewed By: luluwu2032

Differential Revision: D49318325

fbshipit-source-id: ea2e38b2ea10637b578d98e38d97eed923498fb3

* Enable Template with Bridgeless (facebook#39661)

Summary:
Pull Request resolved: facebook#39661

Changelog:
[Android][Changed] - Enable Template with Bridgeless

Reviewed By: cortinico

Differential Revision: D49464580

fbshipit-source-id: 26dd8e2a0b9a66421d58f147eed4d2fd28817dc7

* [Hotfix] Remove node engines constraint for normalize-color (facebook#39698)

* Bump CLI to 12.0.0-alpha.16

* bumped packages versions

#publish-packages-to-npm

* Reduce visibility of functions in ReactHostImpl (facebook#39640)

Summary:
Pull Request resolved: facebook#39640

changelog: [internal] internal

Reducing visibility from public to package only for `ReactHostImpl.getDefaultHardwareBackBtnHandler()` since it's only used within package

Reviewed By: mdvacca

Differential Revision: D49612859

fbshipit-source-id: 3c40888da732f33dc046d9363b08119e707f4ea4

* Enable TurboModule interop in Bridgeless Mode (facebook#39687)

Summary:
Pull Request resolved: facebook#39687

Bridgeless mode is releasing in 0.73.

Bridgeless mode isn't stable inside RNTester (in 0.73) without the TurboModule interop layer: T164853040.

**Changes:** Enable the TurboModule interop layer in RNTester (Bridgeless Mode).

**Urgency:** This will unblock the 0.73.

Changelog: [General][Added] - Enable TurboModule interop in Bridgeless mode

Reviewed By: fkgozali, dmytrorykun, luluwu2032

Differential Revision: D49653919

fbshipit-source-id: a4a09a99544c2ef8713484dbeab5cb04f29256cc

* Export Commands and Constants only if native view config interop is enabled (facebook#39696)

Summary:
Pull Request resolved: facebook#39696

`Commands` and `Constants` should be set in native only if component data is instantiated via native view config interop layer.
Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D49684166

fbshipit-source-id: ceaa29c2ed3336aa6e21a116a3f5f94e03c225c1

* Bump CLI to 12.0.0-alpha.17

* Bump package versions

#publish-packages-to-npm

* Update Xcode 15 patches to be more robust (facebook#39710)

Summary:
Pull Request resolved: facebook#39710

Last week Apple released Xcode 15, which required us to ship a workaround for the new linker.
Unfortunately, the previous fix was not good enough and there were some edge cases that were not covered.
For example, in some occasions the flags are read as an array and the `-Wl` and the `-ld_classic` flags were separated and not properly removed when moving from Xcode 15 to Xcpde 14.3.1.

This change fixes those edge cases, with a more robust solution where:
- We convert the flags to a string.
- We trim the string and the values properly.
- We add the flags when running `pod install` with Xcode 15 as the default iOS toolchain.
- We remove the flags when running `pod install` with Xcode <15 as the default iOS toolchain.

## Changelog:
[Internal] - Make the Xcode 15 workaround more robust.

Reviewed By: dmytrorykun

Differential Revision: D49748844

fbshipit-source-id: 34976d148f123c5aacba6487a500874bb938fe99

* Sync debugger-frontend

Summary:
Sync latest `debugger-frontend` artifacts, based on motiz88/rn-chrome-devtools-frontend#12.

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D49502838

fbshipit-source-id: 25805066670ac35ec976dc820a73a722ee182dd2

* Mark initHybrid as @JvmStatic (facebook#39755)

Summary:
Pull Request resolved: facebook#39755

The goal of this diff is to fix:
```
JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoSuchMethodError: no static or non-static method
"Lcom/facebook/react/jscexecutor/JSCExecutor;.initHybrid(Lcom/facebook/react/bridge/ReadableNativeMap;)Lcom/facebook/jni/HybridData;"

```

changelog: [internal] internal

Reviewed By: luluwu2032

Differential Revision: D49831595

fbshipit-source-id: 9ce22cdccdd02af74edb27be2df72a469d3166c9

* Bump package versions

#publish-packages-to-npm

* Bump package versions (dependant packages)

#publish-packages-to-npm

* [0.73.0-rc.0] Bump version numbers

* Fix typings for ReactNativeVersion.js

This is an eager cherry pick of facebook#39784 for `0.73-stable`.

* Revert "[0.73.0-rc.0] Bump version numbers"

This reverts commit 6b9cf50.

* [RN][CI] Make the Choose CI Job run also on tags (facebook#39774)

* [0.73.0-rc.0] Bump version numbers

* Revert "Fix typings for ReactNativeVersion.js"

This reverts commit b6c0703.

* Fix typings for ReactNativeVersionCheck

Applies correct fix for `_formatVersion` misalignment — based on facebook#36657.

* Fix start command exit behaviour

This is an eager cherry pick of facebook#39788 for `0.73-stable`.

* Bump package versions

#publish-packages-to-npm

* [0.73.0-rc.1] Bump version numbers

* Revert "[0.73.0-rc.1] Bump version numbers"

This reverts commit 725b1c9.

* Make jobs required for hermes to run on tagged builds (facebook#39800)

* [0.73.0-rc.1] Bump version numbers

* Fix broken Loading/Refreshing indicator on Android

Summary:
The Loading.../Refreshing... indicator is currently broken on Android.
The reason is related to D42599220
We used to have a Toast shown to users on Android as a fallback, but as the
DevLoadingView is not always loaded as a module in the core package, this ends up in the banner never beign shown to the user (on RN Tester or template apps).

Changelog:
[Android] [Fixed] - Fix broken Loading/Refreshing indicator on Android

Reviewed By: cipolleschi

Differential Revision: D49876757

fbshipit-source-id: 400e002327ebca908e3e7a7f81c5066888ac4e9b

* Remove unneeded write to .version file (facebook#39807)

Summary:
Pull Request resolved: facebook#39807

We used to need this file so that we could read the react native version when [creating Hermes artifacts](facebook@e4b5d3e#diff-78a8a19706dbd2a4425dd72bdab0502ed7a2cef16365ab7030a5a0588927bf47R1507). Originally, that change was introduced [here](facebook@e4b5d3e#diff-78a8a19706dbd2a4425dd72bdab0502ed7a2cef16365ab7030a5a0588927bf47)

Despite the fact that that approach was wrong, as we already have the right version in the package.json which is guaranteed to be present, a lot has changed since then and we don't need that file anymore.

## Changelog:
[Internal] - Remove lines that write a .version file while releasing on npm

Reviewed By: lunaleaps

Differential Revision: D49909718

fbshipit-source-id: bd23d6d73001d0b58bf6b0321ed6d4ceb3523e7a

* Default to native view configs in bridged mode and to static view configs in bridgeless mode (facebook#39704)

Summary:
Pull Request resolved: facebook#39704

Default to native view configs in bridged mode and to static view configs in bridgeless mode.
Remove `setRuntimeConfigProvider` calls from RNTester and from the Template.
Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D49687252

fbshipit-source-id: 140e1c510ba3fbc153978b59c8bb4b4e35bc7571

* Fix Gemfile, setting Active support to < 7.1.0 (facebook#39828)

Summary:
Pull Request resolved: facebook#39828

Active Suppert released a new Gem which is incompatible with Cocoapods 1.13.0, the latest release, as they removed a method used by cocoapods.

This fix ensures that we install compatible versions of the Gem.

## Changelog:
[iOS][Fixed] - Set the max version of Active support to 7.0.8

Reviewed By: hoxyq

Differential Revision: D49949782

fbshipit-source-id: 278097502d3a416567cc8c0b90090fee4fb21503

* fix: view flips on RTL with new transform origin changes in Paper arch. (facebook#39803)

Summary:
Fixes - facebook#38626 (comment). Explained the issue [here](facebook#38626 (comment)).

## Changelog:

[IOS] [FIXED] - View flips horizontally in paper arch on RTL

Pull Request resolved: facebook#39803

Test Plan: Run RNTester in Paper mode on iOS

Reviewed By: NickGerleman

Differential Revision: D49952227

Pulled By: lunaleaps

fbshipit-source-id: 7240552e499765859dceea0a0406561cc3a3148f

* [iOS] Deprecate RCTGetMultiplierForContentSizeCategory (facebook#39785)

* Set hermes for Android template project in testing

Summary:
Changelog: [Internal] - Set the hermes value as specified by the test-e2e-local script flag. Right now, the script incorrectly ignores the flag

By default, the template project has `hermesEnabled=true`

Reviewed By: cipolleschi

Differential Revision: D49831355

fbshipit-source-id: 7fb8613fa86f2c6140b7d25b16aeb583e6e26c12

* fix missing sed import

* Update pod for CI

* Update .gitignore for sdks/downloads

* [0.73.0-rc.2] Bump version numbers

* Add --experimental-debugger-frontend flag, restore 0.72 flow as base (facebook#40766)

Summary:
Pull Request resolved: facebook#40766

This changeset allows users to opt into the new debugger frontend experience by passing `--experimental-debugger` to `react-native start`. **We are defaulting this option to `true`** for now, but will continue to evaluate this feature before 0.73 ships. It restores Flipper (via `flipper://`) as the default handling for `/open-debugger` (matching 0.72 behaviour) when this flag is not enabled.

Detailed changes:

- Replaces `enableCustomDebuggerFrontend` experiment in `dev-middleware` with `enableNewDebugger`. The latter now hard-swaps between the Flipper and new launch flows.
    - Removes now-unused switching of `devtoolsFrontendUrl`.
- Implements `deprecated_openFlipperMiddleware` (matching previous RN CLI implementation).
- Disables "`j` to debug" key handler by default.
- Marks "`j` to debug" and `/open-debugger` console logs as experimental.

Changelog:
[Changed][General] Gate new debugger frontend behind `--experimental-debugger` flag, restore Flipper as base launch flow

Reviewed By: motiz88

Differential Revision: D50084590

fbshipit-source-id: 5234634f20110cb7933b1787bd2c86f645411fff

* [0.73] Make sure template is consuming the right buildToolsVersion (facebook#39957)

* Store hermes stable artifacts inside Pods directory (facebook#40733)

Summary:
Pull Request resolved: facebook#40733

Node package managers may purge or recreate `node_modules/react-native` when adding/removenf project dependencies. Storing hermes iOS artifacts inside `node_modules/react-native/sdks` is not reliable.
This diff moves those artifacts to `Pods/hermes-engine-artifacts`.
Should fix facebook#39903
Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D50081559

fbshipit-source-id: a130898e12fb6275cadaef7617bf4b6a09e6487e

* Top-down onLayout events (facebook#39644)

Summary:
Pull Request resolved: facebook#39644

This makes Android Paper/Classic renderer fire `onLayout` events top down, like in Fabric/new Architecture. This gives a much more sane model for using layout events to calculate bottom/right-edge insets.

I was under the impression that Paper in general was bottom-up, but it turns out that is only true for Android and Windows (iOS seems totally deterministic).

This is a behavior change, but to my knowledge was never hit during the Fabric migration, and any JS code already written for both Android and iOS cannot make assumptions here anyways.

Changelog:
[General][Changed] - Make layout events top-down on Android classic renderer

Reviewed By: mdvacca

Differential Revision: D49627996

fbshipit-source-id: 29964b421dd420681d45348c7db16f211a6c087f

* Deterministic onLayout event ordering for iOS Paper (facebook#40748)

Summary:
Pull Request resolved: facebook#40748

The ordering of `onLayout` events is non-deterministic on iOS Paper, due to nodes being added to an `NSHashTable` before iteration, instead of an ordered collection.

We don't do any lookups on the collection, so I think this was chosen over `NSMutableArray` for the sake of `[NSHashTable weakObjectsHashTable]`, to avoid retain/release. Using a collection which does retain/release seems to cause a crash due to double release or similar, so those semantics seem intentional (though I'm not super familiar with the model here).

We can replicate the memory semantics with ordering by using `NSPointerArray` (which is unfortunately not parameterized). This change does that, so we get consistently top-down layout events (matching Fabric, and Android Paper as of D49627996). This lets us use multiple layout events to calculate right/bottom edge insets deterministically.

Changelog:
[iOS][Changed] -  Deterministic onLayout event ordering for iOS Paper

Reviewed By: luluwu2032

Differential Revision: D50093411

fbshipit-source-id: f6a9d5c973b97aede879baa8b952cc1be2447f28

* Remove code to support bottom-up layout events in horizontal RTL (facebook#39646)

Summary:
Pull Request resolved: facebook#39646

We can dramatically simplify this code and remove quirks/hacks, now that we can assume layout events are always fired top down.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D49628669

fbshipit-source-id: 7de5bbc4597eba1c59aaa7672c70e76d2786c7ef

* Fix iOS Paper Scroll Event RTL check (facebook#40751)

Summary:
Pull Request resolved: facebook#40751

In D48379915 I fixed inverted `contentOffset` in `onScroll` events on iOS. I thought I tested on Paper, but I think this was during a period where the Paper route in Catalyst was actually launching Fabric (oops).

In Paper, at least under `forceRTL` and English, `[UIApplication sharedApplication].userInterfaceLayoutDirection` is not set to RTL. We instead have a per-view `reactLayoutDirection` we should be reading.

This sort of thing isn't currently set on Fabric, which checks application-level RTL. This seems... not right with being able to set `direction` in a subtree context, but Android does the same thing, and that would take some greater changes.

Changelog:
[iOS][Fixed] - Fix iOS Paper Scroll Event RTL check

Reviewed By: luluwu2032

Differential Revision: D50098310

fbshipit-source-id: e321fca7b2f7983e903e23237bc2d604c72f98a3

* Disable --experimental-debugger by default (facebook#40795)

Summary:
Pull Request resolved: facebook#40795

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D50178494

fbshipit-source-id: b833b6accadd2902d97a45e030cd48d1b62ac438

* make runtime reference thread safe on tickleJs call

Summary:
The reference to runtime assumes the queue will ensure references to runtime are valid when invoked. This
isn't the case if you create a breakpoint, Hermes hit that breakpoint and your refresh the app. This consistently
will crash the app.

The fix is to not assument this, similar to ReactCommon/react/runtime/hermes/HermesInstance.cpp

Reviewed By: javache

Differential Revision: D50225678

fbshipit-source-id: b45cae1f5f687bc8c699fd74b187376a547012c5

* Run all the tests when not on a PR

Summary:
## Changelog:
[Internal] - Run all the tests in CI when not on a PR

Reviewed By: cortinico

Differential Revision: D50220596

fbshipit-source-id: be1a30d713e9d427858cf22bd3ca9549ad513057

* Add "Hermes only" to open debugger key prompt

Summary: Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D50327180

fbshipit-source-id: 6ee08fadd313828ddbc7702d5b3b1174a91b1ac1

* Refactors InspectorProxy to compare pathname portion of url passed in… (facebook#41005)

Summary:
… request to local pathname comparator variables to fix issue with other rightward elements of url such as query or fragment entering the comparison and causing 404 errors for key debugging routes.

A change in Chromium appended the query "?for_tabs" to the /json/list request made by Chrome DevTools to find remote debugger targets.

The current comparison in InspectorProxy.js compares the entire node IncomingMessage url field to the local pathname constants. The issue arises as url can also contain the query and fragment portions so the original comparison of "/json/list" === "/json/list" which resolved as true would become "/json/list?for_tabs" === "/json/list" and evaluate to false ultimately resulting in a 404 for the request.

In summary, all these changes/issues caused remote debugging of Hermes code in React Native apps to become unavailable, greatly impacting developer experience.

## Changelog:

[GENERAL] [FIXED] JS Debugging: Fix inspector-proxy to allow for DevTools requests with query strings

Pull Request resolved: facebook#41005

Reviewed By: NickGerleman

Differential Revision: D50342265

Pulled By: robhogan

fbshipit-source-id: a65f2908f0bea9fc15e1e3e4e6d31a3b9598e81f

* Make sure buildConfig is turned on for all the 3rd party libraries (facebook#40939)

Summary:
Pull Request resolved: facebook#40939

Currently some libs on RN 0.73 are broken as the default for Build Config generation changed
from true to false since AGP 8.x. This reverts the behavior to the old flag.

Closes facebook#40791
Closes facebook#40559

Changelog:
[Internal] [Changed] - Make sure buildConfig is turned on for all the 3rd party libraries

Reviewed By: mdvacca

Differential Revision: D50270382

fbshipit-source-id: 02dcb031c577f65be2f41d9da0334c1b3d89e4c5

* Configure Java toolchains only when executing App configuration (facebook#40757)

Summary:
Fix facebook#40560

## Changelog:

[ANDROID] [FIXED] - Ensure that `configureJavaToolChains` is only executed once during configuration

Pull Request resolved: facebook#40757

Test Plan:
- Create a fresh `react-native@0.73.0-rc.1` project
- Install `react-native-webview`
- Apply [this patch](https://github.com/react-native-webview/react-native-webview/pull/3175/files) for `react-native-webview` (caused by another issue facebook#40559)
- Edit `android/gradle.properties` and set `newArchEnabled` to true
- Build application
- (Expected) Application fail to build
- Apply this PR
- (Expected) Application build successfully

**Additional explanation:**

According to the implementation of `configureJavaToolChains`, all the subprojects (both the app and the libraries) will have their toolchains setup in one execution of the method. Therefore, it is okay for the method to be invoked only when configuring the plugin for the app.

On the other hand, invoking the method for more than one time will cause the issue stated in facebook#40560.

Reviewed By: cipolleschi

Differential Revision: D50361871

Pulled By: cortinico

fbshipit-source-id: bd5e18df97988122788d0482dba954e517a0cb5c

* Fix instacrash on bridgeless due to calling showMessage on null instance (facebook#39834)

Summary:
Pull Request resolved: facebook#39834

Bridgeless is instacrashing on fast-refresh. This fixes it.

Changelog:
[Android] [Fixed] - Fix instacrash on bridgeless due to calling showMessage on null instance

Reviewed By: cipolleschi

Differential Revision: D49929822

fbshipit-source-id: a2ce65797abd34d6a3e2b7f2c50d38a62ea8bdea

* Re-introduce FabricViewStateManager interface (facebook#40998)

Summary:
Pull Request resolved: facebook#40998

changelog: [Android] Add back interface FabricViewStateManager to unblock 0.73

I incorrectly deleted FabricViewStateManager in D47993140. This is a breaking change even for old architecture. Let's add it back and mark it as deprected so we can remove it later on.
This interface is not used in react-native anymore.

We are removing FabricViewStateManager because it simply wraps StateWrapper and provides no additional anymore.

Reviewed By: cortinico

Differential Revision: D50318633

fbshipit-source-id: aeb1c66c35018e336339616b564dee6f3156b54b

* Add ExceptionsManagerModule for RNTester (facebook#40767)

Summary:
Pull Request resolved: facebook#40767

Fix the following issue:
```Invariant Violation: TurboModuleRegistry.getEnforcing(...):
'ExceptionsManager' could not be found. Verify that a module by this name is registered in the native
binary.Bridgeless mode: true. TurboModule interop: true. Modules loaded: {"NativeModules":[],"TurboModules":
["PlatformConstants","AppState","SourceCode","BlobModule","WebSocketModule","DevSettings","DevToolsSettingsManager","LogBox","Networking","Appearance","DevLoadingView","DeviceInfo","DeviceEventManager",
"SoundManager","ImageLoader","DialogManagerAndroid","NativeAnimatedModule","I18nManager","AccessibilityInfo","StatusBarManager","StatusBarManager","IntentAndroid","ToastAndroid","ShareModule","Vibration"],
"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","RedBox","BugReporting","HeadlessJsTaskSupport","FrameRateLogger","KeyboardObserver",
"AccessibilityManager","ModalManager","LinkingManager","ActionSheetManager","ExceptionsManager"]}
```

Changelog:
[Android][Changed] - Add Add ExceptionsManagerModule to CoreReactPackage

Reviewed By: cortinico

Differential Revision: D50017783

fbshipit-source-id: 8642bb23bdae50a1e702f5e0586b0ede80007bb1

# Conflicts:
#	packages/rn-tester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterApplication.kt

* Fix compilation warnings introduced by Gradle 8.4 (facebook#39959)

Summary:
Pull Request resolved: facebook#39959

We're still accessing project.buildDir which will be removed in Gradle 9.0
I'm cleaning it up here.

Changelog:
[Internal] [Changed] - Fix compilation warnings introduced by Gradle 8.4

Reviewed By: yungsters

Differential Revision: D50016573

fbshipit-source-id: de7a725f61b503f08991ebf85b9a002cefab221a

* update: fresco 3.0.0 -> 3.1.0 (facebook#41024)

Summary:
- ref: reactwg/react-native-releases#64 (comment)

With react-native@0.73.0-rc.2 and fresco@3.0.0, `dlopen failed: library "libnative-imagetranscoder.so"` error made crash in android. so, I patched fresco version to 3.1.0, so that resolves the crash error according to facebook/fresco#2722 (comment) this comment.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[ANDROID] [FIXED] - b1fccb0 bumped fresco version to 3.1.0.

Pull Request resolved: facebook#41024

Test Plan: after bumping fresco version, error not occurs.

Reviewed By: cipolleschi

Differential Revision: D50359564

Pulled By: cortinico

fbshipit-source-id: d24caecc057bad4d9c94e378422ab18c106a7ee6

# Conflicts:
#	packages/react-native/gradle/libs.versions.toml

* Rename `RCTRootViewFrameDidChangeNotification` as it's not trac… (facebook#39835)

Summary:
…king root view frame changes

Looking through where this was introduced (facebook#37649), it seems the notification went from tracking root view size changes to window size changes. However, it was not renamed. I was using it for root view changes in RN-macOS, which.. I guess I'll refactor. Meanwhile, let's update the name?

## Changelog:

[IOS] [CHANGED] - Rename `RCTRootViewFrameDidChangeNotification` as it's not tracking root view frame changes

Pull Request resolved: facebook#39835

Test Plan: CI should pass

Reviewed By: cipolleschi

Differential Revision: D50173742

Pulled By: javache

fbshipit-source-id: 4651696174c439800984a5e6cf642200bb9c4f3c

* Fix unstable RCTAppDelegate podspec (facebook#41009)

Summary:
Pull Request resolved: facebook#41009

This change should fix [facebook#39971](facebook#39971), computing the relative path from the App path to the pod installation root and using that instead of the absolute path to the `react-native.config.js` file

## Changelog
[Internal] - Stabilize RCTAppDelegate podspec

Reviewed By: cortinico

Differential Revision: D50323710

fbshipit-source-id: e29e62228d08c752e822d7a9ab5b1a2b5dcd6eb4

* Symbolicate unhandled promise rejections (facebook#40914)

Summary:
For a very long time when a promise rejects without an attached catch we get this warning screen without a correct stack trace, only some internal calls to the RN internals.

<img src="https://github.com/facebook/react-native/assets/1634213/75aa7615-ee3e-4229-80d6-1744130de6e5" width="200" />

I created [an issue for discussion](react-native-community/discussions-and-proposals#718) in the react-native-community repo and we figured out it was only a matter of symbolication. While it cannot be done on release without external packages and source maps, at least while developing we can provide a symbolicated stack-trace so developers can better debug the source of rejected promise.

I got the stack trace symbolicated and the correct code frame. I'm missing some help trying to display it in the warning view but at the very least I can now correctly show the line of the error and log the codeframe to the console.
## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[GENERAL] [FIXED] - Show correct stack frame on unhandled promise rejections on development mode.

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: facebook#40914

Test Plan:
I simply created a throwing function on a dummy app, and checked the output of the console and the warning view:

```ts
import React from 'react';
import {SafeAreaView, Text} from 'react-native';

async function throwme() {
  throw new Error('UNHANDLED');
}

function App(): JSX.Element {
  throwme();

  return (
    <SafeAreaView>
      <Text>Throw test</Text>
    </SafeAreaView>
  );
}

export default App;
```

Here is the output

<img src="https://github.com/facebook/react-native/assets/1634213/2c100e4d-618e-4143-8d64-4095e8370f4f" width="200" />

Edit: I got the warning window working properly:

<img src="https://github.com/facebook/react-native/assets/1634213/f02a2568-da3e-4daa-8132-e05cbe591737" width="200" />

Reviewed By: yungsters

Differential Revision: D50324344

Pulled By: javache

fbshipit-source-id: 66850312d444cf1ae5333b493222ae0868d47056

* Align all the pods to 13.4 (facebook#41050)

Summary:
Pull Request resolved: facebook#41050

This change aligns all the podspecs to 13.4, including 3rd party libraries. This should fix facebook#39826

## Changelog
[iOS][Changed] - Align all pods to 13.4

Reviewed By: huntie

Differential Revision: D50405114

fbshipit-source-id: 2d1b50ed8433e8cdc2214eb17e15be6ea81107a1

# Conflicts:
#	packages/react-native/scripts/cocoapods/utils.rb

* Bump SocketRocket to 0.6.1 (facebook#40774)

Summary:
The SocketRocket version was upgraded to 0.6.1 on the 0.72-stable branch but for some reason it was not updated in main, causing a downgrade when running `pod install` with 0.73.0 RC1

Original commit bumping SocketRocket -> facebook@8ce471e

## Changelog:

[IOS] [CHANGED] - Bump SocketRocket to 0.6.1

Pull Request resolved: facebook#40774

Test Plan: Run rntester locally

Reviewed By: cipolleschi

Differential Revision: D50137261

Pulled By: arushikesarwani94

fbshipit-source-id: dfc2760f5d5611881126ad114d8f6ada23630a29

# Conflicts:
#	packages/react-native/React-Core.podspec
#	packages/react-native/React/CoreModules/React-CoreModules.podspec
#	packages/rn-tester/Podfile.lock

* Bump RNTester Cocoapods cache keys after SocketRocket 6.1.0 bump (facebook#40789)

Summary:
Commit 8b88883 broke the Cache for RNTester because the cached version of the pods does not know about the exitence of SocketRocket 6.1.0
Bumping the keys should force a redownload of the cocoapods specs repo

## Changelog:
[Internal] - Bump RNTester cache keys

Pull Request resolved: facebook#40789

Test Plan: CircleCI is green

Reviewed By: GijsWeterings

Differential Revision: D50169281

Pulled By: cipolleschi

fbshipit-source-id: 83e251495bfa43d62384470efe97c5505d76684f

# Conflicts:
#	packages/rn-tester/Podfile.lock

* Revert "Add ExceptionsManagerModule for RNTester (facebook#40767)"

This reverts commit 034d815.

* rewrite RNTesterApplication to kotlin (facebook#39557)

Summary:
Rewrite `RNTesterApplication` to Kotlin as per [Help us Kotlin-ify React Native tests - Round 2](facebook#38825)

## Changelog:

[ANDROID] [CHANGED] - Rewrite RNTesterApplication to Kotlin, add AnnotationTarget property.

Pull Request resolved: facebook#39557

Test Plan:
`yarn && yarn android` ✅

The only thing I'm kinda unsure of is whether `AnnotationTarget.PROPERTY` should be added, but it didn't let me annotate `reactHostInterface` without that and didn't compile.
<img width="637" alt="image" src="https://github.com/facebook/react-native/assets/33528752/8bc84870-f3f2-4a46-b076-6ee7e38bd735">

 cortinico mdvacca

Reviewed By: cortinico

Differential Revision: D49598401

Pulled By: mdvacca

fbshipit-source-id: 105ae0c13c93dae0eeb2b6fa9040f03f42d2736a

* Do not guard initializeFlipper for bridgeless for RN Tester

Summary:
We don't need this if-than-else because the initializeFlipper already checks if we're on bridgeless or not

Changelog:
[Internal] [Changed] - Do not guard initializeFlipper for bridgeless for RN Tester

Reviewed By: NickGerleman

Differential Revision: D49881903

fbshipit-source-id: e6bfc941b43382580bd418a5f27ad9426d300c69

* Fix new arch example not render in RNTester (facebook#39810)

Summary:
Pull Request resolved: facebook#39810

Two issues will be fixed:
- Bridgeless has lazy view manager loading by default so the React Package that provides view managers must implement ViewManagerOnDemandReactPackage, we might could refactor the design of package classes later
- ThemedReactContext should **NOT** be used directly to call function ```getJSModule```, since it doesn't overrides ```getJSModule``` for Bridgeless, we can use it's internal variable ```meactApplicationContext``` which should be an instance of BridgelessReactContext

Reviewed By: cortinico

Differential Revision: D49912656

fbshipit-source-id: a0bdd717612398e8d7a6f36d36dba241a3b06bd7

* Move ReactHost to com.facebook.react (facebook#39769)

Summary:
Pull Request resolved: facebook#39769

Move ReactHost to com.facebook.react

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D49834870

fbshipit-source-id: 2cfdd34297399115457424f0ba1279fd477da4a1

* Add rn-tester Android BUCK configuration (facebook#39987)

Summary:
Pull Request resolved: facebook#39987

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D49983211

fbshipit-source-id: c362d5b93e159bfb5ca17bea0ec0484adcdb4dca

* Add ExceptionsManagerModule for RNTester (facebook#40767)

Summary:
Pull Request resolved: facebook#40767

Fix the following issue:
```Invariant Violation: TurboModuleRegistry.getEnforcing(...):
'ExceptionsManager' could not be found. Verify that a module by this name is registered in the native
binary.Bridgeless mode: true. TurboModule interop: true. Modules loaded: {"NativeModules":[],"TurboModules":
["PlatformConstants","AppState","SourceCode","BlobModule","WebSocketModule","DevSettings","DevToolsSettingsManager","LogBox","Networking","Appearance","DevLoadingView","DeviceInfo","DeviceEventManager",
"SoundManager","ImageLoader","DialogManagerAndroid","NativeAnimatedModule","I18nManager","AccessibilityInfo","StatusBarManager","StatusBarManager","IntentAndroid","ToastAndroid","ShareModule","Vibration"],
"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","RedBox","BugReporting","HeadlessJsTaskSupport","FrameRateLogger","KeyboardObserver",
"AccessibilityManager","ModalManager","LinkingManager","ActionSheetManager","ExceptionsManager"]}
```

Changelog:
[Android][Changed] - Add Add ExceptionsManagerModule to CoreReactPackage

Reviewed By: cortinico

Differential Revision: D50017783

fbshipit-source-id: 8642bb23bdae50a1e702f5e0586b0ede80007bb1

* Make sure onIntArrayChanged is invoked on RN Tester (facebook#40940)

Summary:
Pull Request resolved: facebook#40940

Currently the `onIntArrayChanged` event is invoked
 only once inside RN Tester. I'm changing the logic to make sure it fires whenever we click "Set Opacity"

Changelog:
[Internal] [Changed] - Make sure onIntArrayChanged is invoked on RN Tester

Reviewed By: mdvacca, dmytrorykun

Differential Revision: D50264765

fbshipit-source-id: 93a60fd1b657c3d8b8182cab6bb7cd4368ac9a42

* Fix broken Fabric Interop example (facebook#40942)

Summary:
Pull Request resolved: facebook#40942

The Fabric Interop example for Android is broken. This is due to the Kotlin conversion which moved the `Color.colorToHSV(color, hsv)` statement *after* the HSV array is read so the array is always [0,0,0].

I'm fixing it here.

Changelog:
[Internal] [Changed] - Fix broken Fabric Interop example

Reviewed By: cipolleschi

Differential Revision: D50264766

fbshipit-source-id: 27ae5289408c7c23c667d6d7112437fa7ebe36d5

* Simplify new app template for bridgeless (facebook#40929)

Summary:
Pull Request resolved: facebook#40929

This diff reduces the footprint that bridgeless is imposing on the new app template. Specifically:
- I've created a `.toReactHost` method that converts a DefaultReactNativeHost to a DefaultReactHost
- I've updated RN Tester to use the same setup as the New App template which reduces code duplication.

I also had to remove a couple of `UnstableReactNativeAPI` as those were bleeding in the new app template.
I don't think we should ask users to opt-in in `UnstableReactNativeAPI` in the New App template itself as
this means that all the apps will get this opt-in.
Instead we should keep it only for specific APIs that we want the users to opt into.

Changelog:
[Internal] [Changed] - Simplify new app template for bridgeless

Reviewed By: cipolleschi, luluwu2032

Differential Revision: D50227693

fbshipit-source-id: e86c54d5156cc27f1f898b43ca89c57d5cf148b8

* Make events work for Fabric Interop on Bridgeless (facebook#40941)

Summary:
Pull Request resolved: facebook#40941

Events are currently not working for Fabric Interop on Bridgeless. That's because the `BridgelessReactContext` is not checking for interop modules on `getJsModule` calls, so the `InteropEventEmitter` is never returned.

This extends `BridgelessReactContext` so that  `InteropEventEmitter` is returned if the Interop Layer is turned on.

Changelog:
[Internal] [Changed] - Make events work for Fabric Interop on Bridgeless

Reviewed By: cipolleschi

Differential Revision: D50266484

fbshipit-source-id: 0188d71bdc7acc8c188d886d45f0258914ad7af7

* Make IntArray events work on Bridgeless for RN-Tester (facebook#41047)

Summary:
Pull Request resolved: facebook#41047

Array events are currently broken in the sample for RN Tester. This is because the event name is not registered correctly.

I'm updating the event registration to be correct.

Changelog:
[Internal] [Changed] - Make IntArray events work on Bridgeless for RN-Tester

Reviewed By: cipolleschi

Differential Revision: D50266485

fbshipit-source-id: 13bbce91a41281383d4857048e573b6d9cc5387b

* Bump package versions

#publish-packages-to-npm

* Make hermes build fetching more flavour resilient (facebook#41055)

Summary:
Pull Request resolved: facebook#41055

This should fix the issue highlighted in [this comment](reactwg/react-native-releases#64 (comment)).
Basically, before the fix, we were not supporting flavours correctly, as we assumed that only Debug and Release were available.

With this change, we infer whether we have to fetch Hermes for Debug or Release based on the actual flags that are passed. In this way, the users can customize their app's flavors more freely.

## Changelog:
[Internal] - Support multiple flavors when downloading Hermes

Reviewed By: huntie

Differential Revision: D50408381

fbshipit-source-id: 6990218b286b4dd823323bc63de90279efc9e74e

* Fix Glog for earlier versions of Xcode (facebook#41058)

Summary:
Pull Request resolved: facebook#41058

Glog has a piece of code which looks like this:
```
namespace google {

// They need the definitions of integer types.
#include "glog/log_severity.h"
#include "glog/vlog_is_on.h"
```

This fragment is:
- Always valid when the pod does not define a module
- Valid for Xcode >= 14.3, when the pod do define a module
- Invalid for Xcode < 14.3, when the pod do define a module

Modules are required to support Swift, so, in the long run, we want to have `DEFINES_MODULE` set to `YES` for `Glog`.

This is a temporary workaround to keep supporting older versions of Xcode while Apple keeps allowing to use Xcode 14.1 to submit apps to the store.
Historically, Apple pushes the minimum version of Xcode every April, so we expect to be able to remove this workaround in April 2024.

## Changelog:
[Internal] - Make Glog work with older versions of Xcode

Reviewed By: cortinico

Differential Revision: D50410487

fbshipit-source-id: 96145cdf9ba1bc75622403d3c06454d6d4bfd967

* Make the Fabric Interop layer work in Bridgeless (facebook#40732)

Summary:
Pull Request resolved: facebook#40732

This change allows the Fabric Interop Layer to work in bridgeless mode.

Given that the legacy components requires a Bridge to send events and use commands, this change simulates a bridge when it doesn't exists (i.e.: we are in bridgeless mode).

In order to make it work, we had to simulate a few elements from the Bridge and the UIManager.

## Changelog:
[iOS][Fixed] - Make the Fabric interop layer works in bridgeless mode.

## Facebook:
As an alternative approach, we could have created a `protocol RCTBridging`, have the `RCTBridge` conform to that protocol, and create a new type for it.
Practically this would have been much more cumbersome:
1. The [RCTBridge](https://www.internalfb.com/code/fbsource/[916531b9bf7a9943036807f7563c925b4c3e0101]/xplat/js/react-native-github/packages/react-native/React/Base/RCTBridge.h?lines=87-238) interface is quite big. All the props and method should be part of the protocol.
2. Extensions declared on RCTBridge would not have worked. For example, [`RCTBridge (RCTUIManager)`](https://www.internalfb.com/code/fbsource/[916531b9bf7a9943036807f7563c925b4c3e0101]/xplat/js/react-native-github/packages/react-native/React/Modules/RCTUIManager.h?lines=170-174).
3. It would require a major overhaul of the APIs, returning `id<RCTBridging>` in place of **every** function that takes/return an instance of `RCTBridge *`.

Clearly, not a feasible way to go.

Reviewed By: RSNara

Differential Revision: D50079929

fbshipit-source-id: 77d4370e9043c8e06b676bff3987511c042b0f9c

* [0.73.0-rc.3] Bump version numbers

* Remove deprecated jsinspector files (facebook#41159)

Summary:
Pull Request resolved: facebook#41159

Changelog: [Internal]

Cleanup from D48966244. The deprecated `jsinspector` files are no longer used by any code in either fbsource or `react-native`.

Reviewed By: hoxyq

Differential Revision: D50530796

fbshipit-source-id: b539b097cb6caf6c50a482fa93bf5d7886e76e52

* [LOCAL] Fix e2e script for 0.73

* [LOCAL] Run prettier

* [LOCAL] Update Podfile.lock

* Update Metro to ^0.80.0, don't pin to exact version

cherry-pick 7853b06

* cipolleschi/fix test script (facebook#41267)

* [0.73] Collection of Android picks for RC4 (facebook#41221)

Co-authored-by: Lulu Wu <luluwu@meta.com>
Co-authored-by: Gabriel Donadel <donadeldev@gmail.com>
fix `java.lang.NoSuchMethodError` for Bridgeless (facebook#41081)
resolved: facebook#41081
resolved: facebook#40999
resolved: facebook#41165
Fix RNTester not showing Redbox when Metro is not connected (facebook#41191)
resolved: facebook#41191
resolved: facebook#41190
resolved: facebook#41085
resolved: facebook#41206

* Build fixes

---------

Co-authored-by: Alex Hunt <hello@alexhunt.io>
Co-authored-by: Luna Wei <luwe@fb.com>
Co-authored-by: Dmitry Rykun <dmitryrykun@meta.com>
Co-authored-by: Lulu Wu <luluwu@meta.com>
Co-authored-by: Alex Hunt <alexeh@meta.com>
Co-authored-by: Arushi Kesarwani <arushikesarwani@meta.com>
Co-authored-by: Ramanpreet Nara <ramanpreet@meta.com>
Co-authored-by: Riccardo Cipolleschi <cipolleschi@meta.com>
Co-authored-by: Alex Hunt <huntie@meta.com>
Co-authored-by: David Vacca <dvacca@meta.com>
Co-authored-by: Distiller <distiller@static.198.206.135.134.macminivault.com>
Co-authored-by: Distiller <distiller@static.38.23.39.57.cyberlynk.net>
Co-authored-by: Distiller <distiller@static.38.23.38.177.cyberlynk.net>
Co-authored-by: Thibault Malbranche <malbranche.thibault@gmail.com>
Co-authored-by: Distiller <distiller@static.38.23.40.157.cyberlynk.net>
Co-authored-by: Nicola Corti <ncor@meta.com>
Co-authored-by: Nishan <nishanbende@gmail.com>
Co-authored-by: Luna Wei <luwe@meta.com>
Co-authored-by: Distiller <distiller@static.38.23.40.28.cyberlynk.net>
Co-authored-by: Nick Gerleman <ngerlem@meta.com>
Co-authored-by: Blake Friedman <blakef@meta.com>
Co-authored-by: 116-7 <1167@local>
Co-authored-by: UNIDY2002 <UNIDY2002@outlook.com>
Co-authored-by: Samuel Susla <samuelsusla@meta.com>
Co-authored-by: DeokHyeon Wi <dnl9807@gmail.com>
Co-authored-by: Oscar Franco <ospfranco@gmail.com>
Co-authored-by: Gabriel Donadel <donadeldev@gmail.com>
Co-authored-by: Riccardo Cipolleschi <riccardo.cipolleschi@gmail.com>
Co-authored-by: Oleksii <alexx271298@gmail.com>
Co-authored-by: Christoph Purrer <chpurrer@meta.com>
Co-authored-by: Distiller <distiller@static.38.39.184.83.cyberlynk.net>
Co-authored-by: Moti Zilberman <moti@meta.com>
Co-authored-by: Rob Hogan <rob@rhogan.net>
@dimisus
Copy link

dimisus commented Dec 1, 2023

This issue is reproducible.

npm i react-native@next => 0.73.0-rc6

Clean PODs installation

rm -rf ~/Library/Caches/CocoaPods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf Pods
rm -rf Podfile.lock
pod deintegrate
pod setup
pod install

A tiny warning appears saying:

[!] hermes-engine has added 1 script phase. Please inspect before executing a build. See https://guides.cocoapods.org/syntax/podspec.html#script_phases for more information.

I could not see any additional build phases in XCode/Project/Build Phases

I ran npm run ios

The build failed with:

PhaseScriptExecution [CP-User]\ [Hermes]\ Replace\ Hermes\ for\ the\ right\ configuration,\ if\ needed /Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh (in target 'hermes-engine' from project 'Pods') (1 failure) ]


Running the build in Xcode, failed:

/Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh: line 2: /scripts/xcode/with-environment.sh: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code

Following the Script-46EB2E0002D460.sh, PATH vars for REACT_NATIVE_PATH and PODS_ROOT and NODE_BINARY are used

Tried to set the path everywhere in Xcode: build phases, .xcode.env, Schemes…. nothing worked with Xcode.

I kind of could go on with npm run ios because I have set the variables globally in my system for REACT_NATIVE_PATH and PODS_ROOT. But I faced a trillion other issues, for which XCode builds would be helpful.

@pawan-pk
Copy link

pawan-pk commented Dec 7, 2023

This issue is reproducible.

npm i react-native@next => 0.73.0-rc6

Clean PODs installation

rm -rf ~/Library/Caches/CocoaPods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf Pods
rm -rf Podfile.lock
pod deintegrate
pod setup
pod install

A tiny warning appears saying:

[!] hermes-engine has added 1 script phase. Please inspect before executing a build. See https://guides.cocoapods.org/syntax/podspec.html#script_phases for more information.

I could not see any additional build phases in XCode/Project/Build Phases

I ran npm run ios

The build failed with: 

PhaseScriptExecution [CP-User]\ [Hermes]\ Replace\ Hermes\ for\ the\ right\ configuration,\ if\ needed /Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh (in target 'hermes-engine' from project 'Pods') (1 failure) ]


Running the build in Xcode, failed:

/Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh: line 2: /scripts/xcode/with-environment.sh: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code

Following the Script-46EB2E0002D460.sh, PATH vars for REACT_NATIVE_PATH and PODS_ROOT and NODE_BINARY are used

Tried to set the path everywhere in Xcode: build phases, .xcode.env, Schemes…. nothing worked with Xcode.

I kind of could go on with npm run ios because I have set the variables globally in my system for REACT_NATIVE_PATH and PODS_ROOT. But I faced a trillion other issues, for which XCode builds would be helpful.

I am also facing this issue in RN version 0.73.0

@thuongtranhuy
Copy link

This issue is reproducible.
npm i react-native@next => 0.73.0-rc6
Clean PODs installation

rm -rf ~/Library/Caches/CocoaPods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf Pods
rm -rf Podfile.lock
pod deintegrate
pod setup
pod install

A tiny warning appears saying:
[!] hermes-engine has added 1 script phase. Please inspect before executing a build. See https://guides.cocoapods.org/syntax/podspec.html#script_phases for more information.
I could not see any additional build phases in XCode/Project/Build Phases
I ran npm run ios
The build failed with: 
> 
> PhaseScriptExecution [CP-User]\ [Hermes]\ Replace\ Hermes\ for\ the\ right\ configuration,\ if\ needed /Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh (in target 'hermes-engine' from project 'Pods') (1 failure) ]
>
Running the build in Xcode, failed:

/Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh: line 2: /scripts/xcode/with-environment.sh: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code
Following the Script-46EB2E0002D460.sh, PATH vars for REACT_NATIVE_PATH and PODS_ROOT and NODE_BINARY are used
Tried to set the path everywhere in Xcode: build phases, .xcode.env, Schemes…. nothing worked with Xcode.
I kind of could go on with npm run ios because I have set the variables globally in my system for REACT_NATIVE_PATH and PODS_ROOT. But I faced a trillion other issues, for which XCode builds would be helpful.

I am also facing this issue in RN version 0.73.0

For urgent,
Go to Pod project, and add:
export REACT_NATIVE_PATH= "Your absolute path react native"
Screenshot 2023-12-07 at 17 52 00

@neeteshraj
Copy link

neeteshraj commented Dec 8, 2023

REACT_NATIVE_PATH= "Your absolute path react native"

Did not work

@neeteshraj
Copy link

Screenshot 2023-12-08 at 11 18 43 PM

@neeteshraj
Copy link

Screenshot 2023-12-08 at 11 18 39 PM

@krudos
Copy link

krudos commented Dec 8, 2023

for me deleting this file fixed the issue
ios\.xcode.env.local

@neeteshraj
Copy link

for me deleting this file fixed the issue ios\.xcode.env.local

worked for me too.

thanks

@peterferguson
Copy link

Deleting this file didn't fix it for me but setting the correct value in the file did.

I was getting something like

export NODE_BINARY=/some/incorrect/file/path

changing the path to the correct node path fixed my issue

@Jigneshiosdeveloper
Copy link

@peterferguson Can you describe in details?

export NODE_BINARY=/some/incorrect/file/path

In my .xcode.env.local file, I have below code

export NODE_BINARY=/usr/local/bin/node

@peterferguson
Copy link

@peterferguson Can you describe in details?

export NODE_BINARY=/some/incorrect/file/path

In my .xcode.env.local file, I have below code

export NODE_BINARY=/usr/local/bin/node

Your path seems correct but mine wasn't so when I fixed that & rebuilt in xcode that fixed the issue.

I still cannot seem to get a build to work using expo's eas though

@Jigneshiosdeveloper
Copy link

Jigneshiosdeveloper commented Dec 14, 2023

@peterferguson I am getting below error.

line 3: /scripts/xcode/with-environment.sh: No such file or directory

Screenshot 2023-12-14 at 9 21 55 PM

@pankajgoyal28
Copy link

export NODE_BINARY=$(which node) in .xcode.env.local file fixed issue for me.

@Pietahr
Copy link

Pietahr commented Dec 22, 2023

We were missing the post install script in the podfile. After adding it, the error was resolved

# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202

react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false
    )

@vipulSoni458
Copy link

I have tried the above solutions but still getting the same issue, can anyone help how can i resolve it. Thank you

@vipulSoni458
Copy link

Update : It got fixed after I used the absolute path as mentioned by @thuongtranhuy . But don't know why its not working with relative path :(

@ToriToriToriTori
Copy link

Having the same issue. None of the above has worked for our project.

@bondarenkod
Copy link

bondarenkod commented Jan 4, 2024

Well, spent a few hours:

  1. enable verbose logging in package.json (spent 90% time at this moment, because couldn't see any valuable output):
    "ios": "react-native run-ios --verbose"
  2. .xcode.env.local (may vary):
    export NODE_BINARY=/usr/local/bin/node
  3. do
delete Podfile.lock
delete Pods
delete .xcworkspace
delete ~/Library/Developer/Xcode/DerivedData/
  1. then run install & pod install
  2. run ios
    Not sure that this will work for everyone, but now I'm able to run rn ios project.
    My project is under yarn workspaces (monorepo) using rn 73.1
    image
    How this helps at least somebody!

@sabin10
Copy link

sabin10 commented Feb 13, 2024

Try this patch

diff --git a/node_modules/react-native/scripts/cocoapods/utils.rb b/node_modules/react-native/scripts/cocoapods/utils.rb
index 7a3b082..a9a56c0 100644
--- a/node_modules/react-native/scripts/cocoapods/utils.rb
+++ b/node_modules/react-native/scripts/cocoapods/utils.rb
@@ -227,7 +227,7 @@ class ReactNativePodsUtils
         end
 
         if !file_manager.exist?("#{file_path}.local")
-            node_binary = `command -v node`
+            node_binary = `node --print "process.argv[0]"`.strip
             system("echo 'export NODE_BINARY=#{node_binary}' > #{file_path}.local")
         end
     end

This worked for me

I didn't patch, just run node --print "process.argv[0]" to get the correct path and updated the .xcode.env.local file. Works now!

zetavg added a commit to zetavg/rn-expo-study-2024-02 that referenced this issue Feb 18, 2024
@lindboe
Copy link
Contributor

lindboe commented Feb 22, 2024

I've run into this on an Expo project where overriding .xcode.env.local isn't trivial. I think I've run down root cause, but there could be some discussion on how to fix, so I'll open a new issue for this, but for now in case anyone wants more info:

Root cause: Using a yarn alias to run pod install. This also includes using a yarn alias to run expo prebuild, which runs pod install. Yarn generates temporary references to node and yarn executables that are not supposed to persist, but RN is capturing them and storing them in .xcode.env.local.

This will actually continue to work for most people, because the files in this temporary dir /var/folders/.../T are only deleted after 3 days of not accessing them. Source: https://magnusviri.com/what-is-var-folders.html. I took a long weekend and my project broke 😄

Workaround: Delete .xcode.env.local if it exists, and then run bundle exec pod install directly, not using yarn, or run npx expo prebuild if you're using a recent expo project that uses prebuild. This should generate the .xcode.env.local file correctly.

Solution: I think there's a few options here:

  1. Update the ruby scripts to ensure we don't store a yarn tmp path to node
  2. Stop generating .xcode.env.local automatically. I'm not clear on why this is needed. .xcode.env already runs command -v node, which is the same command used when generating .xcode.env.local.

@tabekg
Copy link

tabekg commented Mar 4, 2024

I fixed it by selecting development team from Xcode

@azedo
Copy link

azedo commented Mar 4, 2024

I've run into this on an Expo project where overriding .xcode.env.local isn't trivial. I think I've run down root cause, but there could be some discussion on how to fix, so I'll open a new issue for this, but for now in case anyone wants more info:

Root cause: Using a yarn alias to run pod install. This also includes using a yarn alias to run expo prebuild, which runs pod install. Yarn generates temporary references to node and yarn executables that are not supposed to persist, but RN is capturing them and storing them in .xcode.env.local.

This will actually continue to work for most people, because the files in this temporary dir /var/folders/.../T are only deleted after 3 days of not accessing them. Source: https://magnusviri.com/what-is-var-folders.html. I took a long weekend and my project broke 😄

Workaround: Delete .xcode.env.local if it exists, and then run bundle exec pod install directly, not using yarn, or run npx expo prebuild if you're using a recent expo project that uses prebuild. This should generate the .xcode.env.local file correctly.

Solution: I think there's a few options here:

  1. Update the ruby scripts to ensure we don't store a yarn tmp path to node
  2. Stop generating .xcode.env.local automatically. I'm not clear on why this is needed. .xcode.env already runs command -v node, which is the same command used when generating .xcode.env.local.

My Github CI pipeline was failing when I ran yarn pods.
After changing to bundle exec pod install it worked as expected!
Thanks @lindboe for your suggestion. 🎉

@kud
Copy link

kud commented Mar 4, 2024

for me deleting this file fixed the issue ios\.xcode.env.local

helped me a lot as well.

wmathurin added a commit to wmathurin/SalesforceMobileSDK-ReactNative that referenced this issue Mar 21, 2024
…place Hermes for the right configuration, if needed" step after adding a package"

Taken from facebook/react-native#39903 (comment)
@AdamGerthel
Copy link

I'm getting this error when running EAS builds after upgrading to Expo SDK 50 (from 49). No idea so far what's causing it. Debug builds are fine, only seems to affect Release builds.

@duplich
Copy link

duplich commented Mar 27, 2024

For urgent, Go to Pod project, and add: export REACT_NATIVE_PATH= "Your absolute path react native" Screenshot 2023-12-07 at 17 52 00

This was the solution that worked for me:
export REACT_NATIVE_PATH="$PODS_ROOT/../../node_modules/react-native"
except the path is more generic than the one on screenshot so you can safely share it

PS: this fix is just a fix until you do the cd ios && pod install. When you do so you have to do the fix above again afterwards

@AdamGerthel
Copy link

For me it ended up being caused by having prebuildCommand: "--skip-dependency-update react" in the eas profile. Weird.

@Dimasprog
Copy link

for me deleting this file fixed the issue ios\.xcode.env.local

Where, can I find this file?

@duplich
Copy link

duplich commented Mar 28, 2024

for me deleting this file fixed the issue ios\.xcode.env.local

Where, can I find this file?

You can find it in <YourAppDirectory>/ios if you do not have it, try updating the '.xcode.env' file instead or fire 'touch .xcode.env.local' and then open it in the editor and put the NODE_BINARY path as instructed.

@duplich
Copy link

duplich commented Mar 28, 2024

For urgent, Go to Pod project, and add: export REACT_NATIVE_PATH= "Your absolute path react native" Screenshot 2023-12-07 at 17 52 00

This was the solution that worked for me: export REACT_NATIVE_PATH="$PODS_ROOT/../../node_modules/react-native" except the path is more generic than the one on screenshot so you can safely share it

PS: this fix is just a fix until you do the cd ios && pod install. When you do so you have to do the fix above again afterwards

More accurate solution that is going to last longer than the time until your next pod install:

  • in xcode go to your_app > Info > Custom iOS Target properties and add a REACT_NATIVE_PATH in your list with following (String) value $(PODS_ROOT)/../../node_modules/react-native (beware of slightly different syntax for PODS_ROOT variable)(see screenshot)
Screenshot 2024-03-28 at 11 08 31 AM

@tj-mc
Copy link

tj-mc commented Apr 9, 2024

Thank you. In our case, our builds started failing in Github Actions.

We were using yarn setup-ios in the CI file, which was just an alias to bundle exec pod install.

Once we just called bundle exec pod install directly, the app builds as normal.

@andrebeolchi
Copy link

for me deleting this file fixed the issue ios\.xcode.env.local

Thanks!!

@astriskit
Copy link

astriskit commented Apr 18, 2024

I've run into this on an Expo project where overriding .xcode.env.local isn't trivial. I think I've run down root cause, but there could be some discussion on how to fix, so I'll open a new issue for this, but for now in case anyone wants more info:

Root cause: Using a yarn alias to run pod install. This also includes using a yarn alias to run expo prebuild, which runs pod install. Yarn generates temporary references to node and yarn executables that are not supposed to persist, but RN is capturing them and storing them in .xcode.env.local.

This will actually continue to work for most people, because the files in this temporary dir /var/folders/.../T are only deleted after 3 days of not accessing them. Source: https://magnusviri.com/what-is-var-folders.html. I took a long weekend and my project broke 😄

Workaround: Delete .xcode.env.local if it exists, and then run bundle exec pod install directly, not using yarn, or run npx expo prebuild if you're using a recent expo project that uses prebuild. This should generate the .xcode.env.local file correctly.

Solution: I think there's a few options here:

  1. Update the ruby scripts to ensure we don't store a yarn tmp path to node
  2. Stop generating .xcode.env.local automatically. I'm not clear on why this is needed. .xcode.env already runs command -v node, which is the same command used when generating .xcode.env.local.

I ran into an issue where ios build on local was failing to build. The stack is using ignite boilerplate with expo/cng in yarn@v3 workspace. While looking for solutions, things lead to here and tried building from inside of the app rather using yarn workspace .... And that worked.

So, thanks @azedo and @lindboe.

@fwielstra
Copy link

fwielstra commented Apr 30, 2024

Another solution; I believe mine was caused by using fnm as a Node version manager.

My .xcode.env.local looked like this:

export NODE_BINARY=/Users/myusername/Library/Application Support/fnm/node-versions/v18.19.0/installation/bin/node

But there's a space in that path. Updating it to

export NODE_BINARY="/Users/myusername/Library/Application Support/fnm/node-versions/v18.19.0/installation/bin/node"

fixed it. This broke after a recent update; I'm not sure what happened, maybe the script that generates this file used to include quotes around the path but no longer

@ilhamtubagus
Copy link

Well, spent a few hours:

  1. enable verbose logging in package.json (spent 90% time at this moment, because couldn't see any valuable output):
    "ios": "react-native run-ios --verbose"
  2. .xcode.env.local (may vary):
    export NODE_BINARY=/usr/local/bin/node
  3. do
delete Podfile.lock
delete Pods
delete .xcworkspace
delete ~/Library/Developer/Xcode/DerivedData/
  1. then run install & pod install
  2. run ios
    Not sure that this will work for everyone, but now I'm able to run rn ios project.
    My project is under yarn workspaces (monorepo) using rn 73.1
    image
    How this helps at least somebody!

worked for me

@julianD77
Copy link

julianD77 commented May 12, 2024 via email

@geetee24
Copy link

geetee24 commented May 13, 2024

Tried all of the above and still have the same error as all of you above. Any idea why?

This issue is reproducible.

npm i react-native@next => 0.73.0-rc6

Clean PODs installation

rm -rf ~/Library/Caches/CocoaPods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf Pods
rm -rf Podfile.lock
pod deintegrate
pod setup
pod install
A tiny warning appears saying:

[!] hermes-engine has added 1 script phase. Please inspect before executing a build. See https://guides.cocoapods.org/syntax/podspec.html#script_phases for more information.

I could not see any additional build phases in XCode/Project/Build Phases

I ran npm run ios

The build failed with:


PhaseScriptExecution [CP-User]\ [Hermes]\ Replace\ Hermes\ for\ the\ right\ configuration,\ if\ needed /Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh (in target 'hermes-engine' from project 'Pods') (1 failure) ]


Running the build in Xcode, failed:

/Users/…/Library/Developer/Xcode/DerivedData/application-borsqliklaufjxbfwibrtbfsafpl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002D460.sh: line 2: /scripts/xcode/with-environment.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

Following the Script-46EB2E0002D460.sh, PATH vars for REACT_NATIVE_PATH and PODS_ROOT and NODE_BINARY are used

Tried to set the path everywhere in Xcode: build phases, .xcode.env, Schemes…. nothing worked with Xcode.

@geetee24
Copy link

@dimisus

I have the exact issue you have and nothing listed here fixes it. Did you get it fixed and if so how please?

@geetee24
Copy link

@thuongtranhuy
Your fix worked for me. Thank you.

I did this and it worked. export the exact path to node :)

	46EB2E0001D250 /* [CP-User] [Hermes] Replace Hermes for the right configuration, if needed */ = {
		isa = PBXShellScriptBuildPhase;
		buildActionMask = 2147483647;
		files = (
		);
		name = "[CP-User] [Hermes] Replace Hermes for the right configuration, if needed";
		runOnlyForDeploymentPostprocessing = 0;
		shellPath = /bin/sh;
		shellScript = "        export REACT_NATIVE_PATH=\"/Users/aaaaa/react-native/asasasasas/node_modules/react-native\"\n        . \"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\n\n        CONFIG=\"Release\"\n        if echo $GCC_PREPROCESSOR_DEFINITIONS | grep -q \"DEBUG=1\"; then\n          CONFIG=\"Debug\"\n        fi\n\n        \"$NODE_BINARY\" \"$REACT_NATIVE_PATH/sdks/hermes-engine/utils/replace_hermes_version.js\" -c \"$CONFIG\" -r \"0.73.6\" -p \"$PODS_ROOT\"\n";

alipman88 added a commit to alipman88/react-native-cross-platform-settings that referenced this issue May 13, 2024
This file breaks the GitHub Actions build-ios job.

See facebook/react-native#39903 (comment)
alipman88 added a commit to alipman88/react-native-cross-platform-settings that referenced this issue May 13, 2024
This file breaks the GitHub Actions build-ios job.

See facebook/react-native#39903 (comment)
alipman88 added a commit to alipman88/react-native-cross-platform-settings that referenced this issue May 13, 2024
This file breaks the GitHub Actions build-ios job.

See facebook/react-native#39903 (comment)
@pastoreli
Copy link

for me deleting this file fixed the issue ios\.xcode.env.local

It worked for me thanks!!!

@Lovepreet-Quadrish
Copy link

for me deleting this file fixed the issue ios\.xcode.env.local

worked for me too.

thanks

Thanks

@VithorCarlos
Copy link

for me deleting this file fixed the issue ios\.xcode.env.local

It's works for me too. Thanks!

@tigger0jk
Copy link

x-posting my favorite expo workaround from #43285 (comment)

Adding rm ios/.xcode.env.local; echo \"export NODE_BINARY=$(printf '%s' \"$(node -e 'console.log(process.execPath)')\")\" > ./ios/.xcode.env.local; to fix the .xcode.env.local on whatever actions you need.

Another workaround for those using expo is to change your package.json as follows:

{
    ...
    "scripts": {
        ...
        "ios": "yarn expo prebuild; rm ios/.xcode.env.local; echo \"export NODE_BINARY=$(printf '%s' \"$(node -e 'console.log(process.execPath)')\")\" > ./ios/.xcode.env.local; yarn expo run:ios",
        ...
    }
    ...
}

In my case I didn't already have (and I believe don't need) yarn expo prebuild; and the command doesn't use yarn for me, it's just expo run:ios, still works though.

If you want to add it to multiple actions or just look cleaner you can do that logic in a separate bash script, as suggested by #43285 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 Platform: iOS iOS applications. Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

Successfully merging a pull request may close this issue.