我一直试图在我的网站上设置一个链接,允许访问者下载我的企业应用程序文件。我一直在遵循苹果网站上的说明:
https://help.apple.com/deployment/ios/#/apda0e3426d7
但是,每当我点击下载链接时,都没有任何反应。我一行一行地遵循了苹果的说明,但是,我无法弄清楚为什么它仍然无法正常工作。
这是我到目前为止所做的事情:
我在我的网站上添加了以下链接(链接中的网址指向我存储.iPA和.plist文件的位置)
<a href="itms-services://?action=download-manifest&url=https://www.my-site.com/Info.plist">Install iPhone App</a>
我将以下代码添加到我网站根目录的.htaccess文件中:
AddType text/xml .plist
AddType application/octet-stream .ipa
<Files *.ipa>
Header set Content-Disposition attachment
</Files>
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中的控制台日志时,它会显示状态为已取消,它看起来像这样:
对于我的生活,我无法让它发挥作用。只有我能想到的是它与我的服务器有关,这是我无法控制的。我的服务器通过GoDaddy在共享主机平台上。我有一个SSL证书,但我没有专用的服务器。除此之外,我不知道问题可能是什么。这里有没有人知道为什么这对我不起作用?