Comments (5)
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.
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.
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.
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.
1.13.6 is published into the StepLib - thanks again @andrewtheis for the suggestion!
from steps-xcode-test.
Related Issues (20)
- Missing "watchOS Simulator" platform HOT 2
- Xcode 13 test repetition support HOT 1
- Error compiling framework HOT 10
- Code coverage is broken on recent Xcodes HOT 1
- Step fails after successfully retried tests in Xcode 13 HOT 6
- [Feature] Upgrade Issue Templates to use GitHub Issue Forms HOT 1
- Sometimes fails with an error: Failed to establish communication with the test runner HOT 3
- Bitrise reports test suite as passing, despite failures, when using `retry_on_failure` HOT 10
- Can't run SPM Targets without a project HOT 4
- No output for parallel testing HOT 2
- Use trainer to make test results more reliable HOT 6
- Tests do not run due to com.apple.dt.IDEWatchSupportCore HOT 2
- Github Status reported Failure even though tests passed HOT 11
- Xcode 14.1: Process config: simulator UDID lookup failed: runtime OS (16.0) on platform (iOS) is unavailable HOT 5
- Unable to run locally HOT 6
- Failed on 'Clone 1 of iPhone 8 Plus HOT 2
- Sometimes fails with – Error: Timed out trying to boot simulator after waiting 60.00s HOT 6
- BITRISE_XCRESULT_PATH environment variable is not set HOT 2
- Xcode 14.3 run in rosetta simulator. Arch in destination gets ignored. HOT 18
- This step is 10x slower than using xcodebuild - Performance Issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steps-xcode-test.