You import the source code of lib "SSZipArchive" into your node package manually, but maybe you modify the code or the lib's version you are using is an version with build error.
when I import SSZipArchive in a separated Xcode project, there is no error when building.
I import youor lib not via react-native-code-push, and no error any more.
Hi @LiuYibin and thanks for reaching us. Could you please share with us detailed info about build error that was occurred during the building of your app (text output, screenshots)?




as the pictures above, The error will disappear after I delete the code in your CodePush.podspec file and import the SSZipArchive lib dividually.
s.subspec 'SSZipArchive' do |ss|
ss.source_files = 'ios/CodePush/SSZipArchive/*.{h,m}', 'ios/CodePush/SSZipArchive/aes/*.{h,c}', 'ios/CodePush/SSZipArchive/minizip/*.{h,c}'
ss.private_header_files = 'ios/CodePush/SSZipArchive/*.h', 'ios/CodePush/SSZipArchive/aes/*.h', 'ios/CodePush/SSZipArchive/minizip/*.h'
end
@LiuYibin so you are trying to add react-native-code-push to your app via cocoa pods but your app has it's own SSZipArchive lib installed before? Please correct me if I missed something.
YES. The other npm package I import into RN project depend on SSZipArchive, too. But before I import your package, every thing is OK. I found the source code of SSZipArchive imported via your CodePush.podspec file is not the latest code comparing with its official latest version
@LiuYibin please try to do the following steps and let us know if it would help you or not:
ios/Podspec file using approach from our docs:# `SSZipArchive` already in use
pod 'CodePush', :path => '../node_modules/react-native-code-push', :subspecs => ['Core', 'JWT', 'Base64']
pod update from ios directoryUpdate: I was able to reproduce your issue exactly as you described and could resolve it completely using steps above.
Thank you very much. My issues are resolved by the steps you told.
@ruslan-bikkinin
pod 'CodePush', :path => '../node_modules/react-native-code-push', :subspecs => ['Core', 'JWT', 'Base64']
gives error
[!] CocoaPods could not find compatible versions for pod "CodePush/Base64":
In Podfile:
CodePush/Base64 (from `../node_modules/react-native-code-push`)
Most helpful comment
@ruslan-bikkinin
pod 'CodePush', :path => '../node_modules/react-native-code-push', :subspecs => ['Core', 'JWT', 'Base64']gives error