Comments (2)
Does this work? I think $PIPESTATUS
is just on bash
, not sh
(the default)
- name: Test
run: |
set -o pipefail
xcodebuild ... | xcpretty
from xcpretty.
Sadly no, I have my xcodebuild
command in a Makefile if that makes a difference...
I doubt it works since apparently the build couldn't even find the correct SDK to run (it's been a bit since I've updated):
xcodebuild -project crazy-color-clash.xcodeproj -scheme 'crazy-color-clash (iOS)' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13 Pro,OS=15.5' test | xcpretty && exit
2022-12-12 17:31:08.349 xcodebuild Writing error result bundle to /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/ResultBundle_2022-12-12_1[7]-31-0008.xcresult
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:iOS Simulator, OS:15.5, name:iPhone 13 Pro }
The requested device could not be found because no available devices matched the request.
Available destinations for the "crazy-color-clash (iOS)" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:4D46E7BA-4485-4DF0-9E13-E20B5FA882E7, OS:16.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:C40E6AB6-B91D-4EBB-8533-01B823FC84D6, OS:16.0, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:EF33BB73-F3C6-4EFB-8156-38C2AB57D26B, OS:16.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:A06DFE39-F237-41C1-A2B3-387CCF9FBEBA, OS:16.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:4B5C8C20-A8BC-4B6E-ABB7-D271D258834C, OS:16.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:C83D554F-F03B-4527-BD66-A2E2E3E7AB4D, OS:16.0, name:iPhone 11 }
{ platform:iOS Simulator, id:5683BAE8-ED8A-45E6-8EB0-5CD7086F5F08, OS:16.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:62D2E07D-5BF0-4055-BBDA-B7615E885926, OS:16.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:637A8EB8-DFE7-40F7-8071-890F65202F4F, OS:16.0, name:iPhone 12 }
{ platform:iOS Simulator, id:7D5769D5-BA50-4747-9F1B-768F5C718C08, OS:16.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:95D3F9F8-35B8-486B-A702-39DF48780208, OS:16.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:EBC1E97A-8BA5-4D16-8F99-650925FB74A5, OS:16.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:F296500D-7ED9-4402-9AF7-6E024BD93D96, OS:16.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:205A5E8D-9D64-4896-BCEB-AC553E20E0A0, OS:16.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:D36D6F80-AC7C-4674-B980-F6ABB8E896CC, OS:16.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:BD4F3B05-B4C4-479E-81B9-47144F7F81C2, OS:16.0, name:iPhone 14 }
{ platform:iOS Simulator, id:978B9C8B-9E09-47CC-9C1F-92BF3D100F3E, OS:16.0, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:DF4792B4-1D7D-432A-BD4E-B8C44A9F12DC, OS:16.0, name:iPhone 14 Pro }
}
This failure to even run the test suite when xcpretty was used and set pipefail still resulted in a passing build without errors.
from xcpretty.
Related Issues (20)
- Attach screenshots to jUnit reports for consumption by CI pipelines HOT 2
- Could not find a valid gem 'xcpretty' (>= 0), here is why: Unable to download data from https://rubygems.org/ - timed out (https://rubygems.org/specs.4.8.gz) macOS Mojave 10.14 HOT 2
- Support GitHub Actions output HOT 2
- Doesn't display full test details
- xcpretty should exit with an error code if it sees BUILD FAILED HOT 2
- Could not find 'xcpretty' (~> 0.3.0) among 141 total gem(s)
- How to use xcpretty in a ruby file?
- Why we don't have a timestamp showing in junit xml report?
- PIPESTATUS
- unbuffered output
- hints for warnings are mismatched
- The cause of the error is not displayed correctly HOT 2
- compile_commands.json does not support clangd input, an error will occur. HOT 1
- Json files generated from xcpretty without the main project PCH result in many compilation errors through Oclint analysis
- Crashed tests are not being reported
- xcpretty generates empty html report
- BrowserStack AppAutomate- Convert XCUIT result bundle to Junit
- Latest source hits error if UI test has a failure HOT 1
- Github’s Dependabot and Code Scanning tools flagged security issues with xcpretty HOT 1
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 xcpretty.