Hm. Originally, all the troublesome files had a variable in their path, e.g. $(MY_LIBRARY_LOCATION)/src/file.cpp
.
Originally MY_LIBRARY_LOCATION
was an absolute path ( /Users/me/my_libs'). I first tried changing it to a relative path (
../../../my_libs`). This didn't help.
Finally, I opened up the XCode project file (myproj.xcodeproj/project.pbxproject
) in a text editor and removed all references to the variable. Instead I hard-coded the absolute paths to all the files (e.g. /Users/me/my_libs/src/...
). This solved the problem.
It's neither elegant nor portable, but, hey, it works.