I would love to explore using this library in an existing app.
This is the existing wallet app https://github.com/bithyve/hexa where I would like to import and use this library.
However there seems to be an issue in building, i am getting the following build error in XCode:
13 duplicate symbols for architecture arm64
with the following details:
duplicate symbol '_OBJCCLASS$_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 '_OBJCMETACLASS$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCCLASS$_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 '_OBJCMETACLASS$_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 '_OBJCIVAR$_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)
I have used the photon-app and that builds and runs fine on its own.
I have also tried adding just the photon-lib without the keychain and icloudstore modules as well but still getting the same issue.
Sorry. Just saw this now. What react native version are you using? And have you used the peer dependencies listed here or are you using a different tcp socket npm package?
Hi,
I would love to explore using this library in an existing app. This is the existing wallet app https://github.com/bithyve/hexa where I would like to import and use this library.
However there seems to be an issue in building, i am getting the following build error in XCode:
13 duplicate symbols for architecture arm64
with the following details:
duplicate symbol '_OBJCCLASS$_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 '_OBJCMETACLASS$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCIVAR$_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 '_OBJCCLASS$_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 '_OBJCMETACLASS$_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 '_OBJCIVAR$_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)
I have used the photon-app and that builds and runs fine on its own.
I have also tried adding just the photon-lib without the keychain and icloudstore modules as well but still getting the same issue.