# Codesigndoc - better debug/error logging

**URL:** <https://discuss.bitrise.io/t/codesigndoc-better-debug-error-logging/138>\
**Category:** Changelog\
**Created:** [January 6, 2017, 3:06pm UTC](https://discuss.bitrise.io/t/codesigndoc-better-debug-error-logging/138 "2017-01-06T15:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 6, 2017, 3:06pm UTC](https://discuss.bitrise.io/t/codesigndoc-better-debug-error-logging/138/1 "2017-01-06T15:06:07Z")

</div>

[codesigndoc](https://github.com/bitrise-tools/codesigndoc) now prints the Xcode output if `xcodebuild -list` (scheme listing) fails

> <https://github.com/bitrise-io/codesigndoc/issues/31>
>
> =\> Running codesigndoc scan ...
> 
> INFO\[19:35:18\] Export output dir already exis…ts at path: /Users/REDACTED/Projects/REDACTED/REDACTED/codesigndoc\_exports
> 
> Please drag-and-drop your Xcode Project (.xcodeproj)
> 
> or Workspace (.xcworkspace) file, the one you usually open in Xcode,
> 
> then hit Enter.
> 
> (Note: if you have a Workspace file you should most likely use that) : /Users/REDACTED/Projects/REDACTED/REDACTED/REDACTED.xcworkspace
> 
> INFO\[19:36:04\] Scanning Schemes ...
> 
> INFO\[19:36:04\] $ xcodebuild "-workspace" "/Users/REDACTED/Projects/REDACTED/REDACTED/REDACTED.xcworkspace" "-list"
> 
> Running and analyzing log ...
> 
> \------------------------------
> 
> First of all please make sure that you can Archive your app from Xcode.
> 
> codesigndoc only works if you can archive your app from Xcode.
> 
> If you can, and you get a valid IPA file if you export from Xcode,
> 
> please create an issue on GitHub at: https://github.com/bitrise-tools/codesigndoc/issues
> 
> with as many details & logs as you can share!
> 
> \------------------------------
> 
> Error: Failed to scan Schemes: Failed to run xcodebuild command, error: exit status 1

Fix PR: [Include and print the xcodebuild output if scheme scan fails by viktorbenei · Pull Request #34 · bitrise-io/codesigndoc · GitHub](https://github.com/bitrise-tools/codesigndoc/pull/34)

Additionally it now prints the Xcode version before running the first `xcodebuild` command

> <https://github.com/bitrise-io/codesigndoc/pull/32>
>
> Right before actually starting the scan (before the first xcodebuild call) print… the version of Xcode, for debug / troubleshooting purposes

Deployed in [v0.9.18](https://github.com/bitrise-tools/codesigndoc/releases/tag/0.9.18)
