Skip to content
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 dummy target to provide autocomplete in the manifest … #1266

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

aciidgh
Copy link
Member

@aciidgh aciidgh commented Jul 12, 2017

…file

@aciidgh aciidgh requested a review from ddunbar July 12, 2017 17:39
@aciidgh aciidgh force-pushed the auto-complete-spx branch 2 times, most recently from 3cae50a to 4922873 Compare July 12, 2017 18:27
Copy link
Member

@ddunbar ddunbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

try Process.checkNonZeroExit(
args: "xcodebuild", "-project", project.asString, "-alltargets", environment: env)
args: "xcodebuild", "-project", project.asString, "-scheme", schemeName, "-derivedDataPath", buildDir, environment: env)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a test that checks that the dummy target builds, by passing -target? That way we can validate it is configured properly.

Also, should we put all manifests in it, as opposed to just the one from the primary package?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The target doesn't build, it fails with linking errors. Only autocompletion works.

I wouldn't want to put dependency manifests because we don't want people editing them without the edit mode.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put in all ones that are in edit mode then?

As for the linking think, we might be able to do a hack like set LD and/or LDPLUSPLUS to be /usr/bin/true for that one target.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya I think putting references of the edited manifests will be fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up adding manifest reference for all dependencies because it will be non trivial to compute edited dependencies outside of Workspace. I think it should be fine to add manifest references of non-edited packages as we add their source files anyway.

@aciidgh aciidgh force-pushed the auto-complete-spx branch 2 times, most recently from b7009c7 to a3817f0 Compare July 13, 2017 07:27
@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

1 similar comment
@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

1 similar comment
@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

@aciidgh aciidgh force-pushed the auto-complete-spx branch 2 times, most recently from 182399e to 094432f Compare July 13, 2017 08:55
@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test OS X

@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

…file

-- <rdar://problem/33284557> Create dummy target in generated Xcode project to provide autocompletion for the manifest file
@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

1 similar comment
@aciidgh
Copy link
Member Author

aciidgh commented Jul 13, 2017

@swift-ci please smoke test

@aciidgh aciidgh merged commit ca328d0 into apple:master Jul 13, 2017
@aciidgh aciidgh deleted the auto-complete-spx branch July 13, 2017 09:59
@Nelyus
Copy link

Nelyus commented Jul 13, 2017

+1: Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants