Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode claims it can't find source files which exist



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.