I am finally trying to convert my ios project to ARC. there is several files that I do not want to convert to ARC, so I have added the "-fno-objc-arc" flag to build phase -> compile sources to the corresponding *.m file.
However, when I try to edit -> refactor -> convert to ARC, I am getting a "Cannot Convert to Objective-C ARC: Xcode found 3 issues that prevent conversion from proceeding. Fix all ARC readiness issues and try again." error
the errors are all on the *.h file for which I have added the -fno-objc-arc to for the corresponding *.m file... Do I have to add the flag to the *.h file too? If so, where can I find it?
Thanks!
EDIT So I read the error more clearly. the file i am having issue with is JSONKit.h. The errors are not generated in JSONKit.m, but other classes that I wrote which imports JSONKit.h So is the only solution to add the -fno-objc-arc flag to my own classes that imports JSONKit.h? Thanks