React Native endless stream of Socket SO_ERROR React Native endless stream of Socket SO_ERROR xcode xcode

React Native endless stream of Socket SO_ERROR


  1. To select XCode10 build system:In Xcode go to File -> Project Settings (or Workspace settings) -> Build system, in which change the New Build System to Legacy Build System.

enter image description here

  1. Temporary fix: Edit Scheme => Run => Environment Variables => Add OS_ACTIVITY_MODE:disable in the XCode.

Note: This works fine, but keep in mind that it also suppresses all NSLog output you may need for debugging.

enter image description here


There is a thread on GitHub about that, it's related to iOS 12+ an Xcode 10+
https://github.com/facebook/react-native/issues/19573

I tried to change the buildSystem and it worked for me:

  • Go to File, then Project Settings or Workspace Settings.
  • Select Legacy Build System from the Build System dropdown.

enter image description here


If you run your app on ios:1. Go to ios/APP_NAME/Info.plist2. Add these two entries to the Info.plist:

<key>NSLocationWhenInUseUsageDescription</key><string>We'll show you things near you in the app.</string><key>NSLocationAlwaysAndWhenInUseUsageDescription</key><string>We'll show you things near you in the app. With "always" access, we'll    also send you notifications when you're near something interesting.</string>