iOS 手动导入SVGAPlayer

2021-06-22  本文已影响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. 再次编译应该就能通过了,遇到其他问题的请留言
上一篇 下一篇

猜你喜欢

热点阅读