3.fastlane−ビルド - ArtefactGitHub/I_T_iOSPractice GitHub Wiki

◆Visual Studio のビルド用にプラグインを利用「fastlane-plugin-souyuz」

https://github.com/voydz/souyuz
(2.fastlane−利用前準備)参照

内部で msbuild を実行しているもよう。
https://msdn.microsoft.com/ja-jp/library/dd393574.aspx

◆match(sync_code_signing)

https://docs.fastlane.tools/actions/match/
http://tech.hyakuren.org/entry/ios-provisioning-use-fastlane-match
fastlane を用いて、アプリビルド時に必要になる証明書やプロビジョニングプロファイルを管理するコマンド。
プライベートな Git リポジトリを作成して管理する。

◆Fastfile サンプル

  # ==========================================
  #  Create ipa for AdHoc Build
  # ==========================================
  desc 'Create ipa for AdHoc Build'
  lane :AdHoc_Debug do
      # AdHoc の証明書とプロビジョニングプロファイルを取得
      match('adhoc')

      # 指定の scheme でビルド
      BuildForVisualStudio(build_configuration: "AdHoc_Debug")
  end

  # ==========================================
  #  BuildForVisualStudio
  # ==========================================
  desc 'Compiles the project'
  private_lane :BuildForVisualStudio do |options|
      options[:platform] = "ios"
      options[:plist_path] = ENV['PLIST_FILE_PATH']
      options[:solution_path] = ENV['SOLUTION_FILE_PATH']
      options[:build_target] ||= []
      # options[:build_target] << 'Build'
      options[:build_target] << 'Rebuild'

      # this basically invokes the core souyuz build engine
      souyuz(options)
  end

◆fastlane 実行

$ bundle exec fastlane AdHoc_Debug

◆Visual Studio の設定

・各ビルド構成を追加する
ビルド構成  

・各ビルド構成ごとに署名を設定する iOSバンドル署名