swift build Quick on OS X
This site indicates that Quick does not build using the swift-package-manager on OS X. Using
In a nutshell, the error is:
I'm not quite sure what's going on, but @briancroom might!
The text was updated successfully, but these errors were encountered:
Thanks for bringing this up @modocache! I was actually looking at this exact thing just last night in hopes of making additional progress towards complete SwiftPM support. As to your questions:
This is because Quick and Nimble both currently target the version of SwiftPM included in the
The XCTest framework on Darwin isn't a proper SDK framework, and is located at a different location within the Platform directory structure than frameworks like Foundation. This particular issue can be worked around by adding search paths as follows:
swift build \ -Xcc -F -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks \ -Xlinker -F -Xlinker /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks
...although there are a couple of other issues beyond that that still prevent the build from succeeding.
I've started work on branches (just here for now) which depend on building SwiftPM from master to gain access to
Just a quick update on this:
Nimble master now fully supports
I have begun hacking on a branch for Quick, but with much less progress. On the OS X side, I believe we are blocked until this proposal gets implemented within SwiftPM, because hooking into Xcode's XCTest like
Another challenge to address for Quick will be the fact that it has two test suites (
I"m looking forward to making more progress here soon. Stay tuned!
I've got a few more days where I'm happy to share knowledge here
To be honest, I didn't take the time to work much further on this since my previous comment, however I do know that SwiftPM does now support building Objective-C modules, so it should be feasible to arrange the code such that SwiftPM builds a framework including the code required to integrate with Apple XCTest.