0

It's showing

285 duplicate symbols for architecture arm64

Linker command failed with exit code 1 (use -v to see invocation)

Strangely, I can't seem to get Archive to work in XCode but the build succeeds without the errors on duplicate symbols and it's running properly on simulator as well. I'm getting this error only when I'm trying to make archive.

The project is on React Native 0.56.0, podfile installed as well.

I have no idea what the problem might be.

enter image description here

Community
  • 1
  • 1
guruprakash gupta
  • 877
  • 4
  • 9
  • 15

1 Answers1

0

If you're coming from an old React Native template and started using cocoapods, make sure to remove all libraries linked on .xcodeproj:

  1. First remove the libraries links:

Links deletion

  1. Then the delete projects references too:

enter image description here

Finally, try archiving again.

Murilo Paixão
  • 576
  • 2
  • 6
  • Paixāo, i'm working in .xcworkspace not in xcodeproj. – guruprakash gupta Feb 13 '20 at 05:34
  • No problem, the changes made on your .xcodeproj reflects on your .xcworkspace as well. But anyway, if you follow the instructions above opening either .xcodeproj or .xcworkspace it should work. – Murilo Paixão Feb 13 '20 at 17:28
  • Paixao,this is not working for me, i deleted all the libraray as it shows and it stopped to build the project.i have many more library then in this picture – guruprakash gupta Feb 25 '20 at 07:07