3

私はこれに従ってアプリをワイヤレスでインストールし、さまざまなブログや投稿をフォローしましたが、エンタープライズディストリビューションを機能させることはできませんでした。

私は次のことをしました。

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>

..しかし、これをクリックすると、「ファイルまたはディレクトリが見つかりません」と表示されます。

誰かが私がここで何が欠けているのか教えてもらえますか?私はこれを機能させるために今半日を過ごしました!

4

4 に答える 4

2

私はまったく同じ問題を抱えています。

MIME タイプを追加しました。アイコンを開くことができました。iPad で ipa を開こうとすると、同じエラーが表示されます。ただし、PC のブラウザーから ipa を開くことはできます。

このリンクの手順に従いましたが、リンクをクリックしても何も起こりません。私にとっては何もしなくても、リンクはあなたを助けるでしょうか?

私のマニフェストファイルも少し異なります(xcodeで作成されたものではありません)

<?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>kind</key>
                    <string>software-package</string>
                    <key>url</key>
                    <string>http://url/to/ipa.ipa</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                    <string>http://url/to/icon/57.png</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                    <string>http://url/to/full/icon.png</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>com.app.myapp</string>
                <key>bundle-version</key>
                <string>1.1</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>myApp</string>
            </dict>
        </dict>
    </plist>

申し訳ありませんが、これ以上お役に立てませんでした。

于 2012-04-19T10:13:07.917 に答える
1

次の設定は常にうまくいきました!

install.html ファイル:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Remote App Install</title>
</head>
<body>
<ul>

    <a href="itms-services://?action=download-manifest&url=http://us.www.mysite.com/install.plist">
        Install App</a>
</ul>
</body>
</html>

install.plist ファイル

<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>http://us.www.mysite.com/myapp1_0.ipa</string>
        </dict>
                <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>url</key>
                    <string>http://us.www.mysite.com/icon.png</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>url</key>
                    <string>http://us.www.mysite.com/icon@2x.png</string>
                </dict>
      </array>

             <key>metadata</key>
        <dict>
        <key>bundle-identifier</key>
        <string>com.mysite.myapp</string>
        <key>bundle-version</key>
        <string>1.0</string>
        <key>kind</key>
        <string>software</string>
        <key>title</key>
        <string>My App</string>
        </dict>
      </dict>
    </array>
 </dict>

于 2012-06-01T11:56:22.290 に答える
-1

<?xml version="1.0" encoding="UTF-8"?> plist ファイルから最初の行を削除すると、機能するはずです。

于 2013-10-17T15:28:00.157 に答える