I'm building for iOS and using the FacebookSDK. And I want to automate thru Jenkins. Now when I "build and Run" in the editor, It builds the xcode project correctly. But when I run it thru the commandline the postbuildprocess never gets run. I can't find anything online about this issues. Anyone have any ideas? Or need any other info to come up with a theory?
Here is the autobuild code:
[MenuItem("Build/iOS")]
static void PerformiOSBuild ()
{
EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTarget.iPhone);
BuildPipeline.BuildPlayer(GetScenePaths(), "iOS",BuildTarget.iPhone,BuildOptions.None);
}
and here is my commandline args:
/Applications/Unity/Unity.app/Contents/MacOS/Unity -projectPath "/Users/USERNAME/Desktop/Work/PROJECTNAME/Unity/" -executeMethod AutoBuilder.PerformiOSBuild -quit -batchmode
I was able to get around this by calling Facebook's PostProcess manually. Here's my build script:
Keep in mind I'm new to Unity, so if something in here looks gross feel free to say so.