During my work with xcode to build my RN app, I was having a linker issue this:
ld: library not found for -lCocoaAsyncSocket

Finnaly I was able to fix it with this comment
Switch the Legacy build system to New build system in Xcode. in

Xcode: File -> File -> Project Settings

Github Comments