Skip to content
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

can’t run TestFoundation target in swift-corelibs-foundation repository #4608

Open
kaijiemu opened this issue Jun 24, 2022 · 3 comments
Open

Comments

@kaijiemu
Copy link

I am starting contributing Swift Foundation framework. I am using swift-corelibs-foundation repository by following this guide: swift-corelibs-foundation/GettingStarted.md at main · apple/swift-corelibs-foundation · GitHub 6

But it is failed when I try to run TestFoundation:
image
image

What can I do about it?Thanks

@YOCKOW
Copy link
Collaborator

YOCKOW commented Jul 1, 2022

Unfortunately, there are bugs to build TestFoundation on macOS.
Not only SR-12177, but also...

also cannot be compiled with the default toolchain, since String.swift uses the @_spi feature to call String(_cocoaString:) and compiling with the default toolchain does not expose the required API.

https://forums.swift.org/t/ci-not-testing-foundation-overlay/51595.

@YOCKOW
Copy link
Collaborator

YOCKOW commented Jul 8, 2022

Ah, it's worse than I expected.
The reason why kCF*s become ambiguous is because Xcode is trying to load modulemaps of CoreFoundation twice: the one in Xcode's SDK and the repo's one.
It seems that this problem occurs no matter which toolchain is used.

@Fidetro
Copy link
Contributor

Fidetro commented Jul 30, 2022

I have successfully compiled SwiftFoundation, and then encountered the same error.
I have tried the methods mentioned here https://forums.swift.org/t/cant-run-testfoundation-target-in-swift-corelibs-foundation-repository/50360/7, but still can't solve

Does this problem still exist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants