iOS 自動打包工具 ipa server,當然使用蒲公英分發平臺更好
阿新 • • 發佈:2019-01-07
http://www.tuicool.com/articles/jM36fiU
自動生成自簽名HTTPS伺服器,快速安裝ipa
支援
- OS X
- Ubuntu
- 其他平臺未測試
需要
安裝
$ npm install -g ios-ipa-server//下載nodejs之後shell指令安裝,如果安裝失敗的話,sudo使用個人許可權去安裝
用法
Usage: ios-ipa-server [option] [dir]
Options:
-h, --help output usage information
-V, --version output the version number
-p, --port <port-number> set port for server (defaults is 1234)
開啟服務
$ cd /path/of/ipa
$ ios-ipa-server
# or
$ ios-ipa-server /path/of/ipa
# open https://ip:port/download on your iphone
關於 ipa
打包方法
- 企業級分發
- 普通開發者賬號推薦使用shenzhen打包生成
ipa
安裝app
- 手機使用safari開啟
https://ip:port/download
頁面 - 第一次開啟會彈出警告
無法驗證伺服器
詳細資訊
按鈕安裝證書,按指示一直點選下一步和完成( 強烈推薦使用靜態IP,避免每次重新安裝證書 ) - 點選
ipa
連結線上安裝ipa
效果圖
開發
# 下載原始碼
$ git clone [email protected]com:bumaociyuan/ios-ipa-server.git
# 安裝依賴包
$ cd ios-ipa-server
$ npm install
# 建立link 方便除錯
$ npm link
# 執行
$ cd /path/of/ipa
//此處的path/of/ipa其實就是ipa的路徑
$ ios-ipa-server