7

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.

jaysig
  • 203
  • 3
  • 10

4 Answers4

5

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

mcnk
  • 1,690
  • 3
  • 20
  • 29
2

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

cd <project folder>/ios
rm -rf Pods
pod install
Yossi
  • 5,577
  • 7
  • 41
  • 76
0

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).

Alexandre Nicolas
  • 1,851
  • 17
  • 19
0

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.

Armend Ukehaxhaj
  • 533
  • 6
  • 17