You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some of our framework targets we have umbrella headers and we want to generate headers from it.
We don't specify productName for these targets as productName in ProjectDescription.Target is optional. As the documentation says, the name would be taken in case it is nil.
But, when headers are generated with .allHeaders(from: umbrella:) method, it doesn't map headers if the import is in the form import <ModuleName\Header.h>. It works for imports in the form of import "Header.h"
Digging into Tuist, we found that it is due to missing productName. And we fixed it by passing productName.
Is it expected to pass productName explicitly if we want to match modular headers from umbrella?
BilalSaifudeen
changed the title
Headers not mapped from Umbrella header when productName is not passed
Headers not mapped from Umbrella header when productName is nil
May 17, 2024
Yeah, it's possible this is a bug on our side. Thanks for digging into this.
Would you mind creating a reproducible sample to make the example more concrete? And if you feel like, you can create a draft PR with your proposed solution 🙂
What problem or need do you have?
For some of our framework targets we have umbrella headers and we want to generate headers from it.
We don't specify
productName
for these targets asproductName
inProjectDescription.Target
is optional. As the documentation says, thename
would be taken in case it isnil
.But, when headers are generated with
.allHeaders(from: umbrella:)
method, it doesn't map headers if the import is in the formimport <ModuleName\Header.h>
. It works for imports in the form ofimport "Header.h"
Digging into Tuist, we found that it is due to missing
productName
. And we fixed it by passingproductName
.Is it expected to pass
productName
explicitly if we want to match modular headers from umbrella?Or it is because it is missed to take
name
incase ofproductName
isnil
in Target+ManifestMapper.swiftPotential solution
Use
name
whenproductName
is nil for header generation.macOS version
14.4.1
Tuist version
4.9.0
Xcode version
15.2
The text was updated successfully, but these errors were encountered: