Add compiler flags to iOS build

I have some iOS source files in my Unity game, and some of them are needed to be compiled in Xcode with custom compiler flags(-fobjc-arc).

Every time I compile my game I need to fix it in project settings->build phases. Has anyone written a PostProcessBuildPlayer script to automate that?

This might help you:

That’s on a per-file basis, but should hopefully be what you’re looking for.