-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Xcodeproj] Add support for automatic project generation #1604
Conversation
This adds a `--watch` option to generate-xcodeproj subcommand. SwiftPM will do the necessary configuration and exec to the watchman-make tool. If the tool can't be found on the system, it'll emit help information to install it. <rdar://problem/32390792> Add support for automatically maintaining the generated Xcode project
@swift-ci please smoke test |
@@ -195,7 +195,7 @@ public final class Process: ObjectIdentifierProtocol { | |||
/// Returns true if the given program is present and executable in search path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to update to documentation to say a path is returned.
option: "--legacy-scheme-generator", kind: Bool.self, | ||
usage: "Use the legacy scheme generator"), | ||
generateXcodeParser.add( | ||
option: "--watch", kind: Bool.self, | ||
usage: "Watch the filesystem and autogenerate the Xcode project if needed"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth being more specific?
Watch for changes to the Package manifest to regenerate the Xcode project
name: "org.swift.diags.watchman-missing", | ||
description: { | ||
$0 <<< "this feature requires 'watchman' to work" | ||
$0 <<< "\n\n installation instructions for 'watchman' are available at https://facebook.github.io/watchman/docs/install.html#buildinstall" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the double-newlines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks a bit "pretty".
|
||
set -eu | ||
|
||
swift package generate-xcodeproj |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also want a test that makes such that we pass --xcconfig-overrides
when necessary?
This adds a
--watch
option to generate-xcodeproj subcommand. SwiftPMwill do the necessary configuration and exec to the watchman-make tool.
If the tool can't be found on the system, it'll emit help information to
install it.
rdar://problem/32390792 Add support for automatically maintaining the generated Xcode project