[Xcode 11] [iOS 13] EXC_BAD_ACCESS in fishhook.c
See original GitHub issueBug
When running my app on an iPhone XR (iOS 13), the app immediately crashes with EXC_BAD_ACCESS.

I can only reproduce this when running on a physical iPhone. iPad and simulator both work fine.
Environment info
React native info output:
info
React Native Environment Info:
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Memory: 1.78 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.16.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 11.0/11M336w - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: ^0.59.9 => 0.59.9
Library version: 0.59.9
Steps To Reproduce
Make a new React Native project with react-native init
and run on device.
Describe what you expected to happen:
- App to not crash immediately
Reproducible sample code
Here That’s a link to a repo I just made for a test project.
EDIT: Fixed the link to the repo
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:19
Top Results From Across the Web
App Crash in iOS 15 - EXC_BAD_ACCESS (SIGBUS) Exception
Hi We have an app using React Native 0.55.2 and is working fine in Xcode 12.5 and able to launch in iOS 14....
Read more >react-native run-ios command not running successfully after ...
I had a similar problem. Though I had react-native version 59.10. Solution was to use patch-package to alter react-native fishhook.c file:
Read more >iOS13 crashes instantly for some (EXC_BAD_ACCESS ...
A change in iOS 13 beta's Obj-C runtime crashes all apps that use ... was similar was : [Xcode 11] [iOS 13] EXC_BAD_ACCESS...
Read more >EXC_BAD_ACCESS crash error: Understanding and solving it
EXC_BAD_ACCESS crashes are annoying but solvable using the right tools. Learn how to use the Xcode sanitizers to fix those crashes in Swift....
Read more >解决XCode iOS13 indirect_symbol_bindings[i] = cur ...
2. 覆盖掉项目中的旧文件(崩溃的时候会自动定位到该旧文件的位置),直接覆盖替换。然后重新运行即可。 注意要覆盖两个文件。 一般报错是在fishhook.c , ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For you guys who are still working on 0.59.10 and hard to apply 46bdb41 patch in to your local. Go to ‘node_modules/react-native/Libraries/fishhook/fishhook.c’ and delete whole method ‘perform_rebinding_with_section’ content, keep the method definition. Save -> Done.
The curious thing is that this error only happens on iphones 11, on inferior devices like X, the error does not happen …