'duplicate symbols for architecture x86_64 ios React Native

I have recently updated to the newer version of Xcode and React Native and I'm having issues with duplicate symbols for my Xcode React Native build. I have tried to remove -ObjC from other Linker flags, changed No Common Blocks to No, and made sure no libraries were linked twice in 'Link Binary with Libraries'. None of those solutions suggested previously have helped; so, any other ideas would be appreciated.



Solution 1:[1]

You probably have some third-party libraries that you have added with both pods and react-native link at the same time. Just check your projects Project/Libraries folder and Pods/Products folder to see if there are any duplicates. these two folders

Solution 2:[2]

Typing the following in a terminal window solved the problem in my case:

cd <project folder>/ios
rm -rf Pods
pod install

Solution 3:[3]

I ran into the same issue.

I had to go in "edit scheme" > "builds" > "+" (and add React). Then you drag and drop React in the list at first position. Clean & build (successfully, I hope).

Solution 4:[4]

I had this issue. The problem for me was that I was using expo v44, and also unimodules which were deprecated and replaced by expo. So, I removed the unimodules package from my package.json, and it was working fine for me. Then, I made sure that I updated my packages which used unimodules, and updated them to a version that uses expo.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mcnk
Solution 2 Yossi
Solution 3 Alexandre Nicolas
Solution 4 Armend Ukehaxhaj