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

Cannot run app on Simulator (RCTSRWebSocket assert failed) #31713

Closed
scaraux opened this issue Jun 13, 2021 · 3 comments
Closed

Cannot run app on Simulator (RCTSRWebSocket assert failed) #31713

scaraux opened this issue Jun 13, 2021 · 3 comments
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.

Comments

@scaraux
Copy link

scaraux commented Jun 13, 2021

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

I am unable to run our app on the iOS Simulator, as it crashes on startup with an assertion failed:

Assertion failed: ([scheme isEqualToString:@"ws"] || [scheme isEqualToString:@"http"] || [scheme isEqualToString:@"wss"] || [scheme isEqualToString:@"https"]), function -[RCTSRWebSocket _RCTSR_commonInit], file /Users/oscargotting/ntwrk/ntwrk-mobile/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m, line 283.

The scheme seems to be "file" and it doesn't like it

NOTE: I recently moved to an Apple Silicon environment, I have no idea if this may be related.

React Native version:

Run react-native info in your terminal and copy the results here.

System:
    OS: macOS 11.4
    CPU: (8) arm64 Apple M1
    Memory: 195.42 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.3.0 - /var/folders/nm/f__glkrj58xc3w8hyw833bch0000gn/T/yarn--1623548223261-0.8641981465718873/node
    Yarn: 1.22.10 - /var/folders/nm/f__glkrj58xc3w8hyw833bch0000gn/T/yarn--1623548223261-0.8641981465718873/yarn
    npm: 7.15.1 - /opt/homebrew/bin/npm
    Watchman: 2021.06.07.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: Not Found
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.5/12E262 - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.4 => 0.63.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
✨  Done in 2.98s.

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Run the app from xcode
  2. Crash happens immediatly after black screen
@saranya20-t
Copy link

Did you find solution for this issue?

@scaraux
Copy link
Author

scaraux commented Nov 2, 2021

Did you find solution for this issue?

not sure i remember, probably bumping a couple libs to work with M1...

@filipsavicfireside
Copy link

I lost an entire day on this... in the end I updated my MacOS and XCode and my build passed...

@facebook facebook locked as resolved and limited conversation to collaborators Jun 13, 2022
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants