美文网首页
iOS 手动导入SVGAPlayer

iOS 手动导入SVGAPlayer

作者: 山杨 | 来源:发表于2021-06-22 19:58 被阅读0次

Github:SVGAPlayer下载链接

1. 从SVGAPlayer-iOS-master中找出Source文件夹拷贝到工程中
image.png
2. 编译后会出现找不到文件
GPBProtocolBuffers_RuntimeSupport.h
GPBProtocolBuffers.h
3. 下载Protocol Buffer 压缩包

Github:Protocol Buffer 压缩包下载地址
找到最新的OC下载包

image.png
4. 解压protobuf-objectivec-3.17.3.tar得到protobuf-3.17.3文件夹,第2步中缺少的文件就在protobuf-3.17.3/objectivec文件夹中
image.png
注意:导入缺失文件的时候不要加入GPBProtocolBuffers.m,加入这个文件会导致duplicate错误
image.png
5. 找到TARGETS下的Build PhasesCompile Sources给报ARC模式错误的GPB文件设置Compiler Flags-fno-objc-arc
image.png
6. 再次编译应该就能通过了,遇到其他问题的请留言

相关文章

网友评论

      本文标题:iOS 手动导入SVGAPlayer

      本文链接:https://www.haomeiwen.com/subject/dsymyltx.html