Did a search for this question and could not find much help.
"could not build module 'Foundation'"
#import < Foundation/Foundation.h>
Not certain what is the problem. Thank you for any advice.
Did a search for this question and could not find much help.
"could not build module 'Foundation'"
#import < Foundation/Foundation.h>
Not certain what is the problem. Thank you for any advice.
you can try this
in your .pch file
write like this
The suggested fix to set
Enable Modules (C and Objective-C)
did not solve this issue for me.What did is renaming my
someFile.c
files tosomeFile.m
. Even though those files contain just C functions (that do use Foundation types), naming them.c
produces this error.I have resolved by change Build System to Legacy Build System
I was able to solve this using the solution provided in this Apple Support Communities thread:
Cmd+Option+Shift+k then Cmd+Option+k solved above error for me.
Just rename your Objective-C++ file from
*.c
to*.mm
.The errors are gone that way, it handles all the imports just fine this way.