Jenkins+ Xcode+ 蒲公英 實現IOS自動化打包和分發
阿新 • • 發佈:2019-01-05
直接入正題:
Screen Shot 2015-09-18 at 16.56.20.png
Mac上安裝Jekins
安裝Jekins相關外掛
IOS證書管理和修正
1.點選 Manage Jenkins-> [Keychains and Provisioning Profiles Management] 進入如下頁面
Screen Shot 2015-09-18 at 15.49.30.png
2.點選choose File 並上傳 當前登入使用者的~/Library/Keychain/login.keychain檔案.
上傳成功後會出現:
Screen Shot 2015-09-18 at 15.55.05.png
點選Add Code Signing Identity新增對應的簽名
3.上傳Provisioning Profiles檔案,xcode的profile存放在~/Library/MobileDevice/Provisioning Profiles/中,找到你要的profile,上傳
Screen Shot 2015-09-18 at 16.04.46.png
這步很重要,如果證書出錯請檢視:http://www.cnblogs.com/qingjoin/p/3929493.html
新建專案
1.New Item -> 選擇FreeStyle project
2.關聯GIt
Screen Shot 2015-09-18 at 16.27.12.png
3.Xcode的相關配置
Screen Shot 2015-09-18 at 16.29.41.png
Screen Shot 2015-09-18 at 16.29.55.png
Screen Shot 2015-09-18 at 16.30.02.png
4.ipa上傳到蒲公英和傳送郵件
Screen Shot 2015-09-18 at 16.30.40.png