For anyone still curious about how to turn off ARC on individual files, here's what I did:
- Go to your project settings, under
Build Phases > Compile Sources
- Select the files you want ARC disabled and add -fno-objc-arc compiler flags. You can set flags for multiple files in one shot by selecting the files then hitting "Enter" key.
I don't know if this is the recommended way, but it works for me.
PS: I gathered this information from clang.llvm.org here which is publicly accessible, thus not under NDA.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…