Zip icon indicating copy to clipboard operation
Zip copied to clipboard

watchOS Target ⌚️

Open witekbobrowski opened this issue 6 years ago • 0 comments

Hi! Thank you for this cool project. I am using it in one of mine, a simple library called EPUBKit. I would really like to be able to provide a watchOS target for my library and you could use one too! I have tried to implement it myself but I have encountered some problems while doing so.

The problem seems to be this minizip module you are using. I just wold compile for watch architecture.

warning: no rule to process file '/.../Zip/minizip/unzip.h' of type sourcecode.c.h for architecture armv7k
warning: no rule to process file '/.../Zip/minizip/ioapi.h' of type sourcecode.c.h for architecture armv7k
warning: no rule to process file ‘/.../Zip/minizip/zip.h' of type sourcecode.c.h for architecture armv7k

and drops 15 errors similar to this one:

Undefined symbols for architecture armv7k:
  "_zipOpen", referenced from:
      static Zip_watchOS.Zip.zipFiles(paths: [Foundation.URL], zipFilePath: Foundation.URL, password: Swift.String?, compression: Zip_watchOS.ZipCompression, progress: (Swift.Double) -> ()?) throws -> () in Zip-C366576ED79FE174.o

Could you take a look into what is exactly happening since you are more familiar with your project.

Thanks!

witekbobrowski avatar Jun 30 '18 15:06 witekbobrowski