iOS开发,用了ARC,引入非ARC的第三方,报错

时间:2023-03-09 07:29:01
iOS开发,用了ARC,引入非ARC的第三方,报错

ARC forbids explicit message sendof'dealloc'

在xcode中,打开“Build Setting”,找到“Objective-C Automatic Reference Counting”项,将它的值设置成“NO”,即可。

如果未找到“Objective-C Automatic Reference Counting”项,则找到"CLANG_ENABLE_OBJC_ARC" 将它的值设置成NO

这样ARC功能就关闭了。