React-native-code-push: Local SSZipArchive Build Error

Created on 28 Dec 2017  路  8Comments  路  Source: microsoft/react-native-code-push

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.

iOS

Most helpful comment

@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`)

All 8 comments

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

wx20171228-171115 2x
wx20171228-171142 2x
wx20171228-171154 2x
wx20171228-171236 2x

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:

  1. Re-add CodePush in your 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']
  1. Run pod update from ios directory

Update: 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`)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fuhrmann picture Fuhrmann  路  3Comments

jaysig picture jaysig  路  3Comments

ninjz picture ninjz  路  4Comments

EdmundMai picture EdmundMai  路  4Comments

DeDuckProject picture DeDuckProject  路  3Comments