修复ios编译错误

This commit is contained in:
zher52 2021-10-21 22:12:46 +08:00
parent 3b8c2deb2c
commit d820eba0fe
2 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@
<!-- ios -->
<platform name="ios">
<pods-config ios-min-version="11.0" use-frameworks="true"/>
<config-file target="config.xml" parent="/*">
<feature name="ZipArchive">
<param name="ios-package" value="ZipArchivePlugin"/>
@ -65,7 +66,7 @@
</config-file>
<!-- <framework src="SSZipArchive" type="podspec" spec="~> 2.2.3" />-->
<pod name="SSZipArchive" git="https://github.com/kitolog/ZipArchive" branch="master" />
<pod name="SSZipArchive"/>
<header-file src="src/ios/ZipArchiveAdapter.h"/>
<source-file src="src/ios/ZipArchiveAdapter.m"/>

View File

@ -27,7 +27,7 @@
// + (BOOL)createZipFileAtPath:(NSString *)path withFilesAtPaths:(NSArray<NSString *> *)paths
int diskSize = (int) (maxSize * 1024 * 1024);
BOOL success = [SSZipArchive createZipFileAtPath:path withFilesAtPaths:files diskSize:diskSize];
BOOL success = [SSZipArchive createZipFileAtPath:path withFilesAtPaths:files];
if (success) {
NSLog(@"Success zip");
self.zipEventHandler(path);