Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build iOS app with plugin #10

Open
modimoni opened this issue Nov 5, 2019 · 1 comment
Open

Unable to build iOS app with plugin #10

modimoni opened this issue Nov 5, 2019 · 1 comment

Comments

@modimoni
Copy link

modimoni commented Nov 5, 2019

Hi

I ahve been trying to add the plugin to my project and it only builds for Android. For iOS it give and error

XXXXXXX/hybrid/platforms/ios/MyApp/Plugins/com.jjdltc.cordova.plugin.zip/JJzip.m:9:9: fatal error: 'ZipArchive/SSZipArchive.h' file not found
#import <ZipArchive/SSZipArchive.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

....
The following build commands failed:
CompileC /Users/XXXXXX/Library/Developer/Xcode/DerivedData/MyApp-awompgbhbskritdkeavdnhcvcqfi/Build/Intermediates.noindex/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/JJzip-5e71a48b0beedd86bac8f497e7a83247409e400f46761bdfeb1f8122777f7844.o /XXXXXXXXX/MyApp/hybrid/platforms/ios/MyApp/Plugins/com.jjdltc.cordova.plugin.zip/JJzip.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65

I am using cordova 8.1.2
[email protected]
Xcode 11.0

Thanks
Modi

@jjdltc
Copy link
Owner

jjdltc commented Apr 16, 2020

Hi @modimoni

I can't replicate what you describe. Could you confirm this is still an issue ?

Also, I can tell you that what you describe it's reminds me about a change (On how Cordova and the pods interact). If you want, you could try the compatibility/plugin-xml-pod branch.


Edit: nevermind, I replicated the problem and as I told you, is solve in the compatibility/plugin-xml-pod, the tricky part it's need Cordova 9.x (Because a change in the config.xml) I think (not sure yet) that is about the import of the underlying framework SSZipArchive that before was imported as ZipArchive. I will release a major version (2.x) with the merged fix and leave the 1.x version with the hope of make it work for Cordova 7.x and 8.x in the near future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants