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" <firstname.lastname@example.org> wrote:
In Xcode it should be possible to set the build order like this:
which should resolve the ordering issue, right? I do this with a build scheme.
On Aug 17, 2016, at 6:13 PM, Luke Howard via swift-corelibs-dev <email@example.com> 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.
swift-corelibs-dev mailing list