locked
how to build ios app RRS feed

  • Question

  • User4631 posted

    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 xamarin.com, but not fund any help.

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

    Wednesday, May 1, 2013 3:18 PM

Answers

  • User37696 posted

    I think @goldpicker might of wanted the docs to this: http://docs.xamarin.com/guides/ios/advanced_topics/mtouch

    I have not done this personally, but from reading the documentation linked above it seems the mtouch command lets you build your application from the terminal. This sounds more like what you wanted so you could do something automated and not have to use Xamarin Studio (can someone with the experience please confirm/deny?).

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, May 2, 2013 1:28 PM

All replies

  • User904 posted

    The App Distribution Overview documentations covers the compiling and distributing Ad-Hoc IPAs http://docs.xamarin.com/guides/ios/deployment%2Ctesting%2Candmetrics/appdistribution_overview

    Hope it helps

    Thursday, May 2, 2013 7:47 AM
  • User4631 posted

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

    Thursday, May 2, 2013 8:27 AM
  • User37696 posted

    I think @goldpicker might of wanted the docs to this: http://docs.xamarin.com/guides/ios/advanced_topics/mtouch

    I have not done this personally, but from reading the documentation linked above it seems the mtouch command lets you build your application from the terminal. This sounds more like what you wanted so you could do something automated and not have to use Xamarin Studio (can someone with the experience please confirm/deny?).

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, May 2, 2013 1:28 PM
  • User4631 posted

    @john Yes,This is what I mean.

    I want to see a document like here http://docs.xamarin.com/guides/android/advancedtopics/buildprocess

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

    this is why I buy a business version.

    Thursday, May 2, 2013 2:04 PM
  • User37696 posted

    @goldpicker

    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:

    • Are you trying to make a continuous integration server (http://en.wikipedia.org/wiki/Continuous_integration)?
    • Are you working in the Windows or Mac environment?

    I have seen talk from others on the forums that they use Jenkins to create a build server for their app building (http://jenkins-ci.org).

    Thursday, May 2, 2013 2:10 PM
  • User4631 posted

    @john

    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!

    Thursday, May 2, 2013 2:35 PM
  • User13828 posted

    @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.

    Thursday, June 13, 2013 7:19 PM
  • User34962 posted

    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: http://pastebin.com/umqi4xft

    When I run it, it fails like this:

    _BuildNativeApplication: Saying hello to the remote server at http://192.168.111.39:50018/ 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?

    Friday, February 7, 2014 10:13 AM