45
47

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ipaファイルをWebからインストールする時のdownload-manifest用plistの作り方

Posted at

AIRで作った時、Xcodeでplistが作れないのでメモ。
チームのメンバーが登録済みならTestFlight使った方が早い。

ローカルサーバー立てて複数端末でチェックしたい時とかに。

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>http://example.com/test.ipa</string>
        </dict>
      </array>
      <key>metadata</key>
      <dict>
        <key>bundle-identifier</key>
        <string>com.example.test</string>
        <key>bundle-version</key>
        <string>1.0.0</string>
        <key>kind</key>
        <string>software</string>
        <key>subtitle</key>
        <string>Company Name</string>
        <key>title</key>
        <string>AppName</string>
      </dict>
    </dict>
  </array>
</dict>
</plist>

ダウンロード用HTML

ダウンロード用HTMLに上記plistへのリンクを設定する。

ダウンロードページにplistへのリンクを設定する
<a href="itms-services://?action=download-manifest&url=http://example.com/manifest.plist">install app</a>

ContentType

ファイルのContentTypeは以下の設定になってないとダメらしい。

htaccessでファイルのタイプを設定する
AddType application/octet-stream .ipa
AddType application/x-plist .plist
45
47
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
45
47

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?