Error in tuist generate: Framework Header File Being Added to Non-Existent Build Phase

Question or problem

Hello! I’m encountering an error when running tuist generate for my project. The error is related to a framework in my application, specifically a header file that Tuist is trying to add to a build phase that hasn’t been added to the project. Here’s the error output :

✖ Error 
Trying to add a file at path /Users/username/project/MyApp/Library/SomeLibrary/SomeFramework.framework/Headers/SomeFramework/SomeHeader.h to a build phase that hasn't been added to the project.

Sorry this didn’t work. Here’s what to try next: 
 ▸ If the error is actionable, address it
 ▸ If the error is not actionable, let's discuss it in the Troubleshooting & how to
 ▸ If you are very certain it's a bug, file an issue
 ▸ Check out the logs at /Users/username/.local/state/tuist/logs/LOG_ID.log

Expectation

I expected tuist generate to successfully create the Xcode workspace and project (MyApp.xcworkspace and MyApp.xcodeproj) without errors. Specifically, I expected Tuist to correctly integrate the framework (SomeFramework.framework) and its headers into the project structure, allowing me to build and run the project in Xcode.

Context

  • Tuist version: 4.50.2
    -Xcode version: 16.2

Hey @batudmrc :wave:

Unfortunately, there’s not a lot of insights we can provide you with without knowing more about your setup. Have you tried checking out our sample app that showcases how to integrate a target with headers? tuist/fixtures/ios_app_with_headers at main · tuist/tuist · GitHub

Thank you so much, that fixed my problem :slight_smile: