How to force xcode to use ARC on a specific file?

谁都会走 提交于 2019-12-03 15:35:50

问题


My project contains XMPPFramework which contains a file that has to be used with ARC. But my project is Non ARC and cannot be converted due to certain other libraries linked to it.

How do I force the compiler to use ARC only on a certain class ?


回答1:


It is the inverse problem of this question. The difference is that you would use -fobjc-arc instead of -fno-objc-arc.



来源:https://stackoverflow.com/questions/13392521/how-to-force-xcode-to-use-arc-on-a-specific-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!