How to build an adhoc IPA file for an IOS app in Visual Studio 2012 (asked and answered)

(I stumbled the answer to the question I intended to ask here, but I figured I'd finish the post for the community's benefit...)

Per Xamarin's (apparently incomplete) documentation on IPA support, I set up a project to build an ad-hoc/enterprise package (IPA) for my IOS iPad app in VS 2012. I selected the Ad-Hoc build configuration and then cleaned and built the project, but no IPA files were generated, unlike the Xamarin Studio screenshot in the documentation. Rather, a standard .exe file titled .exe is built by VS, but that's just the empty executable assembly for the C# console app project type that Xamarin uses, not the iPad app redistributable I was after. I even spent time playing with the iOS Bundle Signing project settings to ensure I had the right Identity and Provisioning Profile set...still with no luck.

Finally I found the Build Adhoc IPA... option on the BUILD menu in VS. It's this that kicks off the build of the IPA file, and I noticed on my Mac build server that it then wanted a keychain permission granted, presumably for signing the IPA file. I agreed, and saw in the Mac Server Log in VS that the archive build was apparently completed. I checked my VS project's \bin\iPhone\Ad-Hoc folder for the output, and...not there, again.

After rummaging around a bit more, I right-clicked on the project in Solution Explorer, and there in the context menu I saw a promising Show IPA File on Build Server command. I selected it, and Finder was fired up on my Mac, magically displaying the location where the build process had dumped my IPA file.

So there you have it, if you've been trying to follow the documented procedures for building an IPA in Visual Studio without success, I hope this helps. And Xamarin, please ensure that published documentation matches your release versions...or if you cover this procedure in a video or if I just missed it completely or something, please post correct links in this thread.

Answers

  • YuriShteinmanYuriShteinman CAUniversity ✭✭

    Thank you! You saved me some time.

  • FredericTorresFredericTorres USMember, Beta

    May 2014 and their is as bad as one year ago.
    Thanks you save me some time

  • IlyaGolovachIlyaGolovach UAMember ✭✭

    Thank you for the info

  • CarlosMoralesCarlosMorales PRMember

    Thanks a lot. This info is great!!

  • JeffGonzalesJeffGonzales USMember ✭✭

    I agree with @JulienRosen . I don't see any way to build the IPA. Tools -> iOS -> Show IPA File on Build Server does nothing for me either.

    When I just click the usual "Build" button it does succeed, but I don't see any IPA!

  • JulienRosenJulienRosen CAMember ✭✭✭✭
    edited December 2015

    @JeffGonzales Just like you can toggle between Debug and Release in VS, you can toggle to AdHoc.

  • StarCraftStarCraft USMember

    I followed the instruction on the Xamarin site on creating an IPA from VS (I'm using VS 2013 by the way), and clicked Show IPA File on Build Server but my build failed and an error appeared, No valid iOS code signing keys found in keychain. You need to request a codesigning certificate from https://developer.apple.com.
    Can someone help me with this please?

  • StarCraftStarCraft USMember

    Nevermind. I found out I was actually having issues with my certificate.

  • VarunvirjaisVarunvirjais USMember

    @JulienRosen said:
    @JeffGonzales Just like you can toggle between Debug and Release in VS, you can toggle to AdHoc.

    But in m using cross platform and "Build Adhoc IPA" is not in option instead it have "AppStore" and after successful build it shows IPA file not generated after click in "Show IPA File build on Server".
    can you plz help me out with it..

  • RobertTakefmanRobertTakefman USMember ✭✭

    Found it after hours

    In visual studio 2015, set solution configuration to 'debug' and solution platform to 'iPhone'. Under solution configuration, I didn't find any Ad-hoc option.

    Goto 'your_ios_project.iOS' properties-->ios Bundle signing, change identity from 'developer(automatic)' to 'iPhone Developer:xx..x(xx..)'

    Build the iOS project. After the build succeeds the IPA file gets generated both in your windows bin folder as well as in the MAC.

  • DavidStrickland0DavidStrickland0 USMember ✭✭✭
    edited November 2016

    If you use Visual Studio 2015 and found your way to this thread the IPA file is created in a dated subfolder. The IPA will NOT be created in the
    Bin > iOS Device > Ad Hoc
    it will be in
    Bin > iOS Device > Ad Hoc > AppNameYYYY-MM-DD HH-MM-SS

  • MichaelVowlesMichaelVowles USMember ✭✭

    @DavidStrickland0 said:
    If you use Visual Studio 2015 and found your way to this thread the IPA file is created in a dated subfolder. The IPA will NOT be created in the
    Bin > iOS Device > Ad Hoc
    it will be in
    Bin > iOS Device > Ad Hoc > AppNameYYYY-MM-DD HH-MM-SS

    Thanks Mate!

  • Thanks Mate!

  • JohnHoJohnHo USMember ✭✭

    I did the same thing like David posted. But Ad Hoc folder was empty. Then I check Build ad-hoc/Enterprice package IPA) in iOS IPA Options and it built ipa.
    Thanks
    John

  • ALEXEYSUBBOTAALEXEYSUBBOTA RUMember ✭✭
    edited July 2017

    After rummaging around a bit more, I right-clicked on the project in Solution Explorer, and there in the context menu I saw a promising Show IPA File on Build Server command. I selected it, and Finder was fired up on my Mac, magically displaying the location where the build process had dumped my IPA file.

    Yes, but I cannot understand how open this IPA from ApplicationLoader! If I see file property I see path like that "Untitled/Users/alexey/Library/Caches/Xamarin/mtbs/builds/xxx/yyy/bin/etc"
    I cannot see Library folder in the alexey folder from ApplicationLoader. Help anybody!

Sign In or Register to comment.