Skip to content
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

Duplicate symbols for architecture arm64 error after adding library to project #93

Open
andrewsadowski opened this issue May 28, 2020 · 4 comments

Comments

@andrewsadowski
Copy link

andrewsadowski commented May 28, 2020

Hello!

While trying to upgrade a project to a newer version of ReactNative, on RN "0.62.2", I have been hitting duplicate symbols for architecture arm64 error for the react-native-udp and react-native-tcp when trying to run an iOS build. Without this library added, everything works as expected.

Anyone hit this, or have any recommendations for workarounds? I have tried the uninstalling and reinstalling pods and removing DerivedData, along with some other more complicated recommendations found elsewhere online. Any help greatly appreciated!

Here is my React-Native environment info:
React Native Environment Info:
System:
OS: macOS 10.15.4
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 449.95 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.13.1 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.14.3 - ~/.npm-global/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 18, 19, 21, 23, 25, 26, 27, 28, 29
Build Tools: 27.0.3, 28.0.3
System Images: android-21 | ARM EABI v7a, android-21 | Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.10 => 0.59.10
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

@johanschram
Copy link

johanschram commented May 28, 2020

Same problem here...
@andrewsadowski, if you manage to find a way, let me know. I'll do the same.
RN 0.62.2
XCode 10.3

@andrewsadowski
Copy link
Author

I was able to solve this by removing Flipper from my project. It looks like it was conflicting with a bunch of the rn-nodeify packages. Then removing Pods and re-building. I found this solution here: tradle/react-native-udp#113

@johanschram
Copy link

johanschram commented May 28, 2020

Well, the last version of tradle/react-native-udp is supposed to fix this...
react-native-udp/commit

Edit: my bad, that's not the only package involved with this issue.

@ahmadaafaq
Copy link

Getting same error after upgrading RN 0.61.5 to RN 0.62.2, without flipper everything works fine but with flipper started getting build error: 144 duplicate symbols for architecture *86_64.

Has anyone found any solution as I want to use Flipper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants