x-DZ-Ax
x-DZ-Ax

Reputation: 322

Fastlane match is trying to use Apple ID authentication instead of your App Store Connect API key

I'm trying to run fastlane match locally, it does successfully decrypt certificates from repo but then start asking for a username and password for apple id. Hence I have the keys saved in fastline/.env This is my match file:

git_url("https://github.com/app/myurl")

storage_mode("git")

git_branch("main")

type("appstore")

and example of fastfile

default_platform(:android)

desc "Build ios project"
platform :ios do
    before_all do
        if is_ci
            setup_ci
        end
    end
    app_store_connect_api_key(
        key_id: ENV['APPLE_KEY_ID'],
        issuer_id: ENV['APPLE_ISSUER_ID'],
        key_content: ENV['APPLE_KEY'],
        is_key_content_base64: true
    )
    desc "Build ios debug"
    lane :build_debug do |options|
...
        match(
             type: "adhoc",
             app_identifier: "my_id",
             force_for_new_devices: true,
             readonly: true,
         )
        update_code_signing_settings(
            use_automatic_signing: false,
            path: "ios/Runner.xcodeproj",
            profile_name: ENV['myprofile'],
        )
...
    end

Upvotes: 0

Views: 16

Answers (0)

Related Questions