cert/lib/cert/runner.rb in fastlane-2.197.0 vs cert/lib/cert/runner.rb in fastlane-2.198.0

- old
+ new

@@ -152,11 +152,14 @@ when :developer_id_application return Spaceship::ConnectAPI::Certificate::CertificateType::DEVELOPER_ID_APPLICATION when :developer_id_kext return Spaceship::ConnectAPI::Certificate::CertificateType::DEVELOPER_ID_KEXT when :developer_id_installer - raise "Cannot do with ASC API?" - # return Spaceship.certificate.developer_id_installer + if !Spaceship::ConnectAPI.token.nil? + raise "As of 2021-11-09, the App Store Connect API does not allow accessing DEVELOPER_ID_INSTALLER with the API Key. Please file an issue on GitHub if this has changed and needs to be updated" + else + return Spaceship::ConnectAPI::Certificate::CertificateType::DEVELOPER_ID_INSTALLER + end else UI.user_error("Unaccepted value for :type - #{Cert.config[:type]}") end end