Is it possible to enable non-arc files without adding “fno-objc-arc” in compile sources of Build Phases?
问题 Is it possible to somehow handle the non-arc files without adding fno-objc-arc to the compile sources in the build phases? More specifically, is there any way to add fno-objc-arc somewhere in the code? The reason is, I want to open source one of my library which uses non-arc files and I don't want people who use my library to manually add fno-objc-arc . Just drag and drop... 回答1: No. But if you look at what some libraries do, they write macros that will conditionally call the MRC calls, e.g.,