question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate symbols with CocaAsyncSocket

See original GitHub issue

Hey,

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:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

17reactions
Rapsssitocommented, Sep 15, 2020

@Shing-Ho, take a look at this issue from react-native-tcp-socket, it might be related to your problem.

3reactions
Shing-Hocommented, Sep 15, 2020

@Rapsssito There was not CocoaAsyncSocket but there was GCDAsyncSocket so I removed it and it worked. You are really awesome. @Rapsssito Thank you!!! Following you from now~

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found