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!
Here is my pod spec file:
Pod::Spec.new do |s|
s.name = "VideoPlayerLibrary"
s.version = "1.0.27"
s.platform = :ios, "4.0"
s.ios.deployment_target = "8.3"
s.requires_arc = true
s.source_files = 'Pod/Classes/*'
s.resource_bundles = {
'VideoPlayerLibrary' => ['Pod/Assets/*']
}
s.library = 'zlib', 'z'
s.frameworks = 'Foundation', 'UIKit'
s.dependency 'Alamofire'
s.dependency 'SSZipArchive'
end
I couldn't wait for a better solution, my temporary solution was to create a zipArchive class which talks to the SSZipArchive pod in objc. Not pretty and not ideal but works for now. I hope they update it soon.
Note: you would import zipArchive.h in your bridging-header file and not SSZipArchive.h
#import "zipArchive.h"
#import <SSZipArchive/SSZipArchive.h>
@implementation zipArchive
+ (BOOL)unzipFileAtPath:(NSString *)path toDestination:(NSString *)destination{
return [SSZipArchive unzipFileAtPath:path toDestination:destination];
}
@end
You also need to set "Allow Non-modular includes" in your project settings