Repository navigation
App crashes with dyld[38734]: symbol not found in flat namespace '_jump_fcontext' with use_frameworks! #39945
Description
Activity
- addedType: Upgrade IssueIssues reported from upgrade issue formIssues reported from upgrade issue form
on Oct 6, 2023 - addedNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.
on Oct 6, 2023 ⚠️ Missing Reproducible Example ℹ️ We could not detect a reproducible example in your issue report. Please provide either: - If your bug is UI related: a Snack
- If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
Hi Luiz, can you try if this is happening also with Xcode 14? I fear that it is an Xcode 15 issue, unfortunately...
Hi,
I get the following different error in XCode 14.3.1 when building the app:

Ld /Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/libevent.build/Objects-normal/x86_64/Binary/libevent normal x86_64 (in target 'libevent' from project 'Pods') cd /Users/louis.zawadzki/go/src/github.com/DataDog/mobile/apps/MyApp/ios/Pods /Applications/Xcode-14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target x86_64-apple-ios13.4-simulator -dynamiclib -isysroot /Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -L/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Intermediates.noindex/EagerLinkingTBDs/Release-iphonesimulator -L/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Products/Release-iphonesimulator/libevent -F/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Intermediates.noindex/EagerLinkingTBDs/Release-iphonesimulator -F/Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Products/Release-iphonesimulator/libevent -filelist /Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent.LinkFileList -install_name @rpath/libevent.framework/libevent -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Wl -ld_classic -framework Foundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent_dependency_info.dat -o /Users/louis.zawadzki/Library/Developer/Xcode/DerivedData/MyApp-foosftvymsuqgubztrolvgonqfox/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/libevent.build/Objects-normal/x86_64/Binary/libevent ld: library not found for -ld_classic clang: error: linker command failed with exit code 1 (use -v to see invocation)Following the hint from this issue I'm able to build by removing the
-ld_classicflag in Pods and libevent targets (removing it inproject.pbxprojwasn't enough), then the app works fine with XCode 14.3.1.yes, so... to run it in Xcode 14.3, you need to switch the build tool with
xcode-selectand rerun pod install to let cocoapods remove the flags for you. At that point, you don't have-ld_classicanymore and it work right away.Can you try again with Xcode 15.1? My app works with Xcode 15.1...
Hi!
Sorry for the long delay, I just retried with rc3 and I don't reproduce the issue anymore, I'll close this issue :)@cipolleschi i have the exact same problem.
Started a new projectnpx react-native@latest init AwesomeProjectTest, ranUSE_FRAMEWORKS=dynamic NO_FLIPPER=1 pod installReact Native info:
info Fetching system and libraries information... System: OS: macOS 14.2 CPU: (10) arm64 Apple M1 Max Memory: 309.75 MB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.16.1 path: ~/.nvm/versions/node/v18.16.1/bin/node Yarn: version: 1.22.17 path: /opt/homebrew/bin/yarn npm: version: 9.5.1 path: ~/.nvm/versions/node/v18.16.1/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.14.3 path: /Users/mateioprea/.rvm/gems/ruby-2.7.6/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 23.2 - iOS 17.2 - macOS 14.2 - tvOS 17.2 - watchOS 10.2 Android SDK: API Levels: - "28" - "29" - "30" - "31" - "32" - "33" - "33" Build Tools: - 28.0.3 - 29.0.2 - 30.0.2 - 30.0.3 - 32.0.0 - 33.0.0 - 33.0.2 - 34.0.0 System Images: - android-31 | Google Play ARM 64 v8a - android-32 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: Giraffe 2022.3.1 Patch 2 Giraffe 2022.3.1 Patch 2 Xcode: version: 15.1/15C65 path: /usr/bin/xcodebuild Languages: Java: version: 20.0.1 path: /opt/homebrew/opt/openjdk/bin/javac Ruby: version: 2.7.6 path: /Users/mateioprea/.rvm/rubies/ruby-2.7.6/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.0 wanted: 0.73.0 react-native-macos: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: falseReacted by Ogulcan Gündüzsame on
"react-native": "0.73.0",- which version of Xcode are you using? (you can check it by running
xcodebuild -v) - why are you not using bundler? (specifically, you should run
USE_FRAMEWORKS=dynamic NO_FLIPPER=1 bundle exec pod install) - I just tried the following:
npx react-native@latest init AwesomeProjectTest --skip-install cd AwesomeProjectTest yarn install cd ios bundle install USE_FRAMEWORKS=dynamic NO_FLIPPER=1 bundle exec pod install open AwesomeProjectTest.xcworkspaceand them ⌘+R
and it works.
$ xcodebuild -version Xcode 15.1 Build version 15C5028h
Can you try again?
- which version of Xcode are you using? (you can check it by running
@cipolleschi, I tried those steps, and I get the
dyld[620]: symbol not found in flat namespace '_jump_fcontext'error only when I run in a physical device. If I target a simulator, everything works fine.Here's the requested info, if it helps:
$ xcodebuild -version Xcode 15.1 Build version 15C65
And the output of
react-native info:$ npx react-native@latest info info Fetching system and libraries information... System: OS: macOS 14.2 CPU: (10) arm64 Apple M1 Max Memory: 2.28 GB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.10.0 path: ~/.nvm/versions/node/v20.10.0/bin/node Yarn: version: 1.22.21 path: /opt/homebrew/bin/yarn npm: version: 10.2.5 path: ~/.nvm/versions/node/v20.10.0/bin/npm Watchman: version: 2023.12.04.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.14.3 path: /Users/rfontes/.rvm/gems/ruby-3.0.6/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 23.2 - iOS 17.2 - macOS 14.2 - tvOS 17.2 - watchOS 10.2 Android SDK: Not Found IDEs: Android Studio: 2023.1 AI-231.9392.1.2311.11076708 Xcode: version: 15.1/15C65 path: /usr/bin/xcodebuild Languages: Java: version: 11.0.21 path: /usr/bin/javac Ruby: version: 3.0.6 path: /Users/rfontes/.rvm/rubies/ruby-3.0.6/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.1 wanted: 0.73.1 react-native-macos: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: falseReacted by Delphine Bugner, Ahmada Khalid, Ryan Marshall, Hocine Moukaideche, Jakub Myśliwiec, KingAmo and Victor NeirinckxI managed to reproduce it.
This is not a simple bug, as the stack trace reports that it happens in thread 1 at startup with little to no extra information.
I also tried in release mode and it still fails.
I'll need some more time to investigate. It could be an apple bug of the new linker too.Have you tried with Xcode 15.2-beta already?
25 remaining items
Thanks for the update. Dynamic frameworks is a must for my app but installing xcode 15.1 does the job so I guess I'll need to instruct my team to change it manually. Thanks again
I'm really sorry for this as I hoped we fixed this for good. :(
I'm discussing internally how to move forward, perhaps we can find a fix and backport it to 0.73 as well, but it will take some time...Reacted by Bruno Centanaro and Jonathan BeebeI just disabled Hermes on iOS in Podfile and it helped.
:hermes_enabled => false,yeah, that's another workaround. The problem is that React-Hermes depends on a subpod of Folly which depends on the
_jump_fcontextsymbol provided by boost.
The symbol is a weak symbol and the new Apple linker does not supports weak symbols anymore. :(Dynamic frameworks are not critical in my app, so let's get back to the good old static 🐢 🐢
Thanks for looking into this! Got really confused to have the crash back when upgrading to XCode 15.3 🥲
Reacted by Riccardo Cipolleschisame here, any update on this?
- use_frameworks!
- hermes enabled
- new arc: false
- react-native:0.73.8
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuildSDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/podsame here, any update on this?
- use_frameworks!
- hermes enabled
- new arc: false
- react-native:0.73.8
Xcode: version: 15.4/15F31d path: /usr/bin/xcodebuild
SDKs: iOS SDK: Platforms: - DriverKit 23.5 - iOS 17.5 - macOS 14.5 - tvOS 17.5 - visionOS 1.2 - watchOS 10.5
CocoaPods: version: 1.15.2 path: /opt/homebrew/bin/pod
update: after downgrade Xcode to 15.2, this error gone (Xcode 15.3 not work either)
Reacted by Riccardo CipolleschiHas anyone tried with Xcode 15.4 already? (haven't had the time yet!)
Has anyone tried with Xcode 15.4 already? (haven't had the time yet!)
yes , see my commont above, i already tried Xcode 15.4
Problem was solved on 0.74.x
- use_frameworks! (Dynamic)
- hermes: enabled
- new arc: false
- react-native: 0.74.5
- xcode: 15.4 (15F31d)
now everything works!
I recently upgraded a project to React Native 0.73 and encountered an issue with TestFlight builds created using Xcode 16.1. Based on this thread, it appears that upgrading to React Native 0.74 or not using Hermes might be the only solutions. Are there any alternative workarounds available?
The workaround was to use static frameworks rather than dynamic frameworks.
0.73 is now out of support, I suggest you to move to 0.76, eventually disabling the New Architecture if you are facing issues.
Despite that, I recently tried this and it was working fine on device.
This was NOT a react native issue, but a bug from Apple in the C++ compiler and that they fixed.
I'm very sad. Xcode 15.2 => everytyhing works. Xcode 15.3 => crashes with the above error.
This is an Xcode regression. I'll try to:
- apply the old
-Wl -ld_classicflags and see if it fixes. - try to reach out to Apple to talk about this.
I changed to
-Wl -ld_classicand it works for the emulator. but in the real devices, it still causes crash the app.
My env: Xcode 16.2, React-native 0.71.8- apply the old
@vietdung97 0.71 is out of support. You should update to a newer version of React Native.
I just tested with dynamic frameworks in RN0.79.0-rc.0 and the app loaded on the device, so the issue is solved in newer versions.


New Version
0.73.0-rc.1
Old Version
0.72.5
Build Target(s)
iOS simulator
Output of
react-native infoIssue and Reproduction Steps
npx react-native@latest init MyApp --version 0.73.0-rc.1(cd ios && USE_FRAMEWORKS=dynamic pod install)The app crashes immediately with the following error:
XCode screenshot: