如何在非ARC项目中为文件启用ARC?

时间:2021-03-16 22:57:04

I know you can use -fno-objc-arc flag to disable ARC for files that NOT support ARC in an ARC project.

我知道你可以使用-fno-objc-arc标志为ARC项目中不支持ARC的文件禁用ARC。

Is there any way to enable ARC for files support ARC in a Non-ARC project?

有没有办法在非ARC项目中启用ARC for files支持ARC?

Thanks!

谢谢!

1 个解决方案

#1


61  

Yup: add the -fobjc-arc flag the same way.

是的:以相同的方式添加-fobjc-arc标志。

#1


61  

Yup: add the -fobjc-arc flag the same way.

是的:以相同的方式添加-fobjc-arc标志。