ios5 ARC what is the compiler flag to exclude a file from ARC?

前端 未结 2 1065
猫巷女王i
猫巷女王i 2020-12-01 03:58

Can anyone help me remember what was the flag to tell the XCode to not use ARC for some file? I had several files in my project marked as such... Until I ad

相关标签:
2条回答
  • 2020-12-01 04:35

    the moral of this story is: once your project is in ARC and you have some files marked as no ARC, do not re-run the convert to ARC tool from Refactor>Convert to ARC. It will not restore your settings even if pre-check fails.

    You can restore your settings for excluded files by removing references on them and then readd to project back

    0 讨论(0)
  • 2020-12-01 04:39

    I found the answer: to exclude the file from ARC, use the -fno-objc-arc flag in build phases>compile sources

    0 讨论(0)
提交回复
热议问题