企业应用程序下载无法连接到“网站地址”。错误 [英] Enterprise application download cannot connect to "website address" error

查看:127
本文介绍了企业应用程序下载无法连接到“网站地址”。错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Ad Hoc企业版。

I have created an Ad Hoc enterprise build.

我使用了以下


  • 保存企业或AD Hoc部署

  • 选择我的分发证书

  • 另存为MyAppName

  • 选择保存企业开发

  • 应用程序URL https: //www.myurl.com/app/

  • 标题MyAppName

  • Save for enterprise or AD Hoc Deployment
  • Choose my distribution cert
  • Save as "MyAppName"
  • Select "Save for Enterprise Development"
  • Application URL "https://www.myurl.com/app/
  • Title "MyAppName"

之后我将构建内容上传到我的网站

After which I upload the build to my website

我创建了一个看起来像这样的index.html页面。

I have created a index.html page that looks like this.

<!DOCTYPE html>
<html>
<body>

<a href="itms-services://?action=download-manifest&url=itms-services://?action=download-manifest&url=https://www.myurl.com/app/MyAppName.plist" id="text">Download Here!</a>

</body>
</html>

然后我指导我的iPad浏览器到该URL并点击我发的链接我出现错误

Then when I direct my iPads safari browser to that URL and click the link I have made I get an error appear that says

无法连接到www.myurl.com

"Cannot connect to www.myurl.com"

现在我给的地址最初是HTTP,当我请求HTTPS时,由于企业规则中的7.1更新,托管公司告诉我它也支持HTTPS,所以我不确定是否这是导致问题的原因吗?或者如果它符合我的设置?

Now the address I was given was initially "HTTP" when I requested "HTTPS" due to 7.1 update in Enterprise rules the hosting company told me it will support "HTTPS" also, so I am not sure if this is what is causing the problem? or if It is something with my settings?

我一直在做很多阅读和管理要查找苹果 iOS_Deployment_Technical_Reference 的有用链接,最后几页是最有帮助的。

I have been doing alot of reading and managed to find a helpful link to apples iOS_Deployment_Technical_Reference the last couple of pages are most helpful.

所以我后来意识到我在index.html文件中放置的链接不正确...我试图直接链接到我的应用程序,我以为我已经读过某个地方,当你创建存档构建时,会生成manifest.plist并放在.ipa文件中。据我所知,在阅读苹果部署文档之后,这是错误的。

So what I have since realised is that the link I have placed inside my index.html file is incorrect... I was trying to directly link to my application, I thought I had read somewhere that when you create the archive build the manifest.plist is generated and place in the .ipa file. This as far as I can tell after reading apples deployment documentation is wrong.

该链接应该指向您还添加到您的Web目录的manifest.plist文件,清单文件告诉你的iDevice去哪里下载应用程序和其他一些细节。

The link is supposed to point to the manifest.plist file you also add to your web directory, the manifest file tells your iDevice where to go to download the application and a few other details.

在iOS_Deployment_Tecgnical_Refrence的底部是一个示例manifest.plist文件,我有现在编辑并添加到我的web目录,我已经更新了我的index.html href以指向清单文件。

At the bottom of the iOS_Deployment_Tecgnical_Refrence is an example manifest.plist file which I have now edited and added to my web directory, I have updated my index.html href to point to the manifest file.

其次我从浏览器下载了网站证书并通过电子邮件发送它到我的iPad并参考@borrrden评论安装它。

Secondly I downloaded the websites certificate from the browser and emailed it to my iPad and installed it in reference to @borrrden comment.

完成上述所有操作后,当我点击iPad上的链接时,我仍然收到错误消息无法连接到www.thewebsitesname.com在一个警告框中,唯一的选择是单击okay。

After all of the above I am still reciving the error message when i click the link from my iPad "Cannot connect to www.thewebsitesname.com" in an alert box where the only option is to click okay.

这是其他任何人感兴趣的Web清单示例。

This is an example of the web manifest for anyone else intrested.

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/
DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <!-- array of downloads. -->
 <key>items</key>
 <array>
 <dict>
 <!-- an array of assets to download -->
 <key>assets</key>
 <array>
 <!-- software-package: the ipa to install. -->
 <dict>
 <!-- required. the asset kind. -->
 <key>kind</key>
 <string>software-package</string>
 <!-- optional. md5 every n bytes. will restart a chunk if md5 fails. -->
 <key>md5-size</key>
 <integer>10485760</integer>
 <!-- optional. array of md5 hashes for each "md5-size" sized chunk. -->
 <key>md5s</key>
 <array>
 <string>41fa64bb7a7cae5a46bfb45821ac8bba</string>
 <string>51fa64bb7a7cae5a46bfb45821ac8bba</string>
 </array>
 <!-- required. the URL of the file to download. -->
 <key>url</key>
 <string>https://www.example.com/app/AppName.ipa</string>
 </dict>
 <!-- display-image: the icon to display during download.-->
 <dict>
 <key>kind</key>
 <string>display-image</string>
 <!-- optional. indicates if icon needs shine effect applied. -->
 <key>needs-shine</key>
 <true/>
 <key>url</key>
 <string>http://www.example.com/image.57x57.png</string><
 </dict>
 <!-- full-size-image: the large 512x512 icon used by iTunes. -->
 <dict>
 <key>kind</key>
 <string>full-size-image</string>
 <!-- optional. one md5 hash for the entire file. -->
 <key>md5</key>
 <string>61fa64bb7a7cae5a46bfb45821ac8bba</string>
 <key>needs-shine</key>
 <true/>
 <key>url</key><string>http://www.example.com/image.512x512.jpg</
string>
</dict>
 </array><key>metadata</key>
 <dict>
 <!-- required -->
 <key>bundle-identifier</key>
 <string>com.example.fooapp</string>
 <!-- optional (software only) -->
 <key>bundle-version</key>
iOS Deployment Technical Reference Guide
 44 <string>1.0</string>
 <!-- required. the download kind. -->
 <key>kind</key>
 <string>software</string>
 <!-- optional. displayed during download; typically company name -->
 <key>subtitle</key>
 <string>Apple</string>
 <!-- required. the title to display during the download. -->
 <key>title</key>
 <string>App Name</string>
 </dict>
 </dict>
 </array>
</dict>
</plist>

我的问题就在于此,您是否应该自己生成manifest.plist文件?或者有没有办法从xcode做到这一点?其次,当我选择链接并收到无法连接到网站地址时,可能导致此错误的原因是什么?

My questions stand at this, are you supposed to generate the manifest.plist file yourself? or is there a way to do this from xcode? Secondly, what reasons are there that could be causing this error when I select the link and receive the cannot connect to website address?

推荐答案

事实证明我的清单文件完全错误。
我用这个作为例子。

It turns out my manifest file was completely wrong. I used this as an example.

http://gknops.github.io/adHocGenerate/

因此,您上传的网页


  • myApp.ipa

  • manifest.plist

  • index.html

希望这有帮助。

这篇关于企业应用程序下载无法连接到“网站地址”。错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆