Reputation: 2738
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?
Upvotes: 6
Views: 5778
Reputation: 16174
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.
Upvotes: 2
Reputation: 2738
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.
Upvotes: 16