ARC forbids explicit message send of'retain'解决办法

时间:2022-04-05 15:58:20

项目中导入一些开源的类库,里面会爆出一些ARC forbids explicit message send of'retain' 这种问题

解决方法:

点击项目Target -> 找到"Build Settings" -> 找到"Compile Sources" -> 找到出错的类,在对应类的"Compiler Flags"中添加"-fno-objc-arc"

ARC forbids explicit message send of'retain'解决办法

如果你不是在wb145230博客园看到本文,请点击查看原文.