Building with Xcode

This is probably a dumb question. Building with XCode, TestFoundation depends on SwiftXCTest, which depends on SwiftFoundation. What’s the right way to solve this (almost) recursive dependency? I’m using the Xcode 8.0 beta6.

I worked around by symlinking the uninstalled build products directory to /Library/Frameworks and adding that as a search path to both projects, but presumably there’s a better way. Sorry for the noise if this has been discussed before, haven’t built SwiftFoundation for a while.

···

--
www.lukehoward.com
soundcloud.com/lukehoward

Hi Luke,

In Xcode it should be possible to set the build order like this:

Foundation
XCTest
TestFoundation

which should resolve the ordering issue, right? I do this with a build scheme.

- Tony

···

On Aug 17, 2016, at 6:13 PM, Luke Howard via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

This is probably a dumb question. Building with XCode, TestFoundation depends on SwiftXCTest, which depends on SwiftFoundation. What’s the right way to solve this (almost) recursive dependency? I’m using the Xcode 8.0 beta6.

I worked around by symlinking the uninstalled build products directory to /Library/Frameworks and adding that as a search path to both projects, but presumably there’s a better way. Sorry for the noise if this has been discussed before, haven’t built SwiftFoundation for a while.

--
www.lukehoward.com <http://www.lukehoward.com/&gt;
soundcloud.com/lukehoward
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

I use the following to build Foundation and XCTest, then run the XCTest tests:
swift $ utils/build-script --preset corelibs-xctest
The XCTest.xcworkspace is also capable of building and testing. Open it, select the XCTest scheme, and build with ⌘B. You should also be able to build the Foundation scheme from there as well.
- Brian Gesiak

···

On Thu, Aug 18, 2016 at 4:14 PM -0400, "Tony Parker via swift-corelibs-dev" <swift-corelibs-dev@swift.org> wrote:

Hi Luke,
In Xcode it should be possible to set the build order like this:
FoundationXCTestTestFoundation
which should resolve the ordering issue, right? I do this with a build scheme.
- Tony
On Aug 17, 2016, at 6:13 PM, Luke Howard via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:
This is probably a dumb question. Building with XCode, TestFoundation depends on SwiftXCTest, which depends on SwiftFoundation. What’s the right way to solve this (almost) recursive dependency? I’m using the Xcode 8.0 beta6.
I worked around by symlinking the uninstalled build products directory to /Library/Frameworks and adding that as a search path to both projects, but presumably there’s a better way. Sorry for the noise if this has been discussed before, haven’t built SwiftFoundation for a while.

--www.lukehoward.com
soundcloud.com/lukehoward_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Are thank you, using the workspace fixed it. Sorry for the noise!

···

On 19 Aug 2016, at 7:27 AM, Brian Gesiak <modocache@gmail.com> wrote:

I use the following to build Foundation and XCTest, then run the XCTest tests:

swift $ utils/build-script --preset corelibs-xctest

The XCTest.xcworkspace is also capable of building and testing. Open it, select the XCTest scheme, and build with ⌘B. You should also be able to build the Foundation scheme from there as well.

- Brian Gesiak