ld: 5 duplicate symbols for architecture x86_64
- 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.
See my Podfile content below
But when I remove CodePush.xcodeproj reference. It works!
How do I fix it?
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, thanks for response. Closing this for now, please feel free to reopen if needed.
I am still facing same issue, any other solution?
Hi @adalvi13, please check if your Podfile is similar to this one