-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native build failing: duplicate symbols for architecture arm64 #116
Comments
We are also getting the same error, please help. @aprock : Hey Buddy, check into this we already spend a lot of time :-( duplicate symbol 'OBJC_IVAR$_GCDAsyncSocket.socket6FD' in: |
you are posting to a project thats dead for 3.5 years. |
@Overtorment Thanks Man, Now I switched to react-native-tcp-socket. |
@jalesingh Apologies didn't see this message. I don't remember what I did to resolve this issue. |
Hi,
I am trying to use this module in a React Native project.
I have tried to build for ios and its failing with an error: "duplicate symbols for architecture arm64"
I am using node verison 14
React Native version 0.63
and the latest XCode version 12.3
More error output below:
13 duplicate symbols for architecture arm64
duplicate symbol 'OBJC_CLASS$_TcpSocketClient' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_METACLASS$_TcpSocketClient' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_IVAR$_TcpSocketClient._tcpSocket' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_IVAR$_TcpSocketClient._pendingSends' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol '_RCTTCPErrorDomain' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_IVAR$_TcpSocketClient._lock' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_IVAR$_TcpSocketClient._sendTag' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_IVAR$_TcpSocketClient._clientDelegate' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_IVAR$_TcpSocketClient._id' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSocketClient.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSocketClient.o)
duplicate symbol 'OBJC_IVAR$_TcpSockets._clients' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSockets.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSockets.o)
duplicate symbol 'OBJC_CLASS$_TcpSockets' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSockets.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSockets.o)
duplicate symbol 'OBJC_METACLASS$_TcpSockets' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSockets.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSockets.o)
duplicate symbol 'OBJC_IVAR$_TcpSockets._counter' in:
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/TcpSockets/libTcpSockets.a(TcpSockets.o)
/Users/ali/Library/Developer/Xcode/DerivedData/HEXA-gsiembgiloupdqgkpctpopctnicw/Build/Products/Debug-iphoneos/react-native-tcp/libreact-native-tcp.a(TcpSockets.o)
ld: 13 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: