準(zhǔn)備
1.299的企業(yè)賬號
只有企業(yè)證書打包的ipa包才可以下載
2.對應(yīng)的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://www.****.com/ios/test.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>https://www.****.com/logo.png</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>https://www.****.com/logo.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>title</key>
<string>用于alert確認(rèn)時的提示</string>
<key>bundle-version</key>
<string>1.0.0</string>
<key>kind</key>
<string>software</string>
<key>bundle-identifier</key>
<string>com.kj.test</string>
</dict>
</dict>
</array>
</dict>
</plist>
注意:plist結(jié)構(gòu)一定不能搞錯
software-package:url :https://www.****.com/ios/test.ipa(你的ipa的地址)
display-image url:logo圖片的地址
bundle-identifier:com.kj.test:(bundleID需要ipa中需要保持一致)
bundle-version:1.0.0 (CFBundleVersion需要和ipa中的保持一致)
title:用于alert確認(rèn)時的提示(隨便寫)
3.部署plist文件與ipa安裝包進(jìn)行安裝
plist文件需要放到https的服務(wù)器
itms-services://?action=download-manifest&url=https://********/**/test.plist
用原生瀏覽器打開上面鏈接就可以正常安裝了
注意
ios16之后開始對bundleId進(jìn)行驗證了
如果ios16以上無法安裝,就是plist文件中配置的bundleId和ipa包里的bundleId不一致導(dǎo)致的,