当前位置: 动力学知识库 > 问答 > 编程问答 >

xcode - Is it possible to skip some files when auto-converting to ARC?

问题描述:

I am converting my iOS project to ARC (about time, right?), but I'm running into a few issues with the Convert to Objective-C ARC tool.

I have gone through my entire project and removed any ARC-illegal calls (i.e., release, autorelease, retain, etc.). However, there are several files - all third party files - which I don't want to update to ARC. In my target build phases, I have added the flag -fno-objc-arc to each of these files, but when I run the Convert to Objective-C ARC tool, it continues to tell me that I need to update these files.

Is it possible to use the Convert to Objective-C ARC tool while still keeping specific files as non-ARC?

If not, is there a manual way to convert a project to ARC?

网友答案:

You have to uncheck the files from the ARC Convert Tool dialog:

分享给朋友:
您可能感兴趣的文章:
随机阅读: