- Home /
Unity iOS development build always yields non ARC Xcode Project
Unity iOS xcode build always gives a non-arc Xcode Project. I wants to have unity iOS build with ARC..How can i do that?
Answer by SolidSnake · Jan 24, 2013 at 02:04 PM
You can always add -fobjc-arc compiler flag to files that will be compiled with arc
Just so people don't need to search for it, this explains how you add a compiler flag in XCode: http://stackoverflow.com/a/6658549/417399 (In this case, it's the negative -fno-objc-arc but you can use -fobjc-arc ins$$anonymous$$d)
Yes but Unity overwrites those compiler flags on EVERY export... is there anyway to prevent that? Ideally we should be able to set those flags in Unity... some people still write non-ARC code I guess, and some ARC (like me)...
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
XCode errors 1 Answer
Compiling in Xcode? 0 Answers
Error linker IOS / Unity - XcODE 2 Answers
Unity xcode project won't compile... 1 Answer