Actively Maintained C# Framework for XCodeProj Modifications

Is there a good, actively maintained framework for XCodeProj post-processing. Ideally, we’d prefer to keep the code in C#, rather than relying on external python scripts as we currently do. Requirements:

  • Adding -ObjC flag.
  • Adding extra include/lib dirs used by custom plugins
  • Selecting provisioning profile, because incremental build more or less never works with IL2CPP as far as we can see, and disabling it is a hassle.
  • Disabling DSYM generation in release config.

Should ideally also work with Unity Cloud build.

I seem to remember Unity themselves posting a C# framework for this some time ago, but I can’t find it under their github account.

You can’t find it on their github because it’s on their bitbucket.

https://bitbucket.org/Unity-Technologies/xcodeapi/overview

It is in fact built in to the Unity 5 editor in the UnityEditor.iOS.Xcode namespace. Use it anywhere editor scripts can be used. Primary use is through the PBXProject class.