tradle / rn-nodeify

hack to allow react-native projects to use node core modules, and npm modules that use them
MIT License
614 stars 114 forks source link

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

Open andrewsadowski opened 4 years ago

andrewsadowski commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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: https://github.com/tradle/react-native-udp/issues/113

johanschram commented 4 years ago

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 commented 4 years ago

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.