1>在MRC中使用ARC文件
选择target -> build phases -> compile sources -> 单击ARC的文件将compiler flags设置为:-fobjc-arc
如图:

2> 在ARC的环境下,使用MRC的文件
选择target -> build phases -> compile sources -> 单击MRC的文件将
compiler flags设置为:-fno-objc-arc
1>在MRC中使用ARC文件
选择target -> build phases -> compile sources -> 单击ARC的文件将compiler flags设置为:-fobjc-arc
如图:
2> 在ARC的环境下,使用MRC的文件
选择target -> build phases -> compile sources -> 单击MRC的文件将
compiler flags设置为:-fno-objc-arc
本文标题:iOS中MRC和ARC的 混编问题
本文链接:https://www.haomeiwen.com/subject/mrhbdttx.html
网友评论