-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to put build products in Xcode's DerivedData #302
Comments
I absolutely understand why you'd want to avoid writing to a It's not apparent to me that adding a new configuration parameter would be worthwhile given that it does the same thing as an existing environment variable, only with a different default, and would go against what users may already be familiar with |
I agree it was a bad idea suggesting a new configuration parameter. The proposal should have been: Would that make sense to you? |
Jazzy shells out to |
Maybe you could leave the issue open? See what others think. I am still strongly favoring jazzy using the DerivedData directory as default, as it would be difficult to manually set this (you can't know the exact directory name including the hash value unless you check the project file manually) |
I’m sure I’d have spent an hour digging for the output the first time I used Jazzy if it defaulted to DerivedData. |
@pcantrell I think you are mistaking 'output' in this context. I don't mean the documentation! I mean the build products of |
Ah, I see what you mean. Using DerviedData (or any tmp dir) does make sense. But why don't I get a |
I think you are seeing what @jpsim was mentioning (and I didn't know). Xcode defaults to When you do set a directory then jazzy will pick up on it. I am voting for jazzy using Xcode's default of |
@jpsim Would you mind leaving this open (re-open it), or is anything like discussed here completely out of the question? I don't think the request is unreasonable, or maybe someone will come up with a better solution. |
You're absolutely right that the request is reasonable, I just can't think of a solution that wouldn't be just as confusing to others. If anyone can make a PR that does this in a nice way, without shifting the confusion from one set of users to another, I'd be happy to consider it. |
Any updates on this? |
No progress to report. |
I came across this trying to figure out how to avoid creating the 'build' directory in my project every time I run Jazzy. I'm using defaults in my project. I tried passing a 'BUILD_DIR', 'CONFIGURATION_BUILD_DIR' and several other settings, but Jazzy still created the build dir and stored files in it. I also tried passing '-x "-derivedDataPath xxx"' with no luck either. All I want to do is to change from creating a directory called 'build' to a temporary directory I'll create manually. |
I think you want |
Hi. I tried using the SYMROOT option but it didn't work. I ended up figuring out how to use the
|
Hurray! Thanks for the tip @drekka. I fought with this a while back and ended up giving up. Now I will take another look. |
At the moment xcodebuild creates a
build/
dir for output in the projects directory.One could set the
CONFIGURATION_BUILD_DIR
environment variable but it would be great if jazzy would automatically use theDerivedData/
directory from the project file.The directory for the project could probably be obtained via:
xcodebuild -project MyProject.xcodeproj -showBuildSettings
Sure, one could just
.gitignore
thebuild/
directory (which everyone hopefully does anyway) but it is just one more directory uselessly cluttering the project.The text was updated successfully, but these errors were encountered: