如何下载OTA内部iPA应用文件

时间:2017-08-01 15:55:44

标签: ios manifest ota ios-enterprise

我一直试图在我的网站上设置一个链接,允许访问者下载我的企业应用程序文件。我一直在遵循苹果网站上的说明:

https://help.apple.com/deployment/ios/#/apda0e3426d7

但是,每当我点击下载链接时,都没有任何反应。我一行一行地遵循了苹果的说明,但是,我无法弄清楚为什么它仍然无法正常工作。

这是我到目前为止所做的事情:

  1. 我已为iPA文件设置了正确的配置
  2. 我已将我的iPA文件与.plist文件一起上传到我服务器上的某个位置(两者都在同一目录中)
  3. 我在我的网站上添加了以下链接(链接中的网址指向我存储.iPA和.plist文件的位置)

    <a href="itms-services://?action=download-manifest&url=https://www.my-site.com/Info.plist">Install iPhone App</a>
    
  4. 我将以下代码添加到我网站根目录的.htaccess文件中:

    AddType text/xml .plist
    AddType application/octet-stream .ipa
    <Files *.ipa>
         Header set Content-Disposition attachment
    </Files>
    
  5. 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>url</key>
                        <string>https://www.my-site.com/app-file.ipa</string>
                    </dict>
                    <dict>
                        <key>url</key>
                        <string>https://www.my-site.com/display-image57x57.png</string>
                    </dict>
                    <dict>
                        <key>kind</key>
                        <string>full-size-image</string>
                        <key>url</key>
                        <string>https://www.my-site.com/full-size-image512x512.png
                        </string>
                    </dict>
                </array>
            </dict>
        </array>
        <key>CFBundleDevelopmentRegion</key>
        <string>en</string>
        <key>CFBundleDisplayName</key>
        <string>AFFORDABLE HOME CARE</string>
        <key>CFBundleExecutable</key>
        <string>$(EXECUTABLE_NAME)</string>
        <key>CFBundleIdentifier</key>
        <string>com.xxxxxxxxxxxxxxxxxx.AHC</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
        <string>MY APP NAME HERE</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>1.0</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
        <string>1.0</string>
        <key>ITSAppUsesNonExemptEncryption</key>
        <false/>
        <key>LSApplicationCategoryType</key>
        <array>
            <string></string>
        </array>
        <key>LSRequiresIPhoneOS</key>
        <true/>
        <key>NSAppTransportSecurity</key>
        <dict>
            <key>NSAllowsArbitraryLoads</key>
            <true/>
        </dict>
        <key>UIAppFonts</key>
        <array>
            <string>SinkinSans-300Light.otf</string>
            <string>SinkinSans-300LightItalic.otf</string>
            <string>SinkinSans-400Italic.otf</string>
            <string>SinkinSans-400Regular.otf</string>
            <string>SinkinSans-500Medium.otf</string>
            <string>SinkinSans-500MediumItalic.otf</string>
            <string>SinkinSans-600SemiBold.otf</string>
            <string>K</string>
        </array>
        <key>UIBackgroundModes</key>
        <array>
            <string>remote-notification</string>
        </array>
        <key>UILaunchStoryboardName</key>
        <string>LaunchScreen</string>
        <key>UIRequiredDeviceCapabilities</key>
        <array>
            <string>armv7</string>
        </array>
        <key>UISupportedInterfaceOrientations</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
        </array>
        <key>UISupportedInterfaceOrientations~ipad</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
            <string>UIInterfaceOrientationPortraitUpsideDown</string>
            <string>UIInterfaceOrientationLandscapeLeft</string>
            <string>UIInterfaceOrientationLandscapeRight</string>
        </array>
    </dict>
    </plist>
    

    每当我点击下载链接并查看chrome中的控制台日志时,它会显示状态为已取消,它看起来像这样:

    Chrome Error Message 1 Chrome Error Message 2

    对于我的生活,我无法让它发挥作用。只有我能想到的是它与我的服务器有关,这是我无法控制的。我的服务器通过GoDaddy在共享主机平台上。我有一个SSL证书,但我没有专用的服务器。除此之外,我不知道问题可能是什么。这里有没有人知道为什么这对我不起作用?

0 个答案:

没有答案