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

ios app crashing when attaching to debugger #49903

Open
Shahrukh0396 opened this issue Mar 7, 2025 · 6 comments
Open

ios app crashing when attaching to debugger #49903

Shahrukh0396 opened this issue Mar 7, 2025 · 6 comments
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Version Info Platform: iOS iOS applications.

Comments

@Shahrukh0396
Copy link

Shahrukh0396 commented Mar 7, 2025

Description

i have recently migrated to 0.78 and everything works fine except i can't view any logs on the terminal whenever i try to open the dev tools, the app is crashing some observations are that user_script_sandboxing is enabled in this version but in my migrated project it is disabled and enabling it will return an error that shows that some of the scripts are not working in build phases

Steps to reproduce

migrate from 0.74 to 0.78 and run the ios app

React Native Version

0.78.0

Output of npx @react-native-community/cli info

info Fetching system and libraries information...
System:
  OS: macOS 14.4.1
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 42.45 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.5.0
    path: ~/.nvm/versions/node/v20.5.0/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 9.8.0
    path: ~/.nvm/versions/node/v20.5.0/bin/npm
  Watchman:
    version: 2024.11.18.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /usr/local/opt/ruby/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.13103373
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 18.0.2
    path: /usr/bin/javac
  Ruby:
    version: 3.3.6
    path: /usr/local/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.0
    wanted: 0.78.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Screenshots and Videos

No response

@react-native-bot
Copy link
Collaborator

Warning

Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

@react-native-bot react-native-bot added Needs: Author Feedback Platform: iOS iOS applications. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. and removed Needs: Triage 🔍 labels Mar 7, 2025
@react-native-bot
Copy link
Collaborator

Warning

Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@sarthak-d11
Copy link
Collaborator

Hey @Shahrukh0396 , It wil be great if you can share a reproducer for this issue. You can use this template Reproducer Template

@cipolleschi
Copy link
Contributor

@Shahrukh0396 Can you also add a stacktrace with the crash?
The User Scripting Sandboxing needs to be set to NO, as we need to run some script to set up the Hermes JS engine properly.

@Shahrukh0396
Copy link
Author

WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed this is the only stack trace i have recorded when opening devTools on ios physical device.

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Version Info Platform: iOS iOS applications.
Projects
None yet
Development

No branches or pull requests

4 participants