# Failed to build module: the textual interface may be broken by project issues or a compiler bug

**URL:** <https://forums.swift.org/t/failed-to-build-module-the-textual-interface-may-be-broken-by-project-issues-or-a-compiler-bug/61036>\
**Category:** Using Swift\
**Tags:** xcode, build, module, xcframework\
**Created:** [October 26, 2022, 5:36pm UTC](https://forums.swift.org/t/failed-to-build-module-the-textual-interface-may-be-broken-by-project-issues-or-a-compiler-bug/61036 "2022-10-26T17:36:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebastianMonteroC](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sebastianmonteroc/32/23395_2.png) [@SebastianMonteroC](https://forums.swift.org/u/SebastianMonteroC)\
**Post date:** [October 26, 2022, 5:36pm UTC](https://forums.swift.org/t/failed-to-build-module-the-textual-interface-may-be-broken-by-project-issues-or-a-compiler-bug/61036/1 "2022-10-26T17:36:28Z")

</div>

Hello everyone!

I have a C Code project that is being wrapped by Swift Code and I'm building the source into an XCFramework that supports all Apple platforms and architectures (with the help of CMake and Conan). I'm having trouble getting this XCFramework to work properly though, since I'm getting this error when importing the module to a dummy Xcode project:

```swift
Failed to build module 'ModuleName' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug

```

There is no "error above", only this one. I tried using @\_implementationOnly tags with the C module imports in the Swift Source code as that has helped before with similar errors but nothing has worked yet.

I truly appreciate any help/advice/guidance!

---

<div class="post-metadata">

**Author:** ![shawky](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/shawky/32/44200_2.png) [@shawky](https://forums.swift.org/u/shawky)\
**Post date:** [December 13, 2022, 11:17am UTC](https://forums.swift.org/t/failed-to-build-module-the-textual-interface-may-be-broken-by-project-issues-or-a-compiler-bug/61036/2 "2022-12-13T11:17:52Z")

</div>

Hello,

Did you find the solution to that problem?

---

<div class="post-metadata">

**Author:** ![HieeusNguyen](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hieeusnguyen/32/38157_2.png) [@HieeusNguyen](https://forums.swift.org/u/HieeusNguyen)\
**Post date:** [November 25, 2024, 3:05pm UTC](https://forums.swift.org/t/failed-to-build-module-the-textual-interface-may-be-broken-by-project-issues-or-a-compiler-bug/61036/3 "2024-11-25T15:05:59Z")

</div>

Did you find the solution to that problem?
