Re: Xcode won't compile sources

Alex Zavatone

Getting the header search paths right can be hell, once they are borked.

The sanest thing would be to revert to before you added the Swift files, make sure you can build and add the Swift files again.

The other thing you will want to do is output the build variables, see what Xcode thinks the header search paths are and verify that they are indeed present.

You can do this easily by clicking a check box to do this in the Build Phases, or add a phase that echos the build variables to the build process and before compile time.

Good luck. Sounds like fun times.

On Nov 19, 2017, at 8:28 PM, John Brownie <> wrote:

With a working application written in a mixture of Obj-C, Obj-C++ and straight C++, I added some Swift files. After a bit of mucking around due to some header path issues, I have come to the point where it won't build, because it doesn't compile the sources. As far as I can tell, the sources are listed in the Compile Sources phase, but it gets skipped, and the linker complains that it can't find the files.

This is Xcode 8.3.2, on macOS 10.12.6. I've restarted the computer, cleaned the Build Folder, and tried what can think of, but this has me stumped.

Any pointers?

John Brownie
SIL-PNG, Ukarumpa, Eastern Highlands, Papua New Guinea
Mussau-Emira language, New Ireland Province, Papua New Guinea

Join to automatically receive all group messages.