How to get XCode project from Unity project?

Good day to all.

It is a bit strange, but I can’t find any info about how to create an XCode project from unity project using command line. I want to write the shell script, that will create XCode project, then build it, archive, etc. The only thing I don’t know is how to get XCode project. Maybe i’m just too tired, but it seems really strange and I don’t want to believe that the only way is to do it manually from the unity editor.

I will be glad to get any advice or link about this.

Thanks.

I would try to do something like that:

  • Create an editor script in your project which will contain a static function which uses BuildPipeline.BuildPlayer to build the player.
  • Run Unity with those commandline parameters:
    • -projectPath YourProjectPath
    • -batchmode
    • -quit
    • -executeMethod YourClassName.YourMethodName

You can use System.Environment.GetCommandLineArgs in your editor script to process any additional parameters

Steps to be followed in unity:

  1. Switch platform to Iphone
    2)go to build setting----> player setting and fill the credentials there
    4)now click on Build
    5)you will be asked for the path and after few secs. you will get xcode proj of your unity project

Don’t forget to mark the answer if Helped…