Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5 - Could not build module

Tags:

xcode

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?

like image 756
bandejapaisa Avatar asked Oct 16 '13 10:10

bandejapaisa


Video Answer


2 Answers

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

example

like image 98
Muhammad Irfan Avatar answered Sep 23 '22 18:09

Muhammad Irfan


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

like image 44
wootage Avatar answered Sep 22 '22 18:09

wootage