Failed to execute linke command in response native application using reactive -base-firebase

I developed my own responsive application using the native-firebase response library. I want to install the icon of my application, so I used this library: npm install -g yo generator-rn-toolboxfrom here .

When I try to build a project, I get this error:

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_RCTSRWebSocket", referenced from: objc-class-ref in libReact.a(RCTInspectorPackagerConnection.o) "_OBJC_CLASS_$_RCTReconnectingWebSocket", referenced from: objc-class-ref in libReact.a(RCTPackagerConnection.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) How to fix it?

+4
source share
2 answers

I fixed this by manually adding the RCTWebsocket library:

  • find the RCTWebsocket project: open -R node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj
  • Drag it to xcode in your projects. Library folder
  • , , " " → " " → "+"
  • libRCTWebSocket.a

. libRCTWebSocket.a 4 , .

+2

, libRCTWebSocket.a libReact.

xcode linker settings

0

Source: https://habr.com/ru/post/1683005/


All Articles