user3440639
user3440639

Reputation: 185

Could not build module Foundation

I am using a sub-project which has a C++ library that it uses and this project has a SDK that I am trying to use.

I have several projects that I am trying to build, each of which use this SDK. I have some targets that compile fine but then I have some that tell me Could not build module: Foundation.

As I said this happens in some but not all of my targets, I was able to get some to work by clearing the linker flags but this does not fix it on all targets. So it seems weird to me that some targets work fine while others do not.

I have tried:

Removing linker flags

Reinstalling Xcode

Messing with header search paths

Any suggestions? I've been stuck on this for a while.

Upvotes: 2

Views: 5419

Answers (1)

Ravi Prakash
Ravi Prakash

Reputation: 1116

As don't have more information in question here. Try making

Allow Non-modular Includes in Framework Modules

to Yes in your Build Settings.

Upvotes: 3

Related Questions