Continous Integretion for Unity

起因

  • 公司有 Unity 專案,需輸出 iOS project 並打包成 ipa 的需求,ipa 有可能是Enterprise program(for BU 測試用),以及 Developer program(上架到 AppStore)

  • 測試期間常重複上述建置動作,相當繁瑣且耗時,思考將流程自動化

建置流程如下

  1. Unity build iOS project

  2. Set iOS project configure, Such as Code sign, Provision Profile, Build Settings etc

  3. Export ipa for Enterprise or Appstore

Unity build iOS project

Set iOS project configure

  • Builder.cs 負責 Unity 建置 iOS 專案,在這個檔案裡我額外加了一個設定,把 AutomaticSigning 的功能關掉

  • XcodeProjectConfigurator.cs 在 Build 完之後,針對 iOS build property 進行設定,例如Code Sign 和 Provision_Profile

Export ipa for Enterprise or Appstore

Last updated