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

Make xctool play nice with Find Implicit Dependencies #98

Merged
merged 4 commits into from
Jul 12, 2013

Conversation

fpotter
Copy link
Contributor

@fpotter fpotter commented Jul 10, 2013

When xctool builds tests, it generates a throwaway workspace and scheme and then calls xcodebuild on that workspace/scheme.

There were 2 problems that prevented implicit dependencies from working --

  1. The generated scheme needed to set buildImplicitDependencies = "YES" if the original scheme said to use implicit dependencies.
  2. The generated workspace needed to include all projects in the original workspace given to xctool. If it didn't, xcodebuild wouldn't have enough information to calculate dependencies. (Previously, we only included those projects which were mentioned explicitly in the original scheme given to xctool).

This fixes #62 and #16, and xctool will finally play nice with CocoaPods out of the box.

…ethods.

This `populate` method is getting pretty big - let's refactor it a bit.
…methods.

This populate function was getting too long.
…tings.

If the original scheme enabled 'parallelizeBuildables' or
'buildImplicitDependencies', then the generated scheme should use them,
too.
…s workspace

Previously, we only added projects for the buildables and testables to
the generated workspace.  This was fine, but it doesn't give Xcode's
Find Implicit Dependencies feature enough information to work from.
Let's make the generated workspace include all the projects.

Test Plan:
Tests pass.  Verified that find implicit dependencies now works with a
CocoaPods project.
@yas375
Copy link
Contributor

yas375 commented Jul 10, 2013

I've just tried this branch on my dummy test project which was created for #16 and it works with implicit dependencies!

The only change I was required to do is to set ONLY_ACTIVE_ARCH=NO for both FooBar and FooBarTests targets.

2013-07-10_1151
It was YES by default for Debug configuration.

Thank you @fpotter for your job! 👍

@fpotter
Copy link
Contributor Author

fpotter commented Jul 10, 2013

@yas375 Thanks for verifying!

@yas375
Copy link
Contributor

yas375 commented Jul 10, 2013

@fpotter sure! :)

fpotter added a commit that referenced this pull request Jul 12, 2013
Make xctool play nice with Find Implicit Dependencies
@fpotter fpotter merged commit 3677d7a into master Jul 12, 2013
@fpotter fpotter deleted the fpotter/fix-implicit-dependencies branch July 12, 2013 19:40
@alloy
Copy link

alloy commented Jul 13, 2013

Awesome!

tomquist pushed a commit to tomquist/xctool that referenced this pull request Aug 23, 2013
…cit-dependencies

Make xctool play nice with Find Implicit Dependencies
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.

Enable Support for Implicit Dependencies
3 participants