Bug 7898 - MD should generate Enterprise distribution packages
Summary: MD should generate Enterprise distribution packages
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: Low normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-10-18 11:01 UTC by Nic Wise
Modified: 2013-08-05 13:12 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Nic Wise 2012-10-18 11:01:28 UTC
As per Miguel's request.

Like the Project -> Zip App Bundle, it'd be lovely if MD would generate the Enterprise OTA download stuff. Which is almost the same.

1. Generate an IPA (this is the same as the ZIP file that it generates now, with the iTunes Artwork too)
2. Generate the .plist file, as per

http://idevblog.info/wireless-ad-hoc-app-distribution/

Maybe generate a basic .html page, with instructions on what to change in Apache and IIS (this would be static)
Comment 1 Nic Wise 2012-10-18 11:04:33 UTC
plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>items</key>
  <array>
      <dict>
          <key>assets</key>
          <array>
              <dict>
                  <key>kind</key>
                  <string>software-package</string>
                  <key>url</key>
                  <string>[URL]/myapp.ipa</string>
              </dict>
          </array>
          <key>metadata</key>
          <dict>
              <key>bundle-identifier</key>
              <string>[BUNDLE ID]</string>
              <key>bundle-version</key>
              <string>[VERSION]</string>
              <key>kind</key>
              <string>software</string>
              <key>title</key>
              <string>[APP NAME]</string>
          </dict>
      </dict>
  </array>
</dict>
</plist>
Comment 2 Nic Wise 2012-10-18 11:10:27 UTC
This also has details.

http://my.safaribooksonline.com/book/programming/mobile/9781449314781/4dot-build-and-release/id2783928

xcode asks for a base URL, which I guess is a good idea :)

plus, incase that book goes away:

Copy both the application archive (.ipa file) and manifest (.plist file) generated in the previous section to the location on your web server directory that accurately reflects the “Application URL” you specified in step 5. Create a link to the manifest file to your web page, for example:
<a href="itms-services://?action=download-manifest&url=http://192.168.1.106/apps/nextgreatapp.plist">Install NextGreatApp</a>
You will now be able to email a link to the website that contains the link just shown; users will be able to use the link to install the app onto their iOS device. Because the Ad Hoc Distribution Provisioning Profile was embedded into the application archive, it will also be installed onto their device.
Comment 3 Miguel de Icaza [MSFT] 2012-10-19 08:56:10 UTC
Jeff,

This is something that Xcode implements in the Organizer.

Look in the Organizer in "Archives" and in your application look for "Distribute", one of the options is "Enterprise Distribution", what it does is generate the above plist file.
Comment 4 Jeffrey Stedfast 2012-12-07 17:09:20 UTC
With the Archives stuff I did, once you archive a MonoTouch app, you can go to the Xcode Organizer and do this from there.

BTW, Xcode only seems to generate the .ipa and the .plist, it doesn't seem to offer to upload it anywhere nor does it appear to generate any html pages?
Comment 5 Miguel de Icaza [MSFT] 2012-12-07 17:24:38 UTC
This is correct, we only care about the IPA and PLIST files.

It is up to the user to get those somewhere and published on his own.
Comment 6 Jeffrey Stedfast 2012-12-07 18:15:51 UTC
Tested and it works...
Comment 7 Jeffrey Stedfast 2012-12-07 18:16:23 UTC
(although we could probably implement a button in MonoDevelop's Archive manager to do this as well...)
Comment 8 Jeffrey Stedfast 2013-02-27 22:12:12 UTC
I've implemented the "Validate..." button and have added a "Distribute..." button (like Xcode has) that launches some Apple app that walks you through distributing an app, though I'm not sure if that app supports Enterprise Distribution.

Will have to check on that...

(After implementing the Validate button, I gave up trying to implement the Distribute button. I'm sure eventually I'll forget the pain and try again...)
Comment 9 Jeffrey Stedfast 2013-08-05 13:12:37 UTC
this was implemented