iOS 手动导入SVGAPlayer
2021-06-22 本文已影响0人
山杨
Github:SVGAPlayer下载链接
1. 从SVGAPlayer-iOS-master中找出Source文件夹拷贝到工程中

2. 编译后会出现找不到文件
GPBProtocolBuffers_RuntimeSupport.h
GPBProtocolBuffers.h
3. 下载Protocol Buffer 压缩包
Github:Protocol Buffer 压缩包下载地址
找到最新的OC下载包

4. 解压protobuf-objectivec-3.17.3.tar
得到protobuf-3.17.3
文件夹,第2步
中缺少的文件就在protobuf-3.17.3/objectivec
文件夹中

注意:导入缺失文件的时候不要加入GPBProtocolBuffers.m
,加入这个文件会导致duplicate
错误

5. 找到TARGETS
下的Build Phases
的Compile Sources
给报ARC模式错误的GPB文件设置Compiler Flags
为-fno-objc-arc
