Reputation: 26972
I've turned on the flag in my project 'Enable Modules (C and ObjectiveC)' and i get 1000+ errors:
'Could not build module 'Security' 'Could not build module 'Foundation'
etc. etc... for every framework included
Has anyone else experienced this problem?
Upvotes: 18
Views: 21398
Reputation: 5936
Had an Issue with Parse Framework doing this this on a project.
In: Apple LLVM 8.0 - Language Modules
I changed: Allow Non-modular includes in Framework Modules from No to YES and compiles fine
Upvotes: 0
Reputation: 17
Just for reference, I had this happen to me unexpectedly when I moved my project into another folder. Changing the location made xCode go bonkers looking for the files. As soon as I put the project folder back in its original location, all of the errors disappeared.
Upvotes: 0
Reputation: 21
If it is useful, none solution proposed here solved my problem "Could not find module Darwin" in Xcode 6.2. Finally I have decided to create a new project and copy my source files, but command line tools option disappear when I tried to create a new project. So, I have reinstalled Command Line Tools from Terminal with the next command "xcode-select --install". All was solved!
Upvotes: -1
Reputation: 755
I had same problem with Social.h. Fixed this issue by following this link..
EDIT: In case the link breaks in the future, I'm adding the solution quoted from the page
The real problem here is at Build settings in the session: Apple
LLVM 5.0 - language - Modules, we should set Enable Modules (C and
objective c) as NO
Upvotes: 15
Reputation: 936
Just had the same problem.Here is what worked for me: go to Build settings -> Architecture -> Architectures and change the option to standard architecture ( armv7 , armv7s ).
Mine somehow was changed ( including 64 - bit )
Hope it helps
Upvotes: 1