在沒有架設伺服器的情況下,我採用Dropbox,只要把檔案同步到雲端,透過分享連結,就能讓客戶下載App測試版本喔!
透過第三方平台發版本可參考:發佈版本給使用者測試 (Crashlytics Distribution for User Test) 。
首先要準備四個檔案:
- IPA檔,也就是App安裝檔
- plist檔,記載App資訊
- 正方型圖檔,下載時顯示的icon
- html檔,設置連結給客戶開啟
客戶會看到下載App的指示,點擊後會跳出安裝提示。
接下來看plist檔藏了什麼奧秘⋯⋯
透過規定好的格式,稍加修改我的App的資訊:
<?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://dl.dropboxusercontent.com/s/tizdgz3y0ccvbmq/happyApp0630PM0301.ipa</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>https://dl.dropboxusercontent.com/s/nwbve3qp2e1gfdu/sun%20flower.png</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>com.heineken.internal-app</string> <key>bundle-version</key> <string>2.4</string> <key>kind</key> <string>software</string> <key>subtitle</key> <string>快樂開發</string> <key>title</key> <string>快樂App</string> </dict> </dict> </array> </dict> </plist>
plist檔內容需要注意的三個地方:
- 兩個url地址,即software-package和display-image的URL,前者是所要安裝的ipa位址,後者是安裝時桌面顯示的icon。
- metadata裡需要修改bundle-identifier和bundle-version,一定要跟所安裝的ipa包內容一致,否則無法安裝成功。
- 可以修改title和subtitle,安裝時彈出框的內容。
html檔可以這麼寫:
<a href="itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/v2eof4b7o2ujgc7/happyios-0630.plist">下載 Happy App</a> <a href="https://dl.dropboxusercontent.com/s/tizdgz3y0ccvbmq/happyApp0630PM0301.ipa">下載 Happy App ipa</a>
設定完成後,分享此html連結,就能在iPhone上安裝!
註:本文是以企業開發者帳號做示範,一般開發者帳號要讓他人裝置安裝App,依然要遵守Provision記載UDID來包版本喔~
隨意留個言吧:)~