参考链接:https://blog.csdn.net/yz18337161090/article/details/68067837
需下载一个库:https://github.com/YouZhiZheShiJingCheng/YZLog
将“YZLog”文件夹拖入项目中,添加配置:
target ->Build Setting->Linking->Other Linker Flags 新增:-force_load
接着再添加一个 $(SRCROOT)/YZLog/libYZLog.a(具体路径看文件位置)
PS:这里注意添加顺序不能反了,不然会报错,亲测!