-
Notifications
You must be signed in to change notification settings - Fork 822
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
Scheme auto selects first build target as an executable to run. #589
Comments
We have exactly the same problem and it would be great to have a solution for this. |
|
@yonaskolb If it's okay, I could look into it and sending a PR |
@edulpn That would be nice, thanks! |
@brentleyjones I forked the repo and was already taking a look at the code. Any help or someone that can help me with how the spec parsing works and how it's forwarded to the Kit (also how default values are filled in)? |
@brentleyjones cool! I'll take a look |
Any updates on this? I'm currently renaming my targets such that the correct target shows up first alphabetically, and would love to not have to do this |
Master now has |
👋 First of all, thank you for this amazing library!
We are in the process of migrating our big ( ~30 targets ) project into
XcodeGen
🎉 and we are loving it!But we've stumbled upon an issue 🙀
In our old project, we had a scheme that would aggregate all unit tests, which when build - would build all the apps, and when tested - would run all the tests. We've managed to express it using
xcodegen
in the following way:However, we've noticed that
AllTests
target has run executable set ( this is the issue ), and we do not want that.We've dug into xcodegen a bit deeper and we've found this bit of logic that selects the first build target as
run
if it's executable.XcodeGen/Sources/XcodeGenKit/SchemeGenerator.swift
Line 117 in 846bae8
Questions!
Question 1: Is there a way to express in the configuration file that we do not want
AllTests
to be runnable?Like that 👇
Question 2: If it's impossible and we were to make a PR with the fix, what is/was the reason for
XcodeGen/Sources/XcodeGenKit/SchemeGenerator.swift
Line 117 in 846bae8
Could we introduce a flag on a scheme
runnable: true/false
that would drive this behaviour?Once again, thanks for all the great work!
The text was updated successfully, but these errors were encountered: