From 7e01489c0a85f7644d523e42c84146f1db5aaad2 Mon Sep 17 00:00:00 2001 From: Viktor Benei Date: Fri, 6 Jan 2017 16:28:14 +0100 Subject: [PATCH] Include and print the xcodebuild output if scheme scan fails Fixing https://github.com/bitrise-tools/codesigndoc/issues/31 --- xcode/xcodecmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode/xcodecmd.go b/xcode/xcodecmd.go index 22f2d431..701a8bc1 100644 --- a/xcode/xcodecmd.go +++ b/xcode/xcodecmd.go @@ -208,7 +208,7 @@ func (xccmd CommandModel) RunXcodebuildCommand(xcodebuildActionArgs ...string) ( func (xccmd CommandModel) ScanSchemes() ([]string, error) { xcoutput, err := xccmd.RunXcodebuildCommand("-list") if err != nil { - return []string{}, err + return []string{}, fmt.Errorf("error: %s | xcodebuild output: %s", err, xcoutput) } parsedSchemes := parseSchemesFromXcodeOutput(xcoutput)