Giter VIP home page Giter VIP logo

Comments (5)

viktorbenei avatar viktorbenei commented on June 15, 2024

The clean option is only applied on the first build, and not on the second one. The second one should be a minimal build, as that can use the first one's intermediate files.

Do you have data about how much it would improve the performance if we'd skip the first build? In our tests the difference wasn't really significant. The double build solved an issue with a previous xcode version, as well as it reduces the log output, as the first build's output is only presented if it fails.

from steps-xcode-test.

andrewtheis avatar andrewtheis commented on June 15, 2024

Most projects use a different Build Config in their scheme for build than they do for test. So the first xcodebuild intermediate files aren't even used because it has to compile all over again. Right now Bitrise hangs on the first build step for ~400 seconds (with no output), than spends another ~400 seconds to make the build again for testing.

Would it be possible to just do it all in one?

xcodebuild "-workspace" "..." "-scheme" "..." "clean" "build" "test" "-destination" "platform=iOS Simulator,name=iPhone 6s,OS=latest"

from steps-xcode-test.

viktorbenei avatar viktorbenei commented on June 15, 2024

that's a good call, we'll add an option to use the mode you want to, e.g. if the double build solves an Xcode issue.

We'll most likely set the default to single build, to help speed up things.

Thank you for the request!

from steps-xcode-test.

godrei avatar godrei commented on June 15, 2024

New version 1.13.6 got a new input single_build.

If single_build: true, then step calls only xcodebuild OPTIONS build test OPTIONS, otherwise step runs xcodebuild OPTIONS build OPTIONS befor the test.

from steps-xcode-test.

viktorbenei avatar viktorbenei commented on June 15, 2024

1.13.6 is published into the StepLib - thanks again @andrewtheis for the suggestion!

from steps-xcode-test.

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.