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
[SR-276] Starter bug: Run swift-corelibs-foundation tests against Darwin Foundation #4202
Comments
What's the status on this? How is this task linked to moving swift-corelibs-foundation to swiftpm? |
Comment by Ian Ynda-Hummel (JIRA) I was literally coming back to this today. I don't immediately see a connection to spm. |
The connection I see is that it might be easier to support one single way to run unit tests on all platforms with SwiftPM. Different thought: the fact that we still have to `bridge()` standard library value types means that quite a few tests that use that temporary method will not compile under Darwin Foundation. Perhaps we could provide a dummy bridge function for that platform. |
Comment by Ian Ynda-Hummel (JIRA) Yeah. I remember having to create an extension that defines them manually. That said, the problem I'm actually running into right now is that I am having trouble getting a new target to not pick up CoreFoundation headers from multiple places. It seems that linking OS X's Foundation is just conflicting a bunch with heads being pulled in from... somewhere for Swift Foundation's version of CF. |
Comment by Ian Ynda-Hummel (JIRA) I feel like I'm going a little crazy. It seems like the Foundation that ships with the current Xcode beta is incompatible with the current swift toolchain. I've tried the current preview in the Xcode beta and a couple of the nightlies from swiftnightly.com. It seems to stem from the use of |
Comment by Ian Ynda-Hummel (JIRA) Using the newest official snapshot it still fails to build the CoreFoundation module:
|
There is now a |
Additional Detail from JIRA
md5: c39b051e616bf6be9dc8b35f65abc46e
Issue Description:
One of our important goals for the Swift Core Libraries is cross-platform compatibility.
A great way to verify that the compatibility is actually there is to run the great test suite that everyone has been contributing to, but against the OS X version of Foundation instead.
Any differences in behavior between Swift Foundation and Darwin Foundation can be considered a bug, to resolve in some way.
This means we need to add a target to the Xcode project which uses the Swift XCTest but system Foundation.
The text was updated successfully, but these errors were encountered: