diff --git a/Zip/Zip.swift b/Zip/Zip.swift index 59cc2e500d51858f40684eb63004b618bae56cb4..5a4d08f582c84a5d6743d522f95dfa7c0107f8f4 100644 --- a/Zip/Zip.swift +++ b/Zip/Zip.swift @@ -99,7 +99,7 @@ public class Zip { } var filePointer: UnsafeMutablePointer - filePointer = try ZIPFopen(fullPath) + filePointer = fopen(fullPath, "wb") let readBytes = unzReadCurrentFile(zip, &buffer, 4096) fwrite(buffer, Int(readBytes), 1, filePointer) if filePointer != nil { diff --git a/examples/Sample/Sample.xcodeproj/project.pbxproj b/examples/Sample/Sample.xcodeproj/project.pbxproj index a5b457d7b58a3f66b2720f39d04e46ab459fa11a..b6a864b3efa1e189bf7733d40710edb86f6d2d55 100644 --- a/examples/Sample/Sample.xcodeproj/project.pbxproj +++ b/examples/Sample/Sample.xcodeproj/project.pbxproj @@ -471,6 +471,7 @@ 3430F68C1C45C930007473A6 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 3430F68D1C45C930007473A6 /* Build configuration list for PBXNativeTarget "SampleTests" */ = { isa = XCConfigurationList; @@ -479,6 +480,7 @@ 3430F68F1C45C930007473A6 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/examples/Sample/Sample/master.zip b/examples/Sample/Sample/master.zip index 96e2d453dd67d621da39661bb46496df30a6db63..1548e6f02f06c89b8f11e3fb8a1d5c104e66962c 100644 Binary files a/examples/Sample/Sample/master.zip and b/examples/Sample/Sample/master.zip differ