0

Unity iOS Xcode build always gives a non-ARC Xcode project. I want to have unity iOS build with ARC. How can I do that?

Jehof
  • 34,674
  • 10
  • 123
  • 155
Hawk-Eye
  • 400
  • 1
  • 7
  • 23

1 Answers1

0

Easiest way is to activate ARC in your project but tell XCode to deactivate it only for the Unity-generated files using the "-fno-objc-arc" option. This way you can code your own stuff with arc but dont risk any sideeffects from automatically migrating the generated code. And you can easily integrate a new export from unity without having to re-migrate it.

The -fno-objc-arc has to be set in your project settings > Build Phases > Compile Sources

regards

Markus Zancolò
  • 342
  • 3
  • 5