-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Comments
Actually its working if i disable hermes on Podfile |
I solved it by adding
|
Where did u get |
Temporary fix: change highlighted area with:
DO NOT RUN POD INSTALL just npx react-native run-ios |
It woked for me, thanks. |
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: And finally call it from the post install script
|
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 |
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 |
|
Hi @kelset The repro steps are.
And then Hermes is not included with in the build.
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. |
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. |
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 ?
Other wise i'm on the same versions and have tried downgrading upgrading to see if there is a difference.
|
It's not that, I just tested on my intel machine and it also works just fine:
screenshot: |
@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:
|
My Pods/Target Support Files/Pods/test/Pods-test-frameworks that missing any linkage to hermes.
|
@kelset I'm also getting this issue and adding FWIW
|
Hi there! @traviswimer we decided to adopt Thanks to the
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. |
@cipolleschi @Gnative Thanks for the clarification. My understanding from this is that the cli now creates a 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! |
i updated from 0.70.0 to 0.70.6 and it works for me now |
I have the same issue, in GitHub action macos-12.
This didn't work for us, in GitHub action macos-12 runner, still produce a bad build We also use React Native 0.68.5, any clue how we can do ? |
@kopax-polyconseil I'm not sure if this is the problem, but the You might want to check your Also, if you look at my previous comment, you'll see that you missed one step that needs to be run before installing pods: It may also have something to do with the 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).
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 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:
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:
What else can I try ? |
@kopax-polyconseil Since the problem is only on Github Actions, I'd probably look into whether it's caching anything from previous runs. If 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. |
I already tried it and it didn't work. We will have to try to upgrade to React Native and pray :) |
Upgrading to Cocoapods 1.11.3 did the trick for me as well. Thanks @brandonmoon and all |
Same error in react-native 0.71.2 |
So it won't help @anisamirouche this is important information, you are not able to build in github action despite the upgrade ? |
What do you mean build in GitHub action ? |
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 As long as you use the Take a look at my other comment for more details: |
My ruby version and ruby version in gemfile are the same but I'm still having this error |
@anisamirouche That is only one part of the issue though. Did you ensure the version in the |
Thanks for your answer, how can I know which version of ruby is needed for react native 0.71.2 ? |
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
gemfile.lock:
npx react-native info:
The app build's successfully and generates the dsym, but it does not launch. it tries to bundle in metro and then just crashes. |
Hi @Geneonosis, thanks for |
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. |
@Geneonosis, no problem! We are here for help everyone to the best of our possibilities! :D |
I did solve my problem, but I do not think it was related to the 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. |
Hello! |
Just disable hermes in podfile :hermes_enabled => flags[:false], |
Cause: In Solution: So, I just upgraded my minimum iOS deployment target to 12.4 and it works. I hope this helps someone! |
After upgrading React Native to 0.73.2, I did the following steps and it worked. Update cocoapods to Gemfile
Update gem.
Next, install pod.
After installation, one script phase of hermes-engine will be added as follows.
Build it and working. |
Updating cocoapods to the latest version solved this issue for me! (just had to run |
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" : {
],
"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
Steps to reproduce
just run
npx react-native init testproject
thencd 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
The text was updated successfully, but these errors were encountered: