我一直在尝试在我的网站上设置一个链接,允许访问者下载我的企业应用程序文件。我一直在遵循 Apples 网站的说明:
https://help.apple.com/deployment/ios/#/apda0e3426d7
但是,每当我单击下载链接时,什么都没有发生。我一行一行地按照 Apple 的说明进行操作,但我不知道为什么它仍然不起作用。
这是我到目前为止所做的:
- 我已经为 iPA 文件设置了正确的配置
- 我已将 iPA 文件与 .plist 文件一起上传到服务器上的某个位置(都在同一目录中)
我将以下链接添加到我的网站(链接中的 url 指向我存储 .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 证书,但我没有专用服务器。除此之外,我不知道问题可能是什么。这里有谁知道为什么这对我不起作用?