Can't find Pods.modulemap - looking in wrong directory
The solution that worked for me was:
First step:
(this step may no longer be needed in Xcode 9.x and newer)
- Open Xcode
- Click Window (Menu Bar)
- Click Projects
- Remove all projects (e.g. use backspace)
- Close Xcode
Second Step:
- Open a terminal app
cd ~/Library/Developer/Xcode/DerivedData
rm -rf Build/*
see below if you have a customized build locationrm -rf ModuleCache/*
- Close a terminal app
Third Step:
- Open Xcode
- Product > Clean
- Product > Run
Source: https://stackoverflow.com/a/30752152/756976
If you have defined a custom build location:
- Go with Finder or the Terminal to the location of the build files. The location for these files is defined in Xcode. To check where these files are:
- Open Xcode
- Go to
Settings -> Locations -> Derived Data
- Go to that location and delete the
Build
folder
Edit: June 9, 2016
It is also possible that this resolves your problem:
By default the clean of Xcode, does not delete everything, by going to Product
, pressing the ALT
-key, the Clean
-button will change to Clean Build Folder...
.
In my case I had made a few changes to my PodFile, got a similar error and just re-ran 'install':
% pod install
And I was back in business.