-
-
Notifications
You must be signed in to change notification settings - Fork 912
Cannot swift build
Quick on OS X
#492
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
Comments
Also, I hadn't realized that |
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 |
Awesome, thanks for all the info! I'm hoping to get more familiar with swiftpm soon. In the meantime, glad to see our swiftpm integration in such capable hands. 💯 |
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! |
@briancroom: How is this coming? |
@briancroom mentioned in an email to Quick contributors a while back that he won't be able to contribute to the project for the foreseeable future. 💡 |
Ah okay! I wasn't around for that. My bad. I'll see what I can do with these later down the road. |
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. I'm not sure about the state of multiple test suites within a single SwiftPM package. Perhaps @aciidb0mb3r @ddunbar or @czechboy0 would have something to share on that point? |
multiple test modules with objc and swift should be ok as long as there is no c language sources mixed with swift sources. |
Resolved by #687. |
This site indicates that Quick does not build using the swift-package-manager on OS X. Using
DEVELOPMENT-SNAPSHOT-2016-02-08-a
, building Quick usingswift build -v -v
results in the following: https://gist.github.com/modocache/84a3cfd512d064de4ae0In a nutshell, the error is:
I'm not quite sure what's going on, but @briancroom might! 😉 My open questions:
swift build
for Quick building Nimble as well? Shouldn't that only happen forswift test
? (Forgive my ignorance here! Still learning about SwiftPM).swift build
able to link XCTest?The text was updated successfully, but these errors were encountered: