react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

ld: 5 duplicate symbols for architecture x86_64

Open byk04712 opened this issue 9 years ago • 4 comments

  • react-native-code-push version:1.17.0-beta
  • react-native version:0.41.2
  • Xcode:8.2
  • Does this reproduce on a debug build or release build?
  • Does this reproduce on a simulator, or only on a physical device? run on simulator
  • Repro steps and/or stack trace:

I integration react-native-code-push to my cocoapods project. When i added CodePush.xcodeproj and libCodePush.a. I got this error.

wx20170222-130731 2x

See my Podfile content below


pod

But when I remove CodePush.xcodeproj reference. It works!

How do I fix it?

byk04712 avatar Feb 22 '17 05:02 byk04712

I solved this problem. react-native-code-push has SSZipArchive library. so I removed pod 'SSZipArchive', '~>1.2' from Podfile. and added $(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/SSZipArchive (set to recuirsive) to Build Setting -> Header Search Paths. them clear & build. It's works

byk04712 avatar Feb 22 '17 07:02 byk04712

@byk04712, thanks for response. Closing this for now, please feel free to reopen if needed.

sergey-akhalkov avatar Feb 22 '17 07:02 sergey-akhalkov

I am still facing same issue, any other solution?

adalvi13 avatar Jun 19 '18 07:06 adalvi13

Hi @adalvi13, please check if your Podfile is similar to this one

NickToropov avatar Jun 19 '18 13:06 NickToropov