react-native: Undefined symbols for architecture x86_64: "___darwin_check_fd_set_overflow", referenced from: _RAND_poll in libcrypto.a(rand_unix.o)

after upgrading from react-native:0.63.2 to react-native:0.63.3 this error occurs.

_Undefined symbols for architecture x86_64:
  "___darwin_check_fd_set_overflow", referenced from:
      _RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)_
react-native:0.63.3
xcode:11.3.1
System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
    Memory: 49.35 MB / 8.00 GB
    Shell: 3.1.2 - /usr/local/bin/fish
  Binaries:
    Node: 12.13.0 - /usr/local/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.14.6 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.8.4 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 25, 27, 28, 29
      Build Tools: 27.0.3, 28.0.3, 29.0.2
      System Images: android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.6010548
    Xcode: 11.3.1/11C505 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_202-release - /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/javac
    Python: 2.7.10 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.3 => 0.63.3 
  npmGlobalPackages:
    *react-native*: Not Found

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 25 (1 by maintainers)

Most upvoted comments

i solved problem with

  1. comment all flipper function in podfile
  2. remove flipperInit in appDelegate
  3. remove openSSl in podfile.lock
  4. pod install,
  5. clean project
  6. run again,

downgrading flipper-folly and openssl-universal in Podfile.lock worked for me note im using xcode 11.3.1 and I cant upgrade it

- Flipper-Folly (2.2.0):
    - boost-for-react-native
    - CocoaLibEvent (~> 1.0)
    - Flipper-DoubleConversion
    - Flipper-Glog
    - OpenSSL-Universal (= 1.0.2.19)

- OpenSSL-Universal (1.0.2.19):
    - OpenSSL-Universal/Static (= 1.0.2.19)
  - OpenSSL-Universal/Static (1.0.2.19)

@DaggieBlanqx You will find AppDelegate file under ios/yourproject/AppDelegate.m. You can either remove the entire function or simply comment the line as shown screenshot Screen Shot 2020-11-12 at 6 36 31 PM

one workaround That I found is updating xcode version from 11.3 to 11.7 or 12. but I haven’t test it yet.

@yogieeka can you explain why ? I mean If I remove flipper from podfile then I won’t be able to use it.

I don’t use flipper still i am getting this error. Undefined symbols for architecture x86_64: “___darwin_check_fd_set_overflow”, referenced from: _RAND_poll in NodeMediaClient(rand_unix.o) _kmp_read in NodeMediaClient(kmp.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

i solved problem with

  1. comment all flipper function in podfile
  2. remove flipperInit in appDelegate
  3. remove openSSl in podfile.lock
  4. pod install,
  5. clean project
  6. run again,

I tried this and it worked it’s a temporary solution if you don’t want to upgrade Xcode. Upgrading Xcode will also solve this.

@youngjl1

i solved problem with

  1. comment all flipper function in podfile
  2. remove flipperInit in appDelegate
  3. remove openSSl in podfile.lock
  4. pod install,
  5. clean project
  6. run again,

Thanks a lot your solution also worked for me. but It’s cost is not being able to use flipper. and also I don’t know what will happen by disabling openssl

Same issue happening for me also and to colleague.