Skip to content

App crashes with dyld[38734]: symbol not found in flat namespace '_jump_fcontext' with use_frameworks!  #39945

Description

@louiszawadzki

New Version

0.73.0-rc.1

Old Version

0.72.5

Build Target(s)

iOS simulator

Output of react-native info

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

Issue and Reproduction Steps

  • Create a new project with npx react-native@latest init MyApp --version 0.73.0-rc.1
  • Run (cd ios && USE_FRAMEWORKS=dynamic pod install)
  • Build the app using XCode 15

The app crashes immediately with the following error:

dyld[38734]: symbol not found in flat namespace '_jump_fcontext'

XCode screenshot:

image

Activity

  1. added
    Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.
    on Oct 6, 2023
  2. github-actions commented on Oct 6, 2023

    @github-actions
    ⚠️ 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.
  3. cipolleschi commented on Oct 6, 2023

    @cipolleschi
    Contributor

    Hi Luiz, can you try if this is happening also with Xcode 14? I fear that it is an Xcode 15 issue, unfortunately...

  4. cipolleschi commented on Oct 6, 2023

    @cipolleschi
    Contributor

    Uhm... I just tried and it doesn't repro for me:
    Screenshot 2023-10-06 at 13 38 35

  5. louiszawadzki commented on Oct 6, 2023

    @louiszawadzki
    ContributorAuthor

    Hi,

    I get the following different error in XCode 14.3.1 when building the app:
    image

    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_classic flag in Pods and libevent targets (removing it in project.pbxproj wasn't enough), then the app works fine with XCode 14.3.1.

  6. cipolleschi commented on Oct 6, 2023

    @cipolleschi
    Contributor

    yes, so... to run it in Xcode 14.3, you need to switch the build tool with xcode-select and rerun pod install to let cocoapods remove the flags for you. At that point, you don't have -ld_classic anymore and it work right away.

    Can you try again with Xcode 15.1? My app works with Xcode 15.1...

  7. louiszawadzki commented on Nov 8, 2023

    @louiszawadzki
    ContributorAuthor

    Hi!
    Sorry for the long delay, I just retried with rc3 and I don't reproduce the issue anymore, I'll close this issue :)

  8. mateioprea commented on Dec 12, 2023

    @mateioprea

    @cipolleschi i have the exact same problem.
    Started a new project npx react-native@latest init AwesomeProjectTest, ran USE_FRAMEWORKS=dynamic NO_FLIPPER=1 pod install

    and then i get this
    Screenshot 2023-12-12 at 13 53 23

    React 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: false
    
    
    
  9. aybarska commented on Dec 15, 2023

    @aybarska

    same on "react-native": "0.73.0",

  10. cipolleschi commented on Dec 18, 2023

    @cipolleschi
    Contributor

    @mateioprea @aybarska

    1. which version of Xcode are you using? (you can check it by running xcodebuild -v)
    2. why are you not using bundler? (specifically, you should run USE_FRAMEWORKS=dynamic NO_FLIPPER=1 bundle exec pod install)
    3. 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.xcworkspace
    

    and them ⌘+R

    and it works.

    $ xcodebuild -version
    Xcode 15.1
    Build version 15C5028h
    
    Screenshot 2023-12-18 at 15 38 44

    Can you try again?

  11. fontesrp commented on Dec 19, 2023

    @fontesrp

    @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: false
  12. cipolleschi commented on Dec 27, 2023

    @cipolleschi
    Contributor

    I 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?

  13. 25 remaining items

  14. bruno-centanaro commented on Apr 3, 2024

    @bruno-centanaro

    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

  15. cipolleschi commented on Apr 3, 2024

    @cipolleschi
    Contributor

    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...

  16. artkow commented on Apr 5, 2024

    @artkow

    I just disabled Hermes on iOS in Podfile and it helped.
    :hermes_enabled => false,

  17. cipolleschi commented on Apr 5, 2024

    @cipolleschi
    Contributor

    yeah, that's another workaround. The problem is that React-Hermes depends on a subpod of Folly which depends on the _jump_fcontext symbol provided by boost.
    The symbol is a weak symbol and the new Apple linker does not supports weak symbols anymore. :(

  18. delphinebugner commented on Apr 5, 2024

    @delphinebugner

    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 🥲

  19. KingAmo commented on May 22, 2024

    @KingAmo

    same 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

  20. KingAmo commented on May 23, 2024

    @KingAmo

    same 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)

  21. cipolleschi commented on Jun 5, 2024

    @cipolleschi
    Contributor

    Has anyone tried with Xcode 15.4 already? (haven't had the time yet!)

  22. KingAmo commented on Jun 5, 2024

    @KingAmo

    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

  23. vitas61 commented on Sep 4, 2024

    @vitas61

    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!

  24. raid5 commented on Dec 5, 2024

    @raid5

    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?

  25. cipolleschi commented on Dec 17, 2024

    @cipolleschi
    Contributor

    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.

  26. vietdung97 commented on Mar 9, 2025

    @vietdung97

    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:

    1. apply the old -Wl -ld_classic flags and see if it fixes.
    2. try to reach out to Apple to talk about this.

    I changed to -Wl -ld_classic and 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

  27. cipolleschi commented on Mar 10, 2025

    @cipolleschi
    Contributor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Needs: Triage 🔍Type: Upgrade IssueIssues reported from upgrade issue form

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions