how to build ios app

goldpickergoldpicker CNMember

I with to auto build ad-hoc ipa and appstore file

I wish can use command tools to compile and build Ad-Hoc ipa file and appstore file.

I search the doc in, but not fund any help.

Can any one give me a detail : How to do it?

Best Answer


  • prashantvcprashantvc USXamarin Team Xamurai

    The App Distribution Overview documentations covers the compiling and distributing Ad-Hoc IPAs,_testing,_and_metrics/app_distribution_overview

    Hope it helps

  • goldpickergoldpicker CNMember

    I ask how to do it use command, I Wish to do it auto.

  • goldpickergoldpicker CNMember

    Yes,This is what I mean.

    I want to see a document like here

    Complete description of the IOS release process, compile exe app ipa
    How about in.........

    this is why I buy a business version.

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai
    edited May 2013


    Do you have further questions, or have you found all the documents you need?

    If you have further questions, it might help for you to answer these questions first:

    I have seen talk from others on the forums that they use Jenkins to create a build server for their app building (

  • goldpickergoldpicker CNMember


    yes, I plan to use jenkins server to auto build ipa if I can.

    I have a slave node in mac.

    So I need know how to complete ths build and package ipa (ad-hoc or appstore) in command(shell)

    many thanks!

  • jpotts18jpotts18 USMember

    @goldpicker. I am building an Jenkins build server on my macbook too. I first looked into making it build from the command line with mtouch like @John suggested but I ran into some trouble with that and found mdtool which bundles a lot of lower level commands like mtouch.

    mdtool does the following

    1. executes Mono C# compiler msc. This performs the main compiliation

    2. Interface builder ibtool which compiles the interface definitions.

    3. Copies the content files and prepares directories

    4. Prepares the images by using pngcrush

    5. Mtouch which compiles to native code.

    6. Finally, mdtool updates the application manifest, debug configuration file, and settings manifest.

    I think all that is left is to execute codesign which will sign the package and allow me to use it on all my provisioned devices.

  • I've also been trying to auto-build IPA from the command line to use with our CI server.

    Here's my attempt:

    I've created an MSBuild target:

    When I run it, it fails like this:

    Saying hello to the remote server at
    C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(233,3): error : Unable to connect to the remote server
    C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(233,3): error : Server command 'Info': information about server not available
    C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(233,3): error : Command execution task ended with exception
    C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(233,3): error : Exception System.Net.WebException: Unable to connect to the remote server
    C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(233,3): error : Exception details can be found in the log file
    C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(233,3): error : Remote build step failed.

    Can anyone help? And where is this log file it talks about?

Sign In or Register to comment.