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

[SOLVED] React Native 0.70.0 iOs fresh project errors out on run-ios #34608

Closed
Bayramito opened this issue Sep 6, 2022 · 69 comments
Closed

[SOLVED] React Native 0.70.0 iOs fresh project errors out on run-ios #34608

Bayramito opened this issue Sep 6, 2022 · 69 comments
Labels
Platform: iOS iOS applications. Resolution: Answered When the issue is resolved with a simple answer

Comments

@Bayramito
Copy link

Bayramito commented Sep 6, 2022

edit by @kelset: this issue is caused by the Ruby version installed. Please refer to this comment for steps to fix it.


I just wanted to try out the latest release from yesterday which is 0.70, but did not work at all as a default empty project

It's immediately crashing when i run it

Description

Description

`Translated Report (Full Report Below)

Incident Identifier: B813BAD6-A8CA-4003-B965-6FE4733EC654
CrashReporter Key: 6FE47381-36D7-18B0-B222-F84F8B90D961
Hardware Model: MacBookPro16,1
Process: testproject [10096]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/5ECF7949-51A1-4E17-B4CE-E7186750E864/data/Containers/Bundle/Application/5089FB61-ED38-4EA9-B58F-6395012D6D83/testproject.app/testproject
Identifier: org.reactjs.native.example.testproject
Version: 1.0 (1)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: launchd_sim [7524]
Coalition: com.apple.CoreSimulator.SimDevice.5ECF7949-51A1-4E17-B4CE-E7186750E864 [31205]
Responsible Process: SimulatorTrampoline [3271]

Date/Time: 2022-09-06 14:53:35.0726 +0300
Launch Time: 2022-09-06 14:53:35.0415 +0300
OS Version: macOS 12.5.1 (21G83)
Release Type: User
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/hermes.framework/hermes
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/5ECF7949-51A1-4E17-B4CE-E7186750E864/data/Containers/Bundle/Application/5089FB61-ED38-4EA9-B58F-6395012D6D83/testproject.app/testproject
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Users/bayram/Library/Developer/CoreSimulator/Devices/5ECF7949-51A1-4E17-B4CE-E7186750E864/data/Containers/Bundle/Application/5089FB61-ED38-4EA9-B58F-6395012D6D83/testproject.app/Frame
(terminated at launch; ignore backtrace)

Triggered by Thread: 0

Thread 0 Crashed:
0 dyld 0x11192298e __abort_with_payload + 10
1 dyld 0x111938a72 abort_with_payload_wrapper_internal + 80
2 dyld 0x111938aa4 abort_with_payload + 9
3 dyld_sim 0x10d0108eb abort_with_payload + 26
4 dyld_sim 0x10cfd04eb dyld4::halt(char const*) + 375
5 dyld_sim 0x10cfccc1c dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3070
6 dyld_sim 0x10cfcce42 _dyld_sim_prepare + 379
7 dyld 0x1118e2b78 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1265
8 dyld 0x1118e170e dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244
9 dyld 0x1118e14e4 start + 388

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7b6201378 rdx: 0x00007ff7b62017f0
rdi: 0x0000000000000006 rsi: 0x0000000000000001 rbp: 0x00007ff7b62013c0 rsp: 0x00007ff7b6201378
r8: 0x00007ff7b62013f0 r9: 0x0000000000000000 r10: 0x00000000000000f2 r11: 0x0000000000000246
r12: 0x00000000000000f2 r13: 0x00007ff7b62017f0 r14: 0x0000000000000001 r15: 0x0000000000000006
rip: 0x000000011192298e rfl: 0x0000000000000246 cr2: 0x000000010cfd2936

Logical CPU: 0
Error Code: 0x02000209
Trap Number: 133

Binary Images:
0x1118dc000 - 0x111947fff dyld () /usr/lib/dyld
0x10cfcb000 - 0x10d018fff dyld_sim (
) <7276a69b-e3b9-3f23-957f-061350a501b4> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim

EOF


Full Report

{"app_name":"testproject","timestamp":"2022-09-06 14:53:36.00 +0300","app_version":"1.0","slice_uuid":"fc94d75e-c756-329b-b797-552f61806eb0","build_version":"1","platform":7,"bundleID":"org.reactjs.native.example.testproject","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.5.1 (21G83)","incident_id":"B813BAD6-A8CA-4003-B965-6FE4733EC654","name":"testproject"}
{
"uptime" : 260000,
"procLaunch" : "2022-09-06 14:53:35.0415 +0300",
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro16,1",
"procStartAbsTime" : 267874854474379,
"coalitionID" : 31205,
"osVersion" : {
"train" : "macOS 12.5.1",
"build" : "21G83",
"releaseType" : "User"
},
"captureTime" : "2022-09-06 14:53:35.0726 +0300",
"incident" : "B813BAD6-A8CA-4003-B965-6FE4733EC654",
"bug_type" : "309",
"pid" : 10096,
"procExitAbsTime" : 267874882079016,
"cpuType" : "X86-64",
"procName" : "testproject",
"procPath" : "/Users/USER/Library/Developer/CoreSimulator/Devices/5ECF7949-51A1-4E17-B4CE-E7186750E864/data/Containers/Bundle/Application/5089FB61-ED38-4EA9-B58F-6395012D6D83/testproject.app/testproject",
"bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"1","CFBundleIdentifier":"org.reactjs.native.example.testproject"},
"storeInfo" : {"deviceIdentifierForVendor":"28A0FF8E-0D5D-5562-9A29-B4461B2CCBD9","thirdParty":true},
"parentProc" : "launchd_sim",
"parentPid" : 7524,
"coalitionName" : "com.apple.CoreSimulator.SimDevice.5ECF7949-51A1-4E17-B4CE-E7186750E864",
"crashReporterKey" : "6FE47381-36D7-18B0-B222-F84F8B90D961",
"responsiblePid" : 3271,
"responsibleProc" : "SimulatorTrampoline",
"wakeTime" : 1914,
"bridgeVersion" : {"build":"19P6066","train":"6.6"},
"sleepWakeUUID" : "E9160E8F-12B5-448F-8AC0-AFA83A735033",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: @rpath/hermes.framework/hermes","Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/5ECF7949-51A1-4E17-B4CE-E7186750E864/data/Containers/Bundle/Application/5089FB61-ED38-4EA9-B58F-6395012D6D83/testproject.app/testproject","Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Users/bayram/Library/Developer/CoreSimulator/Devices/5ECF7949-51A1-4E17-B4CE-E7186750E864/data/Containers/Bundle/Application/5089FB61-ED38-4EA9-B58F-6395012D6D83/testproject.app/Frame"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":2617499,"threadState":{"r13":{"value":140701889206256},"rax":{"value":33554953},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":1},"rsi":{"value":1},"r8":{"value":140701889205232},"cr2":{"value":4512885046},"rdx":{"value":140701889206256},"r10":{"value":242},"r9":{"value":0},"r15":{"value":6},"rbx":{"value":0},"trap":{"value":133},"err":{"value":33554953},"r11":{"value":582},"rip":{"value":4589758862,"matchesCrashFrame":1},"rbp":{"value":140701889205184},"rsp":{"value":140701889205112},"r12":{"value":242},"rcx":{"value":140701889205112},"flavor":"x86_THREAD_STATE","rdi":{"value":6}},"frames":[{"imageOffset":289166,"symbol":"__abort_with_payload","symbolLocation":10,"imageIndex":0},{"imageOffset":379506,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":80,"imageIndex":0},{"imageOffset":379556,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":0},{"imageOffset":284907,"symbol":"abort_with_payload","symbolLocation":26,"imageIndex":1},{"imageOffset":21739,"symbol":"dyld4::halt(char const*)","symbolLocation":375,"imageIndex":1},{"imageOffset":7196,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3070,"imageIndex":1},{"imageOffset":7746,"symbol":"_dyld_sim_prepare","symbolLocation":379,"imageIndex":1},{"imageOffset":27512,"symbol":"dyld4::prepareSim(dyld4::RuntimeState&, char const*)","symbolLocation":1265,"imageIndex":0},{"imageOffset":22286,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":244,"imageIndex":0},{"imageOffset":21732,"symbol":"start","symbolLocation":388,"imageIndex":0}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 4589469696,
"size" : 442368,
"uuid" : "f71fb3ca-5fcc-3577-9457-b047888a46d1",
"path" : "/usr/lib/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4512854016,
"size" : 319488,
"uuid" : "7276a69b-e3b9-3f23-957f-061350a501b4",
"path" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim",
"name" : "dyld_sim"
}
],
"sharedCache" : {
"base" : 140733730258944,
"size" : 3268706304,
"uuid" : "0316ba73-5fae-3838-872d-56c53ca997ff"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=604.6M resident=0K(0%) swapped_out_or_unallocated=604.6M(100%)\nWritable regions: Total=10.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=10.7M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8192K 1 \nVM_ALLOCATE 12K 3 \n__DATA 2124K 15 \n__DATA_CONST 1149K 10 \n__LINKEDIT 559.1M 9 \n__TEXT 45.5M 15 \ndyld private memory 2048K 2 \n=========== ======= ======= \nTOTAL 673.8M 56 \n",
"legacyInfo" : {
"threadTriggered" : {

}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "5fb4245a1bbfe8005e33a1e1",
"factorPackIds" : {

  },
  "deploymentId" : 240000015
},
{
  "rolloutId" : "60f8ddccefea4203d95cbeef",
  "factorPackIds" : {

  },
  "deploymentId" : 240000019
}

],
"experiments" : [

]
}
}

Model: MacBookPro16,1, BootROM 1731.140.2.0.0 (iBridge: 19.16.16066.0.0,0), 8 processors, 8-Core Intel Core i9, 2,3 GHz, 16 GB, SMC
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Display: Color LCD, 3072 x 1920 Retina, Main, MirrorOff, Online
Graphics: AMD Radeon Pro 5500M, AMD Radeon Pro 5500M, PCIe, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2667 MHz, SK Hynix, HMA81GS6CJR8N-VK
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2667 MHz, SK Hynix, HMA81GS6CJR8N-VK
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 12 2021 18:02:56 version 9.30.464.0.32.5.76 FWID 01-c081cfed
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: USB 10/100/1000 LAN, Ethernet, en7
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: T2Bus
USB Device: composite_device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
`

Version

0.70

Output of npx react-native info

System:
    OS: macOS 12.5.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 1.67 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.20.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 6.14.17 - /usr/local/bin/npm
    Watchman: 2022.07.04.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
      System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-31 | Google APIs Intel x86 Atom_64
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.14 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.0 => 0.70.0
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

just run npx react-native init testproject then cd testproject && npx react-native run-ios

Snack, code example, screenshot, or link to a repository

Simulator.Screen.Recording.-.iPhone.13.-.2022-09-06.at.14.55.10.mp4
@Bayramito Bayramito added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Sep 6, 2022
@ch3rn1k
Copy link

ch3rn1k commented Sep 6, 2022

Same
#34599 #34601

@Bayramito
Copy link
Author

Actually its working if i disable hermes on Podfile

@Bayramito
Copy link
Author

Bayramito commented Sep 7, 2022

I solved it by addinghermes.xcframework file to

xcode > build phases > Link binary with Libraries section and rebuilding the app

@ch3rn1k
Copy link

ch3rn1k commented Sep 7, 2022

hermes.xcframework

Where did u get hermes.xcframework?

@Bayramito
Copy link
Author

hermes.xcframework

Where did u get hermes.xcframework?

just press to + sign and search for hermes

Ekran Resmi 2022-09-07 13 59 28

@ch3rn1k
Copy link

ch3rn1k commented Sep 7, 2022

hermes.xcframework

Where did u get hermes.xcframework?

just press to + sign and search for hermes

Ekran Resmi 2022-09-07 13 59 28

image

lmao

@Bayramito
Copy link
Author

Temporary fix:

change highlighted area with:

Ekran Resmi 2022-09-07 15 44 59

if [[ "$CONFIGURATION" == "Debug" ]]; then
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"
fi

DO NOT RUN POD INSTALL

just npx react-native run-ios
this should solve the issue but im looking to find out why pod install doesnt add this automatically....

@allemanfredi
Copy link

Temporary fix:

change highlighted area with:

Ekran Resmi 2022-09-07 15 44 59
if [[ "$CONFIGURATION" == "Debug" ]]; then
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"
fi

DO NOT RUN POD INSTALL

just npx react-native run-ios this should solve the issue but im looking to find out why pod install doesnt add this automatically....

It works on my side

@thomazcapra
Copy link

It woked for me, thanks.

@ivangonzalezg
Copy link

ivangonzalezg commented Sep 8, 2022

I created this function so you don't have to manually update the Pods frameworks file every time you run pod install

def fix_hermes(app_name)
  path = "Pods/Target Support Files/Pods-" + app_name + "/Pods-" + app_name + "-frameworks.sh"
  lines = File.readlines(path)
  lines.insert(181, '  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n")
  lines.insert(183, 'if [[ "$CONFIGURATION" == "Release" ]]; then'+"\n")
  lines.insert(184, '  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n")
  lines.insert(185, "fi\n")
  File.write(path, lines.join, mode: "w")
  puts "Hermes fixed"
end

Add it to you Podfile. It should look like this:

image

And finally call it from the post install script

image

app_name is the target

@Bayramito
Copy link
Author

I created this function so you don't have to manually update the Pods frameworks file every time you run pod install

def fix_hermes(app_name)
  path = "Pods/Target Support Files/Pods-" + app_name + "/Pods-" + app_name + "-frameworks.sh"
  lines = File.readlines(path)
  lines.insert(181, '  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n")
  lines.insert(183, 'if [[ "$CONFIGURATION" == "Release" ]]; then'+"\n")
  lines.insert(184, '  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n")
  lines.insert(185, "fi\n")
  File.write(path, lines.join, mode: "w")
  puts "Hermes fixed"
end

Add it to you Podfile. It should look like this:

image

And finally call it from the post install script

image

app_name is the target

Actually you dont need to call it everytime. Xcode as a caching system to store it for the project.

@brandonmoon
Copy link

For those still struggling with this, I found that I needed to have CocoaPods v 1.11.2 or higher for it to work correctly.

@Gnative
Copy link

Gnative commented Sep 12, 2022

For those still struggling with this, I found that I needed to have CocoaPods v 1.11.2 or higher for it to work correctly.

Thanks @brandonmoon but i'm on the most recent version 1.11.3, still with this issue

@kelset
Copy link
Contributor

kelset commented Sep 13, 2022

As I commented here, based on the repro steps I don't get the error: #34612 (comment)

I'm going to close this issue unless someone can provide proper repro steps

@kelset kelset added Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. and removed Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Sep 13, 2022
@github-actions
Copy link

⚠️ Missing Reproducible Example
ℹ️ It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner.

@Gnative
Copy link

Gnative commented Sep 13, 2022

Hi @kelset The repro steps are.

npx react-native init testproject then cd testproject && npx react-native run-ios or even building with in Xcode.

And then Hermes is not included with in the build.
Where we are seeing errors like

'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file),

'/usr/lib/swift/hermes.framework/hermes' (no such file),

I have this also with-in my production app after upgrade from 0.69. I don't personally understand why. If it's the operating system, setup or something else.

@kelset
Copy link
Contributor

kelset commented Sep 13, 2022

as I have already mentioned, those repro steps don't lead to me experiencing the issue reported. So yes, it's probably something with your local setup. Please see my other comment for my configuration and try to see if there's any difference.

@Gnative
Copy link

Gnative commented Sep 13, 2022

Ok cool.. you are using an M1 mac and this issue has indicated that this issue is replicated-able on an Intel mac.. could this be the cause ?

 System:
    OS: macOS 12.5.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 1.67 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh

Other wise i'm on the same versions and have tried downgrading upgrading to see if there is a difference.

System:
    OS: macOS 12.5.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 2.14 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
    Watchman: 2022.09.05.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.14.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.0 => 0.70.0
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

@kelset
Copy link
Contributor

kelset commented Sep 13, 2022

It's not that, I just tested on my intel machine and it also works just fine:

System:
    OS: macOS 12.5
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 39.34 GB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.11.0 - /usr/local/bin/npm
    Watchman: 2022.07.04.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/lsciandra/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      Android NDK: 21.4.7075529
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.14 - /Users/lsciandra/.sdkman/candidates/java/current/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.0 => 0.70.0
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not FoundScreenshot 2022-09-13 at 15.23.16.png

screenshot:

unnamed

@Gnative
Copy link

Gnative commented Sep 13, 2022

@kelset Thanks for your help. I've created a completely fresh install with the repo instructions above. Here is a git repo to view the output

/~https://github.com/Gnative/reactnative-0.70.0

System:

System:
    OS: macOS 12.5.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 2.14 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
    Watchman: 2022.09.05.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.14.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.0 => 0.70.0
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
dyld[70938]: Library not loaded: @rpath/hermes.framework/hermes
  Referenced from: /Users/Gnative/Library/Developer/CoreSimulator/Devices/D82D1AD7-DCAD-4C4B-A7C2-2AD20C92B86C/data/Containers/Bundle/Application/DD542822-31A0-4F98-A1D7-3C795F33799C/test.app/test

@Gnative
Copy link

Gnative commented Sep 13, 2022

My Pods/Target Support Files/Pods/test/Pods-test-frameworks that missing any linkage to hermes.

#!/bin/sh
set -e
set -u
set -o pipefail

function on_error {
  echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR

if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
  # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
  # frameworks to, so exit 0 (signalling the script phase was successful).
  exit 0
fi

echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"

COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
BCSYMBOLMAP_DIR="BCSymbolMaps"


# This protects against multiple targets copying the same framework dependency at the same time. The solution
# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")

# Copies and strips a vendored framework
install_framework()
{
  if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
    local source="${BUILT_PRODUCTS_DIR}/$1"
  elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
    local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
  elif [ -r "$1" ]; then
    local source="$1"
  fi

  local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"

  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
  fi

  if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then
    # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied
    find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do
      echo "Installing $f"
      install_bcsymbolmap "$f" "$destination"
      rm "$f"
    done
    rmdir "${source}/${BCSYMBOLMAP_DIR}"
  fi

  # Use filter instead of exclude so missing patterns don't throw errors.
  echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
  rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"

  local basename
  basename="$(basename -s .framework "$1")"
  binary="${destination}/${basename}.framework/${basename}"

  if ! [ -r "$binary" ]; then
    binary="${destination}/${basename}"
  elif [ -L "${binary}" ]; then
    echo "Destination binary is symlinked..."
    dirname="$(dirname "${binary}")"
    binary="${dirname}/$(readlink "${binary}")"
  fi

  # Strip invalid architectures so "fat" simulator / device frameworks work on device
  if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
    strip_invalid_archs "$binary"
  fi

  # Resign the code if required by the build settings to avoid unstable apps
  code_sign_if_enabled "${destination}/$(basename "$1")"

  # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
  if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
    local swift_runtime_libs
    swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u)
    for lib in $swift_runtime_libs; do
      echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
      rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
      code_sign_if_enabled "${destination}/${lib}"
    done
  fi
}
# Copies and strips a vendored dSYM
install_dsym() {
  local source="$1"
  warn_missing_arch=${2:-true}
  if [ -r "$source" ]; then
    # Copy the dSYM into the targets temp dir.
    echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\""
    rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}"

    local basename
    basename="$(basename -s .dSYM "$source")"
    binary_name="$(ls "$source/Contents/Resources/DWARF")"
    binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}"

    # Strip invalid architectures from the dSYM.
    if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then
      strip_invalid_archs "$binary" "$warn_missing_arch"
    fi
    if [[ $STRIP_BINARY_RETVAL == 0 ]]; then
      # Move the stripped file into its final destination.
      echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\""
      rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}"
    else
      # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing.
      mkdir -p "${DWARF_DSYM_FOLDER_PATH}"
      touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM"
    fi
  fi
}

# Used as a return value for each invocation of `strip_invalid_archs` function.
STRIP_BINARY_RETVAL=0

# Strip invalid architectures
strip_invalid_archs() {
  binary="$1"
  warn_missing_arch=${2:-true}
  # Get architectures for current target binary
  binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)"
  # Intersect them with the architectures we are building for
  intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)"
  # If there are no archs supported by this binary then warn the user
  if [[ -z "$intersected_archs" ]]; then
    if [[ "$warn_missing_arch" == "true" ]]; then
      echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)."
    fi
    STRIP_BINARY_RETVAL=1
    return
  fi
  stripped=""
  for arch in $binary_archs; do
    if ! [[ "${ARCHS}" == *"$arch"* ]]; then
      # Strip non-valid architectures in-place
      lipo -remove "$arch" -output "$binary" "$binary"
      stripped="$stripped $arch"
    fi
  done
  if [[ "$stripped" ]]; then
    echo "Stripped $binary of architectures:$stripped"
  fi
  STRIP_BINARY_RETVAL=0
}

# Copies the bcsymbolmap files of a vendored framework
install_bcsymbolmap() {
    local bcsymbolmap_path="$1"
    local destination="${BUILT_PRODUCTS_DIR}"
    echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}""
    rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"
}

# Signs a framework with the provided identity
code_sign_if_enabled() {
  if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
    # Use the current code_sign_identity
    echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
    local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"

    if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
      code_sign_cmd="$code_sign_cmd &"
    fi
    echo "$code_sign_cmd"
    eval "$code_sign_cmd"
  fi
}

if [[ "$CONFIGURATION" == "Debug" ]]; then
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework"
  install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework"
fi
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
  wait
fi

@cam-shaw
Copy link

@kelset I'm also getting this issue and adding hermes.xcframework to the Link Binary WIth Library build phase resolved it.

FWIW

System:
    OS: macOS 12.5.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 3.33 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.9.0 - ~/.nvm/versions/node/v18.9.0/bin/node
    Yarn: 1.22.11 - ~/.nvm/versions/node/v16.6.2/bin/yarn
    npm: 8.19.1 - ~/.nvm/versions/node/v18.9.0/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /Users/camerons/.gem/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8815526
    Xcode: 14.0/14A309 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /Users/camerons/homebrew/opt/openjdk@11/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.0 => 0.70.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

@cipolleschi
Copy link
Contributor

Hi there! @traviswimer we decided to adopt bundle for Ruby as a measure to avoid fragmentation in the various versions of ruby and cocoapods for all our users.

Thanks to the Gemfile and the .ruby-version file, we can ensure that all the users on a given React Native version are all using the same versions of the common dependencies. In this way, we would be able to support every user more efficiently and in a more scalable way.

bundle exec will the the recommended way to install the dependencies for iOS. By using it, we can safely exclude a whole set of configuration problems. The newer version of the CLI will use bundler by default. And we have plans to upgrade the doctor command with similar checks.

I hope this can shed more light on how we would like to handle dependencies and configurations from now on. The rationale is that it should simplify the management in the long run.

@traviswimer
Copy link

@cipolleschi @Gnative Thanks for the clarification.

My understanding from this is that the cli now creates a Gemfile and .ruby-version at the root of the project. When you upgrade the project's version of React Native, you will need to change the versions in these files. In other words, use the React Native Upgrade Helper to determine the necessary changes and then go through all the steps to upgrade Ruby, CocoaPods, and the actual pods.

Based on this, I believe my previous conclusions were not good advice. I have updated my original comment as well as my blog post.

If any of it still sounds incorrect/misleading, I appreciate your feedback.

Thanks again!

@oleksandr-dziuban
Copy link

oleksandr-dziuban commented Nov 28, 2022

Hi guys.
Once you are migrating from previous RN version to latest one (for example RN v0.70+) you just need additionally run this in ios folder:

pod update hermes-engine --no-repo-update

Sometimes pod install not installing the new hermes engine correctly.
Once you done this, clean and rebuild project app is opening correctly.

If you run this command you can find this diff in Podfile.lock:
Screenshot 2022-11-28 at 21 26 10

@Adnan-Bacic
Copy link
Contributor

i updated from 0.70.0 to 0.70.6 and it works for me now

@kopax-polyconseil
Copy link

kopax-polyconseil commented Dec 2, 2022

I have the same issue, in GitHub action macos-12.

I solved it by addinghermes.xcframework file to

xcode > build phases > Link binary with Libraries section and rebuilding the app

This didn't work for us, in GitHub action macos-12 runner, still produce a bad build

We also use bundle , bundle install, cd ios && bundle exec pod install, we also use ruby 2.7.5 , nothing we tried work.

React Native 0.68.5, any clue how we can do ?

@traviswimer
Copy link

traviswimer commented Dec 2, 2022

@kopax-polyconseil I'm not sure if this is the problem, but the Gemfile for 0.68.5 uses Ruby 2.7.4:
https://raw.githubusercontent.com/react-native-community/rn-diff-purge/release/0.68.5/RnDiffApp/Gemfile

You might want to check your Gemfile to ensure the Ruby and CocoaPods versions listed match the versions in the the official Gemfile for react native 0.68.5.

Also, if you look at my previous comment, you'll see that you missed one step that needs to be run before installing pods:
bundle exec pod repo update

It may also have something to do with the hermes.xcframework you added to Link binary with Libraries. You may have added the wrong version. Also, in the latest versions of react native the Hermes framework is added automatically, but I can't remember if 0.68.5 is before or after this change was added.

If you decide to upgrade React Native to the latest version, you shouldn't include Hermes manually.

@kopax-polyconseil
Copy link

kopax-polyconseil commented Dec 3, 2022

If you decide to upgrade React Native to the latest version, you shouldn't include Hermes manually.

We want to upgrade react native but it can't be done prior solving our e2e env, as the upgrade for us will take some time (we already had an attempt).

Also, if you look at my #34608 (comment), you'll see that you missed one step that needs to be run before installing pods:
bundle exec pod repo update

I tried it, I also tried to remove the Podfile.lock, I almost tried everything, you can see it here /~https://github.com/pass-culture/pass-culture-app-native/actions/workflows/e2e-ios-app.yml , because it takes 2 hours, I try a lot of thing per attempt to fix and none of them work.

This is the pull request I work on to try to fix: pass-culture/pass-culture-app-native#3996

It may also have something to do with the hermes.xcframework you added to Link binary with Libraries

It was not in here, I tried to add it after reading this topic, it didn't helped, I then tried to do the second advice here: #34601 (comment) , then it said:

❌  error: Multiple commands produce '/Users/runner/Library/Developer/Xcode/DerivedData/PassCulture-azrmecqxadxqrlcfhryqxqnufohv/Build/Products/Release-iphonesimulator/PassCulture.app/Frameworks/hermes.framework'

Since it got added twice and build failed, we only kept the second option, it also didn't work, but this time I don't have a bug report log like I had before (exemple here)

Also, I am not sure if it should work for our version. This problem we only have it in GitHub action, in Circle CI we do not have it, and locally also it work fine.

I also tried without success to:

  • Add React-Hermes in addition to hermes.xcframework
  • Revert change and run all the bundle exec pod commands in every sort of order/matrix (including pod update hermes-engine --no-repo-update)
  • use a different version of xcode with this action maxim-lobanov/setup-xcode@v1 for both macos-11 and macos-12, it didn't helped.
  • find / -name hermes and create symlink to have it available, didn't helped.
  • Use ruby 2.7.4

What else can I try ?

@traviswimer
Copy link

@kopax-polyconseil Since the problem is only on Github Actions, I'd probably look into whether it's caching anything from previous runs. If DerivedData, your ios/build folder, or node_modules are persisting between builds, I imagine that has the potential to cause some problems.

I'm not all that knowledgable on Github Actions, but if its possible that caching is the issue, you could try creating another simpler action just to test if making a fresh build fixes the error.

@kopax-polyconseil
Copy link

you could try creating another simpler action just to test if making a fresh build fixes the error.

I already tried it and it didn't work. We will have to try to upgrade to React Native and pray :)

@Arjan-Zuidema
Copy link
Contributor

Hi guys. Once you are migrating from previous RN version to latest one (for example RN v0.70+) you just need additionally run this in ios folder:

pod update hermes-engine --no-repo-update

Sometimes pod install not installing the new hermes engine correctly. Once you done this, clean and rebuild project app is opening correctly.

If you run this command you can find this diff in Podfile.lock: Screenshot 2022-11-28 at 21 26 10

This was the fix for me

@hankminden
Copy link

Upgrading to Cocoapods 1.11.3 did the trick for me as well. Thanks @brandonmoon and all

@anis-18
Copy link

anis-18 commented Feb 7, 2023

Same error in react-native 0.71.2

@kopax-polyconseil
Copy link

cat ios/Podfile.lock | grep -i cocoapods
COCOAPODS: 1.11.3

So it won't help

@anisamirouche this is important information, you are not able to build in github action despite the upgrade ?

@anis-18
Copy link

anis-18 commented Feb 7, 2023

Same error in react-native 0.71.2

What do you mean build in GitHub action ?
I'm just initializing a new react native app and got this error, project couldn't be generated
I'm using react native 0.71.2

@traviswimer
Copy link

It looks like the solution to this is getting lost in the newer comments. To summarize, this error is caused by having an incompatible combination of versions of RN, Ruby, or Cocoapods.

This is solved by using a Gemfile and the bundle command. As long as you are using RN >=0.67.0, you should have a Gemfile in your project root. (make sure it is up to date with your version)

As long as you use the bundle command, it should force the versions to be correct.

Take a look at my other comment for more details:
#34608 (comment)

@anis-18
Copy link

anis-18 commented Feb 7, 2023

It looks like the solution to this is getting lost in the newer comments. To summarize, this error is caused by having an incompatible combination of versions of RN, Ruby, or Cocoapods.

This is solved by using a Gemfile and the bundle command. As long as you are using RN >=0.67.0, you should have a Gemfile in your project root. (make sure it is up to date with your version)

As long as you use the bundle command, it should force the versions to be correct.

Take a look at my other comment for more details: #34608 (comment)

My ruby version and ruby version in gemfile are the same but I'm still having this error

@traviswimer
Copy link

@anisamirouche That is only one part of the issue though. Did you ensure the version in the Gemfile is correct for your version of RN and run all the bundle commands listed in my other comment?

@anis-18
Copy link

anis-18 commented Feb 7, 2023

@anisamirouche That is only one part of the issue though. Did you ensure the version in the Gemfile is correct for your version of RN and run all the bundle commands listed in my other comment?

Thanks for your answer, how can I know which version of ruby is needed for react native 0.71.2 ?

@Geneonosis
Copy link

Geneonosis commented Mar 20, 2023

I've done everything that is listed in this thread and the react-native app still crashes on start on the emulator. upgraded from 0.69.6 to 0.70.5 and then tried upgrading to 0.70.6, I followed the steps in the react-native upgrade helper tool.. but nothing seems to be working.

for what it's worth:

podfile.lock

  - ASN1Decoder (1.8.0)
  - boost (1.76.0)
  - DoubleConversion (1.1.6)
  - EASClient (0.4.1):
    - ExpoModulesCore
  - EXApplication (5.0.1):
    - ExpoModulesCore
  - EXBlur (12.0.1):
    - ExpoModulesCore
  - EXConstants (14.0.2):
    - ExpoModulesCore
  - EXErrorRecovery (4.0.1):
    - ExpoModulesCore
  - EXFileSystem (15.1.1):
    - ExpoModulesCore
  - EXFont (11.0.1):
    - ExpoModulesCore
  - EXGL (12.0.1):
    - ExpoModulesCore
    - React-jsi
  - EXJSONUtils (0.4.0)
  - EXManifests (0.4.0):
    - EXJSONUtils
  - Expo (47.0.13):
    - ExpoModulesCore
  - ExpoKeepAwake (11.0.1):
    - ExpoModulesCore
  - ExpoModulesCore (1.1.1):
    - React-Core
    - ReactCommon/turbomodule/core
  - ExpoWebBrowser (12.0.0):
    - ExpoModulesCore
  - EXScreenOrientation (5.0.1):
    - ExpoModulesCore
    - React-Core
  - EXSplashScreen (0.17.5):
    - ExpoModulesCore
    - React-Core
  - EXStructuredHeaders (3.0.1)
  - EXUpdates (0.15.6):
    - ASN1Decoder (~> 1.8)
    - EASClient
    - EXManifests
    - ExpoModulesCore
    - EXStructuredHeaders
    - EXUpdatesInterface
    - React-Core
  - EXUpdatesInterface (0.8.1)
  - FBLazyVector (0.70.6)
  - FBReactNativeSpec (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - RCTRequired (= 0.70.6)
    - RCTTypeSafety (= 0.70.6)
    - React-Core (= 0.70.6)
    - React-jsi (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - Firebase/Analytics (10.3.0):
    - Firebase/Core
  - Firebase/Core (10.3.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (~> 10.3.0)
  - Firebase/CoreOnly (10.3.0):
    - FirebaseCore (= 10.3.0)
  - FirebaseAnalytics (10.3.0):
    - FirebaseAnalytics/AdIdSupport (= 10.3.0)
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseAnalytics/AdIdSupport (10.3.0):
    - FirebaseCore (~> 10.0)
    - FirebaseInstallations (~> 10.0)
    - GoogleAppMeasurement (= 10.3.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - FirebaseCore (10.3.0):
    - FirebaseCoreInternal (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/Logger (~> 7.8)
  - FirebaseCoreInternal (10.6.0):
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
  - FirebaseInstallations (10.6.0):
    - FirebaseCore (~> 10.0)
    - GoogleUtilities/Environment (~> 7.8)
    - GoogleUtilities/UserDefaults (~> 7.8)
    - PromisesObjC (~> 2.1)
  - fmt (6.2.1)
  - GCDWebServer (3.5.4):
    - GCDWebServer/Core (= 3.5.4)
  - GCDWebServer/Core (3.5.4)
  - glog (0.3.5)
  - GoogleAppMeasurement (10.3.0):
    - GoogleAppMeasurement/AdIdSupport (= 10.3.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleAppMeasurement/AdIdSupport (10.3.0):
    - GoogleAppMeasurement/WithoutAdIdSupport (= 10.3.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleAppMeasurement/WithoutAdIdSupport (10.3.0):
    - GoogleUtilities/AppDelegateSwizzler (~> 7.8)
    - GoogleUtilities/MethodSwizzler (~> 7.8)
    - GoogleUtilities/Network (~> 7.8)
    - "GoogleUtilities/NSData+zlib (~> 7.8)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleUtilities/AppDelegateSwizzler (7.11.0):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (7.11.0):
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleUtilities/Logger (7.11.0):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (7.11.0):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (7.11.0):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (7.11.0)"
  - GoogleUtilities/Reachability (7.11.0):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (7.11.0):
    - GoogleUtilities/Logger
  - hermes-engine (0.70.6)
  - libevent (2.1.12)
  - libwebp (1.2.4):
    - libwebp/demux (= 1.2.4)
    - libwebp/mux (= 1.2.4)
    - libwebp/webp (= 1.2.4)
  - libwebp/demux (1.2.4):
    - libwebp/webp
  - libwebp/mux (1.2.4):
    - libwebp/demux
  - libwebp/webp (1.2.4)
  - nanopb (2.30909.0):
    - nanopb/decode (= 2.30909.0)
    - nanopb/encode (= 2.30909.0)
  - nanopb/decode (2.30909.0)
  - nanopb/encode (2.30909.0)
  - PromisesObjC (2.2.0)
  - RCT-Folly (2021.07.22.00):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
    - RCT-Folly/Default (= 2021.07.22.00)
  - RCT-Folly/Default (2021.07.22.00):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
  - RCT-Folly/Futures (2021.07.22.00):
    - boost
    - DoubleConversion
    - fmt (~> 6.2.1)
    - glog
    - libevent
  - RCTRequired (0.70.6)
  - RCTTypeSafety (0.70.6):
    - FBLazyVector (= 0.70.6)
    - RCTRequired (= 0.70.6)
    - React-Core (= 0.70.6)
  - React (0.70.6):
    - React-Core (= 0.70.6)
    - React-Core/DevSupport (= 0.70.6)
    - React-Core/RCTWebSocket (= 0.70.6)
    - React-RCTActionSheet (= 0.70.6)
    - React-RCTAnimation (= 0.70.6)
    - React-RCTBlob (= 0.70.6)
    - React-RCTImage (= 0.70.6)
    - React-RCTLinking (= 0.70.6)
    - React-RCTNetwork (= 0.70.6)
    - React-RCTSettings (= 0.70.6)
    - React-RCTText (= 0.70.6)
    - React-RCTVibration (= 0.70.6)
  - React-bridging (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - React-jsi (= 0.70.6)
  - React-callinvoker (0.70.6)
  - React-Codegen (0.70.6):
    - FBReactNativeSpec (= 0.70.6)
    - RCT-Folly (= 2021.07.22.00)
    - RCTRequired (= 0.70.6)
    - RCTTypeSafety (= 0.70.6)
    - React-Core (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-Core (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default (= 0.70.6)
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/CoreModulesHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/Default (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/DevSupport (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default (= 0.70.6)
    - React-Core/RCTWebSocket (= 0.70.6)
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-jsinspector (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTActionSheetHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTAnimationHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTBlobHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTImageHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTLinkingHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTNetworkHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTSettingsHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTTextHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTVibrationHeaders (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-Core/RCTWebSocket (0.70.6):
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-Core/Default (= 0.70.6)
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - Yoga
  - React-CoreModules (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.6)
    - React-Codegen (= 0.70.6)
    - React-Core/CoreModulesHeaders (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-RCTImage (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-cxxreact (0.70.6):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-callinvoker (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsinspector (= 0.70.6)
    - React-logger (= 0.70.6)
    - React-perflogger (= 0.70.6)
    - React-runtimeexecutor (= 0.70.6)
  - React-hermes (0.70.6):
    - DoubleConversion
    - glog
    - hermes-engine
    - RCT-Folly (= 2021.07.22.00)
    - RCT-Folly/Futures (= 2021.07.22.00)
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-jsiexecutor (= 0.70.6)
    - React-jsinspector (= 0.70.6)
    - React-perflogger (= 0.70.6)
  - React-jsi (0.70.6):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-jsi/Default (= 0.70.6)
  - React-jsi/Default (0.70.6):
    - boost (= 1.76.0)
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
  - React-jsiexecutor (0.70.6):
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-perflogger (= 0.70.6)
  - React-jsinspector (0.70.6)
  - React-logger (0.70.6):
    - glog
  - react-native-background-downloader (2.3.4):
    - React
  - react-native-maps (1.3.2):
    - React-Core
  - react-native-netinfo (9.3.5):
    - React-Core
  - react-native-render-html (5.1.1):
    - React-Core
  - react-native-safe-area-context (4.4.1):
    - RCT-Folly
    - RCTRequired
    - RCTTypeSafety
    - React-Core
    - ReactCommon/turbomodule/core
  - react-native-video (5.2.1):
    - React-Core
    - react-native-video/Video (= 5.2.1)
  - react-native-video/Video (5.2.1):
    - React-Core
  - react-native-webview (11.23.1):
    - React-Core
  - React-perflogger (0.70.6)
  - React-RCTActionSheet (0.70.6):
    - React-Core/RCTActionSheetHeaders (= 0.70.6)
  - React-RCTAnimation (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.6)
    - React-Codegen (= 0.70.6)
    - React-Core/RCTAnimationHeaders (= 0.70.6)
    - React-jsi (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-RCTBlob (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - React-Codegen (= 0.70.6)
    - React-Core/RCTBlobHeaders (= 0.70.6)
    - React-Core/RCTWebSocket (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-RCTNetwork (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-RCTImage (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.6)
    - React-Codegen (= 0.70.6)
    - React-Core/RCTImageHeaders (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-RCTNetwork (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-RCTLinking (0.70.6):
    - React-Codegen (= 0.70.6)
    - React-Core/RCTLinkingHeaders (= 0.70.6)
    - React-jsi (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-RCTNetwork (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.6)
    - React-Codegen (= 0.70.6)
    - React-Core/RCTNetworkHeaders (= 0.70.6)
    - React-jsi (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-RCTSettings (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - RCTTypeSafety (= 0.70.6)
    - React-Codegen (= 0.70.6)
    - React-Core/RCTSettingsHeaders (= 0.70.6)
    - React-jsi (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-RCTText (0.70.6):
    - React-Core/RCTTextHeaders (= 0.70.6)
  - React-RCTVibration (0.70.6):
    - RCT-Folly (= 2021.07.22.00)
    - React-Codegen (= 0.70.6)
    - React-Core/RCTVibrationHeaders (= 0.70.6)
    - React-jsi (= 0.70.6)
    - ReactCommon/turbomodule/core (= 0.70.6)
  - React-runtimeexecutor (0.70.6):
    - React-jsi (= 0.70.6)
  - ReactCommon/turbomodule/core (0.70.6):
    - DoubleConversion
    - glog
    - RCT-Folly (= 2021.07.22.00)
    - React-bridging (= 0.70.6)
    - React-callinvoker (= 0.70.6)
    - React-Core (= 0.70.6)
    - React-cxxreact (= 0.70.6)
    - React-jsi (= 0.70.6)
    - React-logger (= 0.70.6)
    - React-perflogger (= 0.70.6)
  - RealmJS (10.24.0):
    - GCDWebServer
    - React
  - RNCAsyncStorage (1.17.12):
    - React-Core
  - RNCMaskedView (0.2.8):
    - React-Core
  - RNFastImage (8.6.3):
    - React-Core
    - SDWebImage (~> 5.11.1)
    - SDWebImageWebPCoder (~> 0.8.4)
  - RNFBAnalytics (16.5.2):
    - Firebase/Analytics (= 10.3.0)
    - React-Core
    - RNFBApp
  - RNFBApp (16.5.2):
    - Firebase/CoreOnly (= 10.3.0)
    - React-Core
  - RNGestureHandler (2.8.0):
    - React-Core
  - RNPDF (0.14.0):
    - React
  - RNReanimated (2.12.0):
    - DoubleConversion
    - FBLazyVector
    - FBReactNativeSpec
    - glog
    - RCT-Folly
    - RCTRequired
    - RCTTypeSafety
    - React-callinvoker
    - React-Core
    - React-Core/DevSupport
    - React-Core/RCTWebSocket
    - React-CoreModules
    - React-cxxreact
    - React-jsi
    - React-jsiexecutor
    - React-jsinspector
    - React-RCTActionSheet
    - React-RCTAnimation
    - React-RCTBlob
    - React-RCTImage
    - React-RCTLinking
    - React-RCTNetwork
    - React-RCTSettings
    - React-RCTText
    - ReactCommon/turbomodule/core
    - Yoga
  - RNScreens (3.18.2):
    - React-Core
    - React-RCTImage
  - RNZipArchive (6.0.9):
    - React-Core
    - RNZipArchive/Core (= 6.0.9)
    - SSZipArchive (~> 2.2)
  - RNZipArchive/Core (6.0.9):
    - React-Core
    - SSZipArchive (~> 2.2)
  - SDWebImage (5.11.1):
    - SDWebImage/Core (= 5.11.1)
  - SDWebImage/Core (5.11.1)
  - SDWebImageWebPCoder (0.8.5):
    - libwebp (~> 1.0)
    - SDWebImage/Core (~> 5.10)
  - SSZipArchive (2.4.3)
  - Yoga (1.14.0)

DEPENDENCIES:
  - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
  - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  - EASClient (from `../node_modules/expo-eas-client/ios`)
  - EXApplication (from `../node_modules/expo-application/ios`)
  - EXBlur (from `../node_modules/expo-blur/ios`)
  - EXConstants (from `../node_modules/expo-constants/ios`)
  - EXErrorRecovery (from `../node_modules/expo-error-recovery/ios`)
  - EXFileSystem (from `../node_modules/expo-file-system/ios`)
  - EXFont (from `../node_modules/expo-font/ios`)
  - EXGL (from `../node_modules/expo-gl`)
  - EXJSONUtils (from `../node_modules/expo-json-utils/ios`)
  - EXManifests (from `../node_modules/expo-manifests/ios`)
  - Expo (from `../node_modules/expo`)
  - ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
  - ExpoModulesCore (from `../node_modules/expo-modules-core`)
  - ExpoWebBrowser (from `../node_modules/expo-web-browser/ios`)
  - EXScreenOrientation (from `../node_modules/expo-screen-orientation/ios`)
  - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`)
  - EXStructuredHeaders (from `../node_modules/expo-structured-headers/ios`)
  - EXUpdates (from `../node_modules/expo-updates/ios`)
  - EXUpdatesInterface (from `../node_modules/expo-updates-interface/ios`)
  - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
  - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
  - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
  - hermes-engine (from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`)
  - libevent (~> 2.1.12)
  - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
  - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
  - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
  - React (from `../node_modules/react-native/`)
  - React-bridging (from `../node_modules/react-native/ReactCommon`)
  - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
  - React-Codegen (from `build/generated/ios`)
  - React-Core (from `../node_modules/react-native/`)
  - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
  - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
  - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
  - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`)
  - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
  - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
  - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
  - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
  - react-native-background-downloader (from `../node_modules/react-native-background-downloader`)
  - react-native-maps (from `../node_modules/react-native-maps`)
  - "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
  - react-native-render-html (from `../node_modules/react-native-render-html`)
  - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
  - react-native-video (from `../node_modules/react-native-video`)
  - react-native-webview (from `../node_modules/react-native-webview`)
  - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
  - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
  - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
  - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
  - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
  - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
  - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
  - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
  - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
  - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
  - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
  - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
  - RealmJS (from `../node_modules/realm`)
  - "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
  - "RNCMaskedView (from `../node_modules/@react-native-masked-view/masked-view`)"
  - RNFastImage (from `../node_modules/react-native-fast-image`)
  - "RNFBAnalytics (from `../node_modules/@react-native-firebase/analytics`)"
  - "RNFBApp (from `../node_modules/@react-native-firebase/app`)"
  - RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
  - RNPDF (from `../node_modules/react-native-view-pdf`)
  - RNReanimated (from `../node_modules/react-native-reanimated`)
  - RNScreens (from `../node_modules/react-native-screens`)
  - RNZipArchive (from `../node_modules/react-native-zip-archive`)
  - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
  trunk:
    - ASN1Decoder
    - Firebase
    - FirebaseAnalytics
    - FirebaseCore
    - FirebaseCoreInternal
    - FirebaseInstallations
    - fmt
    - GCDWebServer
    - GoogleAppMeasurement
    - GoogleUtilities
    - libevent
    - libwebp
    - nanopb
    - PromisesObjC
    - SDWebImage
    - SDWebImageWebPCoder
    - SSZipArchive

EXTERNAL SOURCES:
  boost:
    :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
  DoubleConversion:
    :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
  EASClient:
    :path: "../node_modules/expo-eas-client/ios"
  EXApplication:
    :path: "../node_modules/expo-application/ios"
  EXBlur:
    :path: "../node_modules/expo-blur/ios"
  EXConstants:
    :path: "../node_modules/expo-constants/ios"
  EXErrorRecovery:
    :path: "../node_modules/expo-error-recovery/ios"
  EXFileSystem:
    :path: "../node_modules/expo-file-system/ios"
  EXFont:
    :path: "../node_modules/expo-font/ios"
  EXGL:
    :path: "../node_modules/expo-gl"
  EXJSONUtils:
    :path: "../node_modules/expo-json-utils/ios"
  EXManifests:
    :path: "../node_modules/expo-manifests/ios"
  Expo:
    :path: "../node_modules/expo"
  ExpoKeepAwake:
    :path: "../node_modules/expo-keep-awake/ios"
  ExpoModulesCore:
    :path: "../node_modules/expo-modules-core"
  ExpoWebBrowser:
    :path: "../node_modules/expo-web-browser/ios"
  EXScreenOrientation:
    :path: "../node_modules/expo-screen-orientation/ios"
  EXSplashScreen:
    :path: "../node_modules/expo-splash-screen/ios"
  EXStructuredHeaders:
    :path: "../node_modules/expo-structured-headers/ios"
  EXUpdates:
    :path: "../node_modules/expo-updates/ios"
  EXUpdatesInterface:
    :path: "../node_modules/expo-updates-interface/ios"
  FBLazyVector:
    :path: "../node_modules/react-native/Libraries/FBLazyVector"
  FBReactNativeSpec:
    :path: "../node_modules/react-native/React/FBReactNativeSpec"
  glog:
    :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
  hermes-engine:
    :podspec: "../node_modules/react-native/sdks/hermes/hermes-engine.podspec"
  RCT-Folly:
    :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
  RCTRequired:
    :path: "../node_modules/react-native/Libraries/RCTRequired"
  RCTTypeSafety:
    :path: "../node_modules/react-native/Libraries/TypeSafety"
  React:
    :path: "../node_modules/react-native/"
  React-bridging:
    :path: "../node_modules/react-native/ReactCommon"
  React-callinvoker:
    :path: "../node_modules/react-native/ReactCommon/callinvoker"
  React-Codegen:
    :path: build/generated/ios
  React-Core:
    :path: "../node_modules/react-native/"
  React-CoreModules:
    :path: "../node_modules/react-native/React/CoreModules"
  React-cxxreact:
    :path: "../node_modules/react-native/ReactCommon/cxxreact"
  React-hermes:
    :path: "../node_modules/react-native/ReactCommon/hermes"
  React-jsi:
    :path: "../node_modules/react-native/ReactCommon/jsi"
  React-jsiexecutor:
    :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
  React-jsinspector:
    :path: "../node_modules/react-native/ReactCommon/jsinspector"
  React-logger:
    :path: "../node_modules/react-native/ReactCommon/logger"
  react-native-background-downloader:
    :path: "../node_modules/react-native-background-downloader"
  react-native-maps:
    :path: "../node_modules/react-native-maps"
  react-native-netinfo:
    :path: "../node_modules/@react-native-community/netinfo"
  react-native-render-html:
    :path: "../node_modules/react-native-render-html"
  react-native-safe-area-context:
    :path: "../node_modules/react-native-safe-area-context"
  react-native-video:
    :path: "../node_modules/react-native-video"
  react-native-webview:
    :path: "../node_modules/react-native-webview"
  React-perflogger:
    :path: "../node_modules/react-native/ReactCommon/reactperflogger"
  React-RCTActionSheet:
    :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
  React-RCTAnimation:
    :path: "../node_modules/react-native/Libraries/NativeAnimation"
  React-RCTBlob:
    :path: "../node_modules/react-native/Libraries/Blob"
  React-RCTImage:
    :path: "../node_modules/react-native/Libraries/Image"
  React-RCTLinking:
    :path: "../node_modules/react-native/Libraries/LinkingIOS"
  React-RCTNetwork:
    :path: "../node_modules/react-native/Libraries/Network"
  React-RCTSettings:
    :path: "../node_modules/react-native/Libraries/Settings"
  React-RCTText:
    :path: "../node_modules/react-native/Libraries/Text"
  React-RCTVibration:
    :path: "../node_modules/react-native/Libraries/Vibration"
  React-runtimeexecutor:
    :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
  ReactCommon:
    :path: "../node_modules/react-native/ReactCommon"
  RealmJS:
    :path: "../node_modules/realm"
  RNCAsyncStorage:
    :path: "../node_modules/@react-native-async-storage/async-storage"
  RNCMaskedView:
    :path: "../node_modules/@react-native-masked-view/masked-view"
  RNFastImage:
    :path: "../node_modules/react-native-fast-image"
  RNFBAnalytics:
    :path: "../node_modules/@react-native-firebase/analytics"
  RNFBApp:
    :path: "../node_modules/@react-native-firebase/app"
  RNGestureHandler:
    :path: "../node_modules/react-native-gesture-handler"
  RNPDF:
    :path: "../node_modules/react-native-view-pdf"
  RNReanimated:
    :path: "../node_modules/react-native-reanimated"
  RNScreens:
    :path: "../node_modules/react-native-screens"
  RNZipArchive:
    :path: "../node_modules/react-native-zip-archive"
  Yoga:
    :path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
  ASN1Decoder: 6110fdeacfdb41559b1481457a1645be716610aa
  boost: a7c83b31436843459a1961bfd74b96033dc77234
  DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
  EASClient: 19efe9e8ef9b3917c5f3dcb3ed82319de4d8c0bd
  EXApplication: 034b1c40a8e9fe1bff76a1e511ee90dff64ad834
  EXBlur: d87af64a1b4ae264059983bf54baca72be2cbc7d
  EXConstants: 3c86653c422dd77e40d10cbbabb3025003977415
  EXErrorRecovery: ae43433feb0608a64dc5b1c8363b3e7769a9ea24
  EXFileSystem: 60602b6eefa6873f97172c684b7537c9760b50d6
  EXFont: 319606bfe48c33b5b5063fb0994afdc496befe80
  EXGL: 5f24aaf2552f784d5d59e960823faf53d120893c
  EXJSONUtils: 09aef2c1fba1a116ca8c73a2c8299aac00d96b43
  EXManifests: 347f49430b63444579aa013f0ad057d16b8d1cc8
  Expo: b9fa98bf260992312ee3c424400819fb9beadafe
  ExpoKeepAwake: 69b59d0a8d2b24de9f82759c39b3821fec030318
  ExpoModulesCore: 485dff3a59b036a33b6050c0a5aea3cf1037fdd1
  ExpoWebBrowser: 073e50f16669d498fb49063b9b7fe780b24f7fda
  EXScreenOrientation: 07e5aeff07bce09a2b214981e612d87fd7719997
  EXSplashScreen: 3e989924f61a8dd07ee4ea584c6ba14be9b51949
  EXStructuredHeaders: fb774e45eac2e5d62ba40b28176bfbfba61b843e
  EXUpdates: e687436502147e80ef13cf6eedd17e3039ef47d6
  EXUpdatesInterface: bffd1ead18f0bab04fa784ca159c115607b8a23c
  FBLazyVector: 48289402952f4f7a4e235de70a9a590aa0b79ef4
  FBReactNativeSpec: dd1186fd05255e3457baa2f4ca65e94c2cd1e3ac
  Firebase: f92fc551ead69c94168d36c2b26188263860acd9
  FirebaseAnalytics: 036232b6a1e2918e5f67572417be1173576245f3
  FirebaseCore: 988754646ab3bd4bdcb740f1bfe26b9f6c0d5f2a
  FirebaseCoreInternal: c7cd505e2136811096b225ac388d6254a2622362
  FirebaseInstallations: 13dde135fa0524e15bddb133ccc8465c53a1b3f3
  fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
  GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4
  glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
  GoogleAppMeasurement: c7d6fff39bf2d829587d74088d582e32d75133c3
  GoogleUtilities: c2bdc4cf2ce786c4d2e6b3bcfd599a25ca78f06f
  hermes-engine: 2af7b7a59128f250adfd86f15aa1d5a2ecd39995
  libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
  libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef
  nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
  PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef
  RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda
  RCTRequired: e1866f61af7049eb3d8e08e8b133abd38bc1ca7a
  RCTTypeSafety: 27c2ac1b00609a432ced1ae701247593f07f901e
  React: bb3e06418d2cc48a84f9666a576c7b38e89cd7db
  React-bridging: 572502ec59c9de30309afdc4932e278214288913
  React-callinvoker: 6b708b79c69f3359d42f1abb4663f620dbd4dadf
  React-Codegen: 74e1cd7cee692a8b983c18df3274b5e749de07c8
  React-Core: b587d0a624f9611b0e032505f3d6f25e8daa2bee
  React-CoreModules: c6ff48b985e7aa622e82ca51c2c353c7803eb04e
  React-cxxreact: ade3d9e63c599afdead3c35f8a8bd12b3da6730b
  React-hermes: ed09ae33512bbb8d31b2411778f3af1a2eb681a1
  React-jsi: 5a3952e0c6d57460ad9ee2c905025b4c28f71087
  React-jsiexecutor: b4a65947391c658450151275aa406f2b8263178f
  React-jsinspector: 60769e5a0a6d4b32294a2456077f59d0266f9a8b
  React-logger: 1623c216abaa88974afce404dc8f479406bbc3a0
  react-native-background-downloader: 4a034cf39a3b00fac57364984e360a4f180a5efb
  react-native-maps: 085f614cf14d3637b2048bb9752da5b1c27c2886
  react-native-netinfo: 85b2a435c4d3705c08b0c42ff2d6ef6b9622ea0a
  react-native-render-html: 012780b92993ab33b3ae0240b90e585d00c70808
  react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a
  react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253
  react-native-webview: d33e2db8925d090871ffeb232dfa50cb3a727581
  React-perflogger: 8c79399b0500a30ee8152d0f9f11beae7fc36595
  React-RCTActionSheet: 7316773acabb374642b926c19aef1c115df5c466
  React-RCTAnimation: 5341e288375451297057391227f691d9b2326c3d
  React-RCTBlob: b0615fc2daf2b5684ade8fadcab659f16f6f0efa
  React-RCTImage: 6487b9600f268ecedcaa86114d97954d31ad4750
  React-RCTLinking: c8018ae9ebfefcec3839d690d4725f8d15e4e4b3
  React-RCTNetwork: 8aa63578741e0fe1205c28d7d4b40dbfdabce8a8
  React-RCTSettings: d00c15ad369cd62242a4dfcc6f277912b4a84ed3
  React-RCTText: f532e5ca52681ecaecea452b3ad7a5b630f50d75
  React-RCTVibration: c75ceef7aa60a33b2d5731ebe5800ddde40cefc4
  React-runtimeexecutor: 15437b576139df27635400de0599d9844f1ab817
  ReactCommon: 349be31adeecffc7986a0de875d7fb0dcf4e251c
  RealmJS: 2e45ca6ed4c3732be369219b41816e890ce51024
  RNCAsyncStorage: 09fc8595e6d6f6d5abf16b23a56b257d9c6b7c5b
  RNCMaskedView: bc0170f389056201c82a55e242e5d90070e18e5a
  RNFastImage: 5c9c9fed9c076e521b3f509fe79e790418a544e8
  RNFBAnalytics: 0c5cde0807272db3727795f35d3c232f1e13ef13
  RNFBApp: 93d1a4e5ce5d2d20d721adf866d1a0c4b58e6432
  RNGestureHandler: 62232ba8f562f7dea5ba1b3383494eb5bf97a4d3
  RNPDF: 8526c7210ff375c29d2461c51945e2f5480f7b60
  RNReanimated: 2a91e85fcd343f8af3c58d3425b99fdd285590a5
  RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d
  RNZipArchive: 68a0c6db4b1c103f846f1559622050df254a3ade
  SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
  SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
  SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
  Yoga: 99caf8d5ab45e9d637ee6e0174ec16fbbb01bcfc

PODFILE CHECKSUM: a60e5aff93df67c4db2024adc36dcc5bfe105ca2

COCOAPODS: 1.12.0

gemfile.lock:

GEM
  remote: https://rubygems.org/
  specs:
    CFPropertyList (3.0.6)
      rexml
    activesupport (7.0.4.3)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
    addressable (2.8.1)
      public_suffix (>= 2.0.2, < 6.0)
    algoliasearch (1.27.5)
      httpclient (~> 2.8, >= 2.8.3)
      json (>= 1.5.1)
    atomos (0.1.3)
    claide (1.1.0)
    cocoapods (1.12.0)
      addressable (~> 2.8)
      claide (>= 1.0.2, < 2.0)
      cocoapods-core (= 1.12.0)
      cocoapods-deintegrate (>= 1.0.3, < 2.0)
      cocoapods-downloader (>= 1.6.0, < 2.0)
      cocoapods-plugins (>= 1.0.0, < 2.0)
      cocoapods-search (>= 1.0.0, < 2.0)
      cocoapods-trunk (>= 1.6.0, < 2.0)
      cocoapods-try (>= 1.1.0, < 2.0)
      colored2 (~> 3.1)
      escape (~> 0.0.4)
      fourflusher (>= 2.3.0, < 3.0)
      gh_inspector (~> 1.0)
      molinillo (~> 0.8.0)
      nap (~> 1.0)
      ruby-macho (>= 2.3.0, < 3.0)
      xcodeproj (>= 1.21.0, < 2.0)
    cocoapods-core (1.12.0)
      activesupport (>= 5.0, < 8)
      addressable (~> 2.8)
      algoliasearch (~> 1.0)
      concurrent-ruby (~> 1.1)
      fuzzy_match (~> 2.0.4)
      nap (~> 1.0)
      netrc (~> 0.11)
      public_suffix (~> 4.0)
      typhoeus (~> 1.0)
    cocoapods-deintegrate (1.0.5)
    cocoapods-downloader (1.6.3)
    cocoapods-plugins (1.0.0)
      nap
    cocoapods-search (1.0.1)
    cocoapods-trunk (1.6.0)
      nap (>= 0.8, < 2.0)
      netrc (~> 0.11)
    cocoapods-try (1.2.0)
    colored2 (3.1.2)
    concurrent-ruby (1.2.2)
    escape (0.0.4)
    ethon (0.16.0)
      ffi (>= 1.15.0)
    ffi (1.15.5)
    fourflusher (2.3.1)
    fuzzy_match (2.0.4)
    gh_inspector (1.1.3)
    httpclient (2.8.3)
    i18n (1.12.0)
      concurrent-ruby (~> 1.0)
    json (2.6.3)
    minitest (5.18.0)
    molinillo (0.8.0)
    nanaimo (0.3.0)
    nap (1.1.0)
    netrc (0.11.0)
    public_suffix (4.0.7)
    rexml (3.2.5)
    ruby-macho (2.5.1)
    typhoeus (1.4.0)
      ethon (>= 0.9.0)
    tzinfo (2.0.6)
      concurrent-ruby (~> 1.0)
    xcodeproj (1.22.0)
      CFPropertyList (>= 2.3.3, < 4.0)
      atomos (~> 0.1.3)
      claide (>= 1.0.2, < 2.0)
      colored2 (~> 3.1)
      nanaimo (~> 0.3.0)
      rexml (~> 3.2.4)

PLATFORMS
  ruby

DEPENDENCIES
  cocoapods (~> 1.11, >= 1.11.2)

RUBY VERSION
   ruby 2.7.5p203

BUNDLED WITH
   2.4.8

npx react-native info:

info Fetching system and libraries information...
System:
    OS: macOS 13.2.1
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 40.63 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.19.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.19.3 - /usr/local/bin/npm
    Watchman: 2023.02.13.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: Not Found
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2022.1 AI-221.6008.13.2211.9619390
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.18 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.6 => 0.70.6 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

The app build's successfully and generates the dsym, but it does not launch. it tries to bundle in metro and then just crashes.

@cipolleschi
Copy link
Contributor

Hi @Geneonosis, thanks for
Posting the question. From your Podfile, you are using Expo: you should open an issue on their repository as Expo as their modules may change how React Native behave and they are better equipped to give you support.

@Geneonosis
Copy link

hey @cipolleschi thanks for responding so quickly, yeah the project is using expo, but its an expo bare workflow so I still do everything in react-native with the react-native cli. However, I agree that there are still differences, I am trouble shooting a couple things on my end still. I will take your advice and reach out to them if I still cant bear any fruit from my approaches.

Thanks again, sorry for bloating the thread.

@cipolleschi
Copy link
Contributor

@Geneonosis, no problem! We are here for help everyone to the best of our possibilities! :D
Maybe, when you found the solution, post it here so other people can benefit from it! ;)

@Geneonosis
Copy link

Geneonosis commented Mar 28, 2023

I did solve my problem, but I do not think it was related to the hermes engine afterall. I believe that my issue was related to expo specifically (now that I have gotten it to work). restarted my exploration from an earlier commit and followed the expo 47 documentation reading the entire thing and paying particularly close attention to the section on Bare Workflow. I then found an expo bare minimum template for expo 47 on their GitHub repository and verified several files based on it. I also allowed the expo-cli to upgrade expo in my project. after that I double checked react-native dependencies using the React Native Upgrade Helper Tool. Finally I found that expo can build my project using npx expo run:ios instead of using npx react-native run-ios and I think this was maybe one of the biggest pieces of the puzzle.

I hope that this helps anyone else in the future. though again, I'd like to state that I think my particular problem and solution might be unrelated to hermes.

@SalaarFiend
Copy link

Hello!
I had the same problem, but I solved it and told about it here.
I hope this helps someone!

@manojalwisnz
Copy link

Just disable hermes in podfile

:hermes_enabled => flags[:false],

@shubhamguptadream11
Copy link
Collaborator

Cause: In node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec from react-native 0.70.0 minimum iOS deployment target is upgraded to 12.4 from 11.0.

Solution: So, I just upgraded my minimum iOS deployment target to 12.4 and it works.

I hope this helps someone!

@manakuro
Copy link

manakuro commented Jan 29, 2024

After upgrading React Native to 0.73.2, I did the following steps and it worked.

Update cocoapods to 1.13.0 and make sure the activesupport is under 7.1.0 in Gemfile.

Gemfile

gem 'cocoapods', '1.13.0'
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'

Update gem.

bundle update cocoapods activesupport

Next, install pod.

bundle exec pod install

After installation, one script phase of hermes-engine will be added as follows.

[!] 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.

Build it and working.

@reichert621
Copy link

Updating cocoapods to the latest version solved this issue for me! (just had to run sudo gem install cocoapods and check that pod --version was 1.15.x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS iOS applications. Resolution: Answered When the issue is resolved with a simple answer
Projects
None yet
Development

No branches or pull requests