0

i want to add SSZipArchive to my project. I already run carthage update, add SSZipArchive.framework to embedded binaries and Linked Frameworks and Libraries enter image description here

i also check Framework Search Paths and it's located right and have the file ZipArchive.framework and ZipArchive.framework.dSYM but i get No Such Module 'SSZipArchive' what's wrong?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Ariel Gemilang
  • 796
  • 2
  • 20
  • 42

1 Answers1

4

As you have used Carthage, you need to add import ZipArchive in the file where you want to use it instead of import SSZipArchive.

Source:ViewController.swift in the demo project

#if UseCarthage
    import ZipArchive
#else
    import SSZipArchive
#endif

For the error:

module compiled with swift 3.0 cannot be imported in swift 3.0.1

rebuild your Carthage dependencies using the following command,

carthage update --platform iOS --no-use-binaries
Prerak Sola
  • 9,517
  • 7
  • 36
  • 67