But it is failed when I try to run TestFoundation:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/fts.h:71:9: '(anonymous)' has different definitions in different modules; definition in module 'CoreFoundation' is here
swift-corelibs-foundation/CoreFoundation/Base.subproj/module.map:1:8: Redefinition of module 'CoreFoundation'
swift-corelibs-foundation/CoreFoundation/String.subproj/CFString.h:835:127: Reference to 'kCFStringEncodingASCII' is ambiguous
swiftc does not order include paths. This means that build artifact module.modulemap and the installed module.modulemap will conflict with each other. To work around the issue while developing Foundation, remove /usr/local/include/CoreFoundation/module.modulemap before building.
Hi @shohin,
I am also trying to contribute, but finding it really hard just to run the tests on macOS using Xcode 13.1.
I am getting the same error as you, but cleaning, building and running didn't work out for me.
Nor does the workaround since the conflicting modulemap is not under /usr/local/include/CoreFoundation, but under /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Modules - and renaming or moving this file causes a whole lot of other issues.
Might you have any other pointers for running the tests?
I'm seeing the same problem, where the test target will not build.
Running the 3-30-22 snapshot in Xcode 13.3 on an M1.
swift-project/swift-corelibs-foundation/CoreFoundation/Base.subproj/module.map:1:8: Redefinition of module 'CoreFoundation'
Could not build Objective-C module 'CoreGraphics'
Although SwiftFoundation also requires just-built CoreFoundation, Xcode builds SwiftFoundation successfully.
I wonder why only building TestFoundation fails.