Search code examples
iosiphonebundlead-hoc-distribution

How to do wireless installaton of Ad Hoc App on iPhone


I want to distribute IPA to testers by wireless.

I have searched and found one example.

Example for Wireless Ad Hoc Distribution

But it did not work with me. It shows Not valid for URL.

I am using http url. Few links shows that it require https ,

Is that true ? Or I need to configure something else.

Please respond.

enter image description here


Solution

  • Just save your ad hoc package for enterprise distribution, edit the generated HTML for the correct locations.
    Note that starting from iOS 7 or 8 (not sure), the IPA and PLIST files must be located in a secured website (https).

    Here is a sample without using "save for enterprise":

    HTML:

    <a href="itms-services://?action=download-manifest&url=https://YourPlistLocation.plist">Install</a>
    

    And the 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>https://Your IPA Location</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>needs-shine</key>
                    <false/>
                    <key>url</key>
                    <string>http://your image location</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>needs-shine</key>
                    <false/>
                    <key>url</key>
                    <string>http:// your icon location</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>com.your.bundle.id.goes.here</string>
                <key>bundle-version</key>
                <string>YourVersionHere</string>
                <key>kind</key>
                <string>software</string>
                <key>subtitle</key>
                <string>Your subtitle here</string>
                <key>title</key>
                <string>Your title here</string>
            </dict>
        </dict>
    </array>
    </dict>
    </plist>