2

I am trying to use the compiler flag -fno-objc-arc but it does not work for me. I put it in the right place, under build phases ---> compile sources ---> compiler flags. Xcode is still giving me a ARC dealloc error even though I put that flag under the file that should not use ARC. I don't know what to do but this happens on every project I try, not just this one. I have restarted Xcode and cleaned the project but have not come up with a solution.

Does anyone know how to fix my problem?

Edit: I re-added the files that were giving me errors and it worked out just fine! I'd still know why this happens as it's not the first time it has happened to me.

4

1 回答 1

0

在您设置该编译器标志之前,该错误将继续出现。-fno-objc-arc 是否“接受”的测试是应用程序是否构建。如果使用 ARC 编译文件并调用 release/retain/dealloc/etc,则程序将失败。当你编辑文件时,Xcode 可能仍然会给你错误的错误信息,你只需要忽略它们。

于 2012-05-25T23:10:05.900 回答