企業包 無設備限制,方便分發,需要手動信任證書
開發包 100個設備UDID限制
-
手機 + Xcode 手動安裝,一個兩個無所謂,人多或者機器一多就挺煩
-
外網 + manifest.plist的https鏈接 可行,但是服務器支持
-
內網 + manifest.plist的https鏈接 => 需要和手機保持同一個網段即局域網
manifest.plist
格式如下: 需要放到https
的資源服務器上 這裏直接放github了, IPA放本地開個webServer 即可
<?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>
<!-- ipa文件資源所在地址 一般放內網 局域網訪問資源文件快 一般ipa資源文件比較大 -->
<string>http://192.168.111.111:8080/app.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<!-- bundleID -->
<string>x.x.x</string>
<key>bundle-version</key>
<string>x.x.x</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>App</string>
</dict>
</dict>
</array>
</dict>
</plist>
利用itms-services
協議,畫個按鈕用html的a標籤進行訪問即可
itms-services://?action=download-manifest&url=manifest.plist的url
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>iOS App安裝</title>
<style>
.rect {
width: 200px;
height: 200px;
background-color: teal;
border-radius: 50px;
}
#download {
width: 200px;
height: 50px;
color: white;
background-color: tomato;
font-size: 25px;
border-radius: 25px;
box-shadow: 10px 10px 5px #888;
padding: 10px;
background-image: linear-gradient(to top right, red, orange);
text-decoration: none;
}
</style>
</head>
<body>
<div class="rect"></div>
<div><p>App</p></div>
<div id="app">
<a
id="download"
href="itms-services://?action=download-manifest&url=https://cdn.jsdelivr.net/gh/WangGuibin/ImageBed@main/files/xxx.plist"
>下載安裝</a
>
</div>
</body>
</html>