我已经按照这个链接的指示精确地进行了无线安装,也查阅了不同的博客和帖子,但是无法使企业级分发正常工作。
我已经完成了以下步骤。
Index.html页面:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>My app</title>
</head>
<body>
<ul>
<a href="itms-services://?action=download-manifest&url=http://10.0.20.600:5151/MyApp.plist">
Install App</a>
</ul>
</body>
</html>
MyApp.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>URL</key>
<string>http://10.0.20.600:5151/MyApp.ipa</string>
<key>display-image</key>
<string>http://10.0.20.600:5151/icon72x72.png</string>
<key>full-size-image</key>
<string>http://10.0.20.600:5151/icon512x512.png</string>
<key>bundle-identifier</key>
<string>com.MyCompany.MyApp</string>
<key>bundle-version</key>
<string>1.0</string>
<key>title</key>
<string>MyAppName</string>
</dict>
</plist>
可用的MIME类型:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".ipa" mimeType="application/octet-stream" />
<mimeMap fileExtension=".plist" mimeType="text/xml" />
</staticContent>
</system.webServer>
</configuration>
给予MyApp.plist文件完全权限。
当我在iPad的Safari浏览器上打开http://10.0.20.600:5151/index.html页面时,我可以看到该页面,但是在点击“安装应用”按钮后,*没有任何反应*,没有错误信息,也没有其他提示!
有人提到需要下载移动配置文件,因此我在我的index.html文件中添加了以下内容。
<a href="http://10.0.20.600:5151/MyApp.mobileprovision">
Install Provisioning File</a>
但是当我点击它时,它显示“找不到文件或目录”。
请问有人可以告诉我我错过了什么吗?我已经花了半天时间来让它工作!