Giter VIP home page Giter VIP logo

Comments (9)

lacostej avatar lacostej commented on April 28, 2024

@greatcat19 What command are you running?

@nekrich an idea?

from fastlane.

greatcat19 avatar greatcat19 commented on April 28, 2024

something like

$ bundle e fastlane match development --platform catalyst

My lane:

def perform_match(type)
  platform = lane_context[:PLATFORM_NAME]
  # https://docs.fastlane.tools/actions/match/#match
  match_platform = platform == :ios ? 'ios' : 'catalyst'
  match(
    type: type,
    team_id: TEAM_ID,
    api_key_path: ASC_KEY_PATH, # comment me out when readonly is false
    app_identifier: MAIN_IDENTIFIERS,
    platform: match_platform,
    additional_cert_types: type == 'developer_id' ? 'developer_id_installer' : nil,
  )
end

desc 'This lane downloads and configures the code signing certificates and profiles.'
lane :configure_code_signing do |options|
  perform_match('appstore') if options[:appstore] == true
  perform_match('development') if options[:development] == true
end

from fastlane.

lacostej avatar lacostej commented on April 28, 2024

Could you run VERBOSE=true bundle e fastlane match development --platform catalystand also put more of your output so we see where it fails? Thanks.

from fastlane.

Schlabbi avatar Schlabbi commented on April 28, 2024

Running into the same problem right now.

[19:37:59]: Creating new provisioning profile for 'redacted' with name 'match Development redacted catalyst' for 'catalyst' platform
INFO  [19:38:00]: >> POST profiles: {"data":{"attributes":{"name":"match Development redacted catalyst","profileType":"MAC_CATALYST_APP_DEVELOPMENT","templateName":null,"teamId":"redacted"},"type":"profiles","relationships":{"bundleId":{"data":{"type":"bundleIds","id":"redacted"}},"certificates":{"data":[{"type":"certificates","id":"redacted"}]},"devices":{"data":[]}}}} 
DEBUG [19:38:00]: << POST profiles: 409 {
  "errors" : [ {
    "id" : "redacted",
    "status" : "409",
    "code" : "ENTITY_ERROR",
    "title" : "There is a problem with the request entity",
    "resultCode" : 35,
    "detail" : "There are no current MAC_OS devices on this team matching the provided device IDs."
  } ]
}

This seems to be the relevant part.

from fastlane.

lacostej avatar lacostej commented on April 28, 2024

@Schlabbi can you confirm that the devices array is indeed empty in the POST request body?

Can you try with fastlane 2.217 and see if the request has the same content? Thanks

from fastlane.

lacostej avatar lacostej commented on April 28, 2024

I am getting the same issue for iOS adhoc profiles with fastlane 2.216 when I don't have devices registered in my portal. Maybe the issue is that development profiles cannot be created without having device in the portal? I haven't tried doing it by hand.

from fastlane.

Schlabbi avatar Schlabbi commented on April 28, 2024

@Schlabbi can you confirm that the devices array is indeed empty in the POST request body?

Can you try with fastlane 2.217 and see if the request has the same content? Thanks

It works with 2.217. And yes, the devices array is indeed empty in the POST request. On 2.217 the array is not empty and it seems to work just fine.

from fastlane.

lacostej avatar lacostej commented on April 28, 2024

I suspect it is due to the integration of the Cache. @nekrich an idea?

@Schlabbi you can confirm if the cache is indeed the culprit by testing fastlane at the following commits

4eb636f before the cache
a3715d6 after

another thing that could be helpful would be to run your both 2.217 and 2.218 in verbose mode. and compare the queries. In particular I am interested in this code:

https://github.com/fastlane/fastlane/pull/21694/files#diff-a3f19787d89fdd5a42fc5c085d1273811c4ca0dc6f25623eb5907dcfdf43ba2fR113-R136

It should trigger a query of the existing devices, but then it filters them out. I wonder if that's what is causing the array to be empty afterwards.

from fastlane.

Simonas-Juska avatar Simonas-Juska commented on April 28, 2024

Ran into the same issue on 2.219, downgrading to 2.217 helped.

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.