7 Duplicate Symbols for Architecture X86_64 in React Native

react native - 2 duplicate symbols for architecture x86_64

For me the issue was an extra RNShare.m file in the ios folder. I deleted it and it worked.

79 duplicate symbols for architecture x86_64 Xcode

There was not CocoaAsyncSocket but there was GCDAsyncSocket.
Solution:

  1. Go to xcode

  2. into project navigator, click on Pods folder

  3. then select TcpSockets in targets

  4. Go to Build Phases > Compile sources

  5. Here remove reference to CocoaAsyncSocket
    Or run this command line:

    rm -rf node_modules/react-native-tcp/ios/CocoaAsyncSocket

More detail: https://github.com/Rapsssito/react-native-tcp-socket/issues/61#issuecomment-653881488

2 Duplicate symbols for architecture arm64

There is conflict of 2 classes in this packages. Latest class was created in react-native-share (https://github.com/react-native-share/react-native-share/compare/v4.0.4...v4.1.0)

I have a same issue and to resolve it I created an issue in repository (https://github.com/react-native-share/react-native-share/issues/913).

To fix it now, better solution is to downgrade version of package, who was latest created this duplicated class

  • react-native-share from 4.1.0 to 4.0.4 (this is worked for me)

1 duplicate symbol for architecture armv7 in react native

After seeing your screenshot, I think you should give this step a try

In Xcode -> Build Phases -> Link Binary With Libraries -> remove libRNCPushNotificationIOS.a

then clean, build your project

This should work



Related Topics



Leave a reply



Submit