二、创建app.plist
1、
<?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://192.168.4.247/app/keng6.ipa</string> (ipa包地址)
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>https://192.168.4.247/app/57.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.ipeaksoft.pitDadGame</string> (项目的bundle id)
<key>bundle-version</key>
<string>2.4.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>内侧ipa</string>
</dict>
</dict>
</array>
</dict>
</plist>
2、创建html
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<a href="https://192.168.4.247/app/server.crt">安装证书</a>
<br/>
<br/>
<br/>
<br/>
<a href="itms-services://?action=download-manifest&url=https://192.168.4.247/app/app.plist">安装app</a>
</body>
</html>
说明:需要先安装服务器证书,不然下载不了ipa
3、打包ipa,要选择adhoc的证书
打包时这里选择adhoc的证书就可以了,debug的还是开发证书。
倒出的ipa放在Apache 的Documents/ios 里(app.plist,index.html,ipa 都在ios文件)
就可以实现安装了
safari 访问 https://ip/ios/index.html
先安装证书在安装 ipa