I am receiving "file not found" errors when compiling in Xcode. My paths are specified relative to $SRCROOT and seem to be correctly identified. What's the problem?
Asked
Active
Viewed 5,436 times
2 Answers
16
The problem was that my $SRCROOT path included spaces. All you need to do is quote SRCROOT like this: "$SRCROOT" and the problem is fixed.

snibbe
- 2,715
- 1
- 27
- 34
2
In my case, the reason was another. Try to check your path to headers. For example, I had a path in Headers Search Paths:
"$(SRCROOT)/Frameworks/KIF"
But my KIF folder was actually here:
"$(SRCROOT)/../Frameworks/KIF"
or by other words, one level up to my source root. That is why, when I changed SRCROOT to hardcoded path, my headers were found.

Denis Kutlubaev
- 15,320
- 6
- 84
- 70