Duplicate symbols with CocaAsyncSocket
See original GitHub issueHey,
I just had an issue, I was blocked by for some time (still new to react-native), which is connected to this repo. I made a new react-native project with the react-native-cli and used rn-nodeify, because we use a lot of crypto.
Unfortunately, building failed, because of duplicated symbols. Here are the last lines:
duplicate symbol '_OBJC_IVAR_$_GCDAsyncUdpSocket.readStream4' in:
/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-heocgpjrcpddyfamfhwzjvkublko/Build/Products/Debug-iphoneos/CocoaAsyncSocket/libCocoaAsyncSocket.a(GCDAsyncUdpSocket.o)
/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-heocgpjrcpddyfamfhwzjvkublko/Build/Products/Debug-iphoneos/react-native-udp/libreact-native-udp.a(GCDAsyncUdpSocket.o)
ld: 144 duplicate symbols for architecture arm64
CocoaAsyncSocket
is loaded as a dependency to flipperkit, which is loaded, because facebook/flipper is now loaded per default in new projects.
I solved this, by removing Flipper in my Podfile.
Since I am new to react-native development, I can’t give good recommendations, on what to do, but I guess I would just also use the same dependency?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top Results From Across the Web
79 duplicate symbols for architecture x86_64 Xcode
There was not CocoaAsyncSocket but there was GCDAsyncSocket. Solution: Go to xcode. into project navigator, click on Pods folder.
Read more >XCode 10 beta 5 issue: -ObjC linke… | Apple Developer Forums
It works fine with iOS12 Simulaotrs, but not real devices. For iOS 12 devices, it says: "duplicate symbols for architecture arm64". For iOS...
Read more >Ios – xcode duplicate symbols for architecture error after updating ...
CocoaAsyncSocket ; IQKeyboardManager. After that, nothing works anymore. I get more than 600 duplicate symbols for architecture i386 errors, like this one:
Read more >Duplicate symbol using CocoaAsyncSocket - Google Groups
I want to use the 'CocoaAsyncSocket' library in my Couchbase Lite application and I'm getting duplicate symbol errors like.
Read more >RN 0.62.0 Compatibility (cause duplicate symbols about ...
RN 0.62.0 Compatibility (cause duplicate symbols about multiple copy of CocoaAsyncSocket) ... Hi,. The version of tradle/react-native-udp has been ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Shing-Ho, take a look at this issue from
react-native-tcp-socket
, it might be related to your problem.@Rapsssito There was not
CocoaAsyncSocket
but there wasGCDAsyncSocket
so I removed it and it worked. You are really awesome. @Rapsssito Thank you!!! Following you from now~