Xcode cannot find auto-generated swift header moduleName-Swift.h in pch file in duplicate
2 answers
The problem is that the duplicate target has a different one moduleName
.
I had to add the C flag to the duplicate target and use it in Prefix.pch
. (Custom setting is not displayed when pch file is analyzed.)
#ifdef DEVLOPMENT_SERVER
#import "<duplicateModuleName>-Swift.h"
#else
#import "<moduleName>-Swift.h"
#endif
+1
source to share