Reputation: 5067
Encountering this issue in Xcode, solutions I've tried:
~/Library/Developer
I'm at a loss at this point can someone point me to the right direction here? I've already spent an entire day on this. Other projects build fine though.
Upvotes: 5
Views: 7454
Reputation: 34431
Error: redefinition of module
I got redefinition of module
when was working on own framework and added a first .m
file (as a part of Cocoa Touch Class) and created module.modulemap
file. Please note that this error is shown even if you do not add a path into Module Map File
To solve this issue I just renamed a module.modulemap
to ModuleName.modulemap
Upvotes: 2
Reputation: 385
Try removing Command-line tools and build your project
sudo rm -rf /Library/Developer/CommandLineTools
To Reinstall:
xcode-select --install
Upvotes: -5
Reputation: 5067
I SOLVED IT!
XCode was adding the following Header Search Paths
:
/usr/include/libxml2 recursive
/usr/include/libxml2 non-recursive
But libxml2
is already included in the SDK
from XCode.app
via $(inherited)
search path so everything was conflicting.
Removed those two /usr/include/libxml2
paths at the top of my folder hierarchy fixed it!
Thank the XCode gods.
Upvotes: 5