无法连接到iOS企业应用程序中的example.com [英] cannot connect to example.com in iOS enterprise app

查看:103
本文介绍了无法连接到iOS企业应用程序中的example.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临一个严重的问题.我正在尝试启用企业应用程序.通过使用BetaBuilder,我可以按照以下步骤操作:

I'm facing a serious problem. I'm trying to make a enterprise app live.By using BetaBuilder I follows these steps:

myApp.ipa
manifest.plist
index.html

manifest.plist:

manifest.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>kind</key>
                    <string>software-package</string>
                    <key>url</key>
                    <string>https://example.com/ios/myapp.ipa</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>com.com.myapp</string>
                <key>bundle-version</key>
                <string>1.0</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>Myapp</string>
            </dict>
        </dict>
    </array>
</dict>
</plist>

和index.html文件:

and the index.html file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Myapp - Beta Release</title>
</head>
<body>

<div id="container">
  <h1>iOS 4.0 Users:</h1>
  <div class="link"><a href="itms-services://?action=download-manifest&url=https://example.com/ios/manifest.plist">Tap Here to Install</a>
  </div>
</div>

</body>
</html>

我什至建立了httphttps的链接.但是它总是说:Cannot connect to example.com.设置有什么问题吗?

I even made the link http to https. But it always says :Cannot connect to example.com. Whats wrong with the setup?

推荐答案

必须通过使用带有经过验证的SSL证书的SSL来提供无线iOS发行版本.

Over-The-Air iOS distributions must be served from using SSL with a verified SSL certificate.

现在要破坏OTA,您必须遵循以下步骤.

Now to distrubute OTA you must follow these steps.

1)提供指向所生成的.plist文件的链接,该文件包含应用程序下载的清单.此链接必须必须通过SSL并带有经过验证的SSL证书.有效的.plist文件的示例如下:

1) Provide a link to your generated .plist file that contains the manifest for the application download. This link MUST be served over SSL with a verified SSL certificate. An example of a valid .plist file is such:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>kind</key>
            <string>software-package</string>
            <key>url</key>
            <string>https://[full download url].ipa</string>
          </dict>
        </array>
        <key>metadata</key>
        <dict>
          <key>bundle-identifier</key>
          <string><full bundle identifier></string>
          <key>bundle-version</key>
          <string>[version string]</string>
          <key>kind</key>
          <string>software</string>
          <key>title</key>
          <string>[software name]</string>
        </dict>
      </dict>
    </array>
  </dict>
</plist>

2)必须使用有效的SSL证书提供.plist文件中的URL密钥.

2) URL key in the .plist file must be served from a valid SSL certificate.

现在我不是您服务器设置的100%,但是Web服务器可能无法正确响应.plist扩展名和.ipa扩展名.您必须将Web服务器设置为了解以下文件扩展名\ mime-type:

Now I am not 100% of your server setup but there is the possibility the web server does not respond correctly to the .plist extension as well as the .ipa extension. You must set your web server to understand the following file extension \ mime-type:

  • 扩展名:.plist
  • MimeType:application/xml

扩展名:.ipa

起初,我们的应用程序要无线部署时遇到很多问题.最大的障碍是关于SSL证书和MimeTypes.

We had many problems at first getting our applications to be deployed over the air. The biggest hurdle was around the SSL certificate and MimeTypes.

最后一条评论,我确定您在链接或plist文件中使用example.com拥有自己的域和地址.

One final comment, I am sure you have your own domain and arent using example.com in your links or plist files.

干杯..

这篇关于无法连接到iOS企业应用程序中的example.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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