没有这样的模块 'SSZipArchive' 使用 Carthage XCode 8.1
No Such Module 'SSZipArchive' using Carthage XCode 8.1
我想将 SSZipArchive 添加到我的项目中。我已经 运行 carthage 更新,添加 SSZipArchive.framework 到嵌入式二进制文件和链接框架和库
我还检查了框架搜索路径,它位于正确的位置并且有文件 ZipArchive.framework
和 ZipArchive.framework.dSYM
但我得到 No Such Module 'SSZipArchive'
怎么了?
由于您已经使用了Carthage
,您需要添加
import ZipArchive
在您要使用它而不是 import SSZipArchive
的文件中。
来源:ViewController.swift in the demo project
#if UseCarthage
import ZipArchive
#else
import SSZipArchive
#endif
对于错误:
module compiled with swift 3.0 cannot be imported in swift 3.0.1
使用以下命令重建 Carthage 依赖项,
carthage update --platform iOS --no-use-binaries
我想将 SSZipArchive 添加到我的项目中。我已经 运行 carthage 更新,添加 SSZipArchive.framework 到嵌入式二进制文件和链接框架和库
我还检查了框架搜索路径,它位于正确的位置并且有文件 ZipArchive.framework
和 ZipArchive.framework.dSYM
但我得到 No Such Module 'SSZipArchive'
怎么了?
由于您已经使用了Carthage
,您需要添加
import ZipArchive
在您要使用它而不是 import SSZipArchive
的文件中。
来源:ViewController.swift in the demo project
#if UseCarthage
import ZipArchive
#else
import SSZipArchive
#endif
对于错误:
module compiled with swift 3.0 cannot be imported in swift 3.0.1
使用以下命令重建 Carthage 依赖项,
carthage update --platform iOS --no-use-binaries