Coder Social home page Coder Social logo

Comments (1)

leefaus avatar leefaus commented on April 24, 2024

I had this same issue. Here is what my code looked like:

  lane :build do
    # add actions here: https://docs.fastlane.tools/actions
    # app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
    api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
    setup_ci
    match(type: 'appstore', readonly: is_ci)
    # sync_code_signing(type: "Appstore")

    build_app(
      scheme: "File Editor",
      clean: true,
      output_directory: 'fastlane_builds/'
    )

    increment_build_number(
      build_number: latest_testflight_build_number + 1,
      xcodeproj: "File\ Editor.xcodeproj"
    )
    
    upload_to_testflight
  end

When I moved the increment_build_number block up above the build, everything was ok.

  lane :build do
    # add actions here: https://docs.fastlane.tools/actions
    # app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
    api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
    setup_ci
    match(type: 'appstore', readonly: is_ci)
    # sync_code_signing(type: "appstore")
    increment_build_number(
      build_number: latest_testflight_build_number + 1,
      xcodeproj: "File\ Editor.xcodeproj"
    )

    build_app(
      scheme: "File Editor",
      clean: true,
      output_directory: 'fastlane_builds/'
    )
    
    upload_to_testflight
  end

Here is a copy of my project if you want to see how I did this with GitLab CI: https://gitlab.com/honeydue/mobile-development/file-editor and you can see in this pipeline that the number is incremented and uploaded: https://gitlab.com/honeydue/mobile-development/file-editor/-/jobs/3590869185

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.