gpt4 book ai didi

swift - 没有使用 Carthage XCode 8.1 的此类模块 'SSZipArchive'

转载 作者:行者123 更新时间:2023-11-28 10:15:43 24 4
gpt4 key购买 nike

我想将 SSZipArchive 添加到我的项目中。我已经运行 carthage update,将 SSZipArchive.framework 添加到嵌入式二进制文件和链接框架和库
enter image description here

我还检查了框架搜索路径,它位于正确的位置并有文件 ZipArchive.frameworkZipArchive.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

关于swift - 没有使用 Carthage XCode 8.1 的此类模块 'SSZipArchive',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41824337/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com