Xcode claims it can't find source files which exist
Xcode claims it can't find source files which exist
- Subject: Xcode claims it can't find source files which exist
- From: Nicholas Rinard <email@hidden>
- Date: Fri, 11 Nov 2005 18:20:55 -0500
I posted this problem to java-dev but no one could help there.
I have a project which has always compiled fine. Yesterday I added
two new libraries to the project (two Xerces libraries) and also
added them to the compilation target in the Link Binary With
Libraries pane. Thereafter, Xcode claims it can't find whichever two
source files come last in the Compile Sources pane.
You read that right. If I add a library to Link Binary With
Libraries, Xcode stops recognizing a source file in Compile Sources.
The error is "cannot find symbol", as you would expect.
If I only add one library, Xcode claims it can't find one source
file; if I add two libraries, it can't find two source files. In both
cases, the source file which can't be found is whichever one comes
last in Compile Sources. If I rearrange Compile Sources to have a
different file come last, that file becomes the one Xcode complains
about.
The problem is symmetrical. If I add a library, and Xcode chokes upon
compile, then I can remove a library and the problem goes away.
It isn't library specific. If I add a Xerces library, but remove
another library, that's just fine. Thereupon adding another library
brings back the problem. Simply having the library as part of the
project does not cause the problem, only when the library is added to
the Link Binary With Libraries pane.
There are 132 source files. I can have four libraries; the fifth and
sixth libraries cause the problem. I am using Xcode 2.0.
Help.
(I tried all kinds of things which often otherwise help with cannot-
find-symbol problems. Clean Target, delete build/ directory, quit,
restart, start over again with an archived project file, removing the
source files and readding them, completely rebuilding the Sources
list, modifying and resaving the files, frobbing build settings, etc.
None of those had any affect, so let's be clear that *deleting the
build directory doesn't solve the problem*.)
peace
Nicholas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden