Fastlane "Migrating to new match..."

fastlane
match

#1

This is going to be one of those “doh!” moments I’m sure.

I’m adding my certificates via fastlane and just can’t get it to work.

 desc "Installs the certificates and profiles locally"
  lane :update_cerficicates do
    if is_ci?
      ensure_git_status_clean
    end

    sync_code_signing(
      type: "appstore",
      readonly: true,
      clone_branch_directly: true,
      shallow_clone: true,
    )

    sync_code_signing(
      type: "development",
      readonly: true,
      clone_branch_directly: true,
      shallow_clone: true,
    )

    if is_ci?
      sh "security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{ENV["KEYCHAIN_NAME"]} #{ENV["KEYCHAIN_PASSWORD"]}"
    end
  end

The keychain is setup per the example at https://medium.com/sixt-labs-techblog/continuous-integration-and-delivery-at-sixt-91ca215670a0, which all seems good.

I get into the update_cerficicates task and

[22:45:35]: Cloning remote git repo...
[22:45:45]: Migrating to new match...

Which fails miserably with

undler: failed to load command: fastlane (/Users/distiller/project/.bundle/gems/ruby/2.5.0/bin/fastlane)
RuntimeError: [!] This code should only run in interactive mode
  /Users/distiller/project/.bundle/gems/ruby/2.5.0/gems/fastlane-2.81.0/match/lib/match/change_password.rb:45:in `ensure_ui_interactive'
  /Users/distiller/project/.bundle/gems/ruby/2.5.0/gems/fastlane-2.81.0/match/lib/match/change_password.rb:9:in `update'
  /Users/distiller/project/.bundle/gems/ruby/2.5.0/gems/fastlane-2.81.0/match/lib/match/git_helper.rb:64:in `clone' 
...

I have MATCH_PASSWORD set and it’s showing if I run an env command.

It’s got me stumped.


#2

Hi, I have the exactly same issue? Is there any update, have you fixed it? Thanks.


#3