Re: Xcode incorrectly caching source files?
Re: Xcode incorrectly caching source files?
- Subject: Re: Xcode incorrectly caching source files?
- From: Jack Repenning <email@hidden>
- Date: Wed, 15 Aug 2007 10:20:15 -0700
On Aug 15, 2007, at 4:47 AM, Thomas Backman wrote:
Hi everybody.
I'm quite new at both Xcode and Obj-C/Cocoa, and I'm having some
really strange problems. Every once in a while, Xcode simply
refuses to acknowledge that I've modified a source file. It
compiles the old version and uses that instead. Even if I clean all
targets, and add some code (or rather non-code) that would cause a
syntax error, it STILL rebuilds all the source files, links and
runs the newly-built application that shouldn't build in the first
place.
I haven't found a solution except to back my source dir up and use
the old version until that breaks.
What's even more strange, is that when I modify code in one dir
(i.e. MyProject.BACKUP), the changes also appear on another copy of
the source dir! How this is possible I have no idea, since they are
completely separate (AFAIK), no links (symbolic or otherwise).
Any clues?
Your two problems together suggest that, somehow, you're not editing
the file you actually think you are. This would be some snafu in
whatever you're using to spot the files and suck them into an editor,
which you didn't actually describe. Some questions worth pursuing,
to narrow things down:
When you're in the situation where you make changes but they don't
trigger a rebuild, do the files appear changed in Xcode? In Finder?
Control-click one of these misbehaving files and pick "Reveal in
FInder." Is it where you expect? Compare it to other files you
expect to be in the same location. (Sometimes, you can achieve this
simply by hovering the mouse over the file name in Xcode's "Groups &
Files" and seeing the path, but this doesn't always work for me.)
-==-
Jack Repenning
Chief Technology Officer
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
office: +1 650.228.2562
mobile: +1 408.835.8090
raindance: +1 877.326.2337, x844.7461
aim: jackrepenning
skype: jrepenning
_______________________________________________
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