ssziparchive

Lint a Swift cocoa pod with SSZipArchive dependency

こ雲淡風輕ζ 提交于 2019-12-07 08:46:03
问题 Anyone had any luck creating a pod with a SSZipArchive dependency? My classes are all in Swift but I'm including my bridging file as well (#import "SSZipArchive"). When I try to lint I get 9 errors all related to SSZipArchive. Please let know your thoughts. Thanks so lot! ERROR | SSZipArchive/SSZipArchive/minizip/ioapi.h:45:10: error: include of non-modular header inside framework module 'SSZipArchive.ioapi' NOTE | Target Support Files/Pods-SSZipArchive/Pods-SSZipArchive-umbrella.h:5:9: note:

Lint a Swift cocoa pod with SSZipArchive dependency

懵懂的女人 提交于 2019-12-05 12:59:05
Anyone had any luck creating a pod with a SSZipArchive dependency? My classes are all in Swift but I'm including my bridging file as well (#import "SSZipArchive"). When I try to lint I get 9 errors all related to SSZipArchive. Please let know your thoughts. Thanks so lot! ERROR | SSZipArchive/SSZipArchive/minizip/ioapi.h:45:10: error: include of non-modular header inside framework module 'SSZipArchive.ioapi' NOTE | Target Support Files/Pods-SSZipArchive/Pods-SSZipArchive-umbrella.h:5:9: note: in file included from Target Support Files/Pods-SSZipArchive/Pods-SSZipArchive-umbrella.h:5: ERROR |

How do you include SSZipArchive for IOS 5?

天涯浪子 提交于 2019-12-03 12:00:58
For the project I'm working on I needed to unzip certain files. For this, I found the library SSZipArchive . I included this in Xcode 4.2 (Right-click on the Classes folder->Add files to project, with in the dialogue the "Copy items into destination group's folder"-checkbox checked). I include the libz library (I've tried both libz and zlib1.2.5). I try to compile and suddenly I've got 20 errors: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:311:1: error: expected identifier or '(' [1]

Unzip files in swift

喜你入骨 提交于 2019-11-29 02:13:17
How to go about unzipping a file in swift? In Objective-C, I used SSZipArchive and I loved it. As seen in the code below. I suspect if I decide to keep SSZipArchive, I will have to bridge an Objective-C file to my Swift file. Is there any updated third-party, or better yet Apple-Documentation to unzip a file in Swift? NSString *zipPath = [self.globalFileStrucure stringByAppendingPathComponent:@"zipfile.zip"]; [data writeToFile:zipPath options:0 error:&error]; BOOL unZipped = 0; unZipped = [SSZipArchive unzipFileAtPath:zipPath toDestination:self.globalFileStrucure]; Swift 2 (Update): So it