出现场景
xcode编译一个项目,出现以下错误
'ZipArchive.h' file not found

Use of undeclared identifier 'SSZipArchive'

解决方法
根据错误,是没找到ZipArchive这个库。进入项目的Pods目录查看,没有发现这个库,但是找到了SSZipArchive这个库。

进入ZipArchive的github仓库地址,发现库的名字已经改为了SSZipArchive
在Xcode编译项目时遇到'ZipArchive.h'文件未找到的错误,实际上是由于库名已更改为SSZipArchive。解决方法是检查Pods目录,确认SSZipArchive库存在,并在代码中将ZipArchive替换为SSZipArchive进行导入。确保使用#import<SSZipArchive.h>来正确引用库。
xcode编译一个项目,出现以下错误
'ZipArchive.h' file not found

Use of undeclared identifier 'SSZipArchive'

根据错误,是没找到ZipArchive这个库。进入项目的Pods目录查看,没有发现这个库,但是找到了SSZipArchive这个库。

进入ZipArchive的github仓库地址,发现库的名字已经改为了SSZipArchive
2750

被折叠的 条评论
为什么被折叠?