# Swift 5.4 on Windows: error: missing required modules: 'CFXMLInterface', 'CoreFoundation'

**URL:** <https://forums.swift.org/t/swift-5-4-on-windows-error-missing-required-modules-cfxmlinterface-corefoundation/48575>\
**Category:** Standard Library\
**Tags:** windows\
**Created:** [May 19, 2021, 1:34am UTC](https://forums.swift.org/t/swift-5-4-on-windows-error-missing-required-modules-cfxmlinterface-corefoundation/48575 "2021-05-19T01:34:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [May 19, 2021, 4:44am UTC](https://forums.swift.org/t/swift-5-4-on-windows-error-missing-required-modules-cfxmlinterface-corefoundation/48575/2 "2021-05-19T04:44:53Z")

</div>

[[SR-14578] Unable to import FoundationXML on Windows - Swift](https://bugs.swift.org/browse/SR-14578)

It's a known issue, that has been fixed for a while, but the change accidentally didn't make it into 5.4. This should be fixed in the 5.5 snapshots, and I hope that we may be able to pull in the fix in a dot-release for 5.4.

As to why the problem exists: CoreFoundation is not meant to be public, and the Windows port has generally been far more aggressive about preventing leakage of internal interfaces and encouraging cross-compilation.

---

_[View the full topic](https://forums.swift.org/t/swift-5-4-on-windows-error-missing-required-modules-cfxmlinterface-corefoundation/48575)._
