Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Generate xcodebuild.log for more details #91

Merged
merged 1 commit into from
Sep 23, 2015
Merged

Generate xcodebuild.log for more details #91

merged 1 commit into from
Sep 23, 2015

Conversation

xfreebird
Copy link
Contributor

Create xcodebuild.log file containing detailed xcodebuild output.
This is very useful for debugging.
The implementation is simple, it creates xcodebuild-SchemeName.log file.

@KrauseFx
Copy link
Contributor

Wow, I love this, I didn't know this is possible! 👍

  • So this will store the original xcodebuild output in the file, not the xcpretty one, right?
  • We might not want to store the file in the current directory. Maybe a temporary path like ~/Library/Logs, so you could immediately find the file using the Console app

Thanks for the pull request, this is great! 🚀

@xfreebird
Copy link
Contributor Author

Glad to hear that 👍

So this will store the original xcodebuild output in the file, not the xcpretty one, right?

Yes, only the xcodebuild output.

We might not want to store the file in the current directory. Maybe a temporary path like ~/Library/Logs, so you could immediately find the file using the Console app

From the CI (e.g. Jenkins) perspective it is easier to investigate the xcodebuild.log directly from the workspace. Also there might be file name collisions when multiple builds are started for the same project.

What do you think ?

@xfreebird
Copy link
Contributor Author

Also in this case xcodebuild.log could be used for OCLint.

@KrauseFx
Copy link
Contributor

Sorry, we can't just put this into the working directory, but instead store it somewhere else. I'll take over this pull request, thanks again 👍

KrauseFx added a commit that referenced this pull request Sep 23, 2015
Generate xcodebuild.log for more details
@KrauseFx KrauseFx merged commit 91b2991 into fastlane-old:master Sep 23, 2015
@xfreebird
Copy link
Contributor Author

You are too fast ! 😀
I was blocked by #94 because I wasn't getting correct path values in some cases. In this case we'll need an additional input option, such as build log path. It will be useful for some people running jobs on remote build machines where multiple projects are being built at the same time.
The way it is now, building two projects with the same app and scheme name at the same time will overwrite the build log, we'll need to avoid path collisions too if used as it is.

I'll come later with a PR.

@xfreebird xfreebird deleted the feature/xcodebuildlogs branch September 23, 2015 04:25
@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants