PDA

View Full Version : moved-aside folder and empty files in XCode




ohbrilliance
Jan 20, 2009, 10:00 AM
I have been working on a Cocoa app, and found two files to be missing, a matching *h/*m pair that is the crux of my application.

The files are marked in red in XCode, and and non-existent in my source directory. Instead, I've found skeleton files for these under ImageView-1.moved-aside/

ImageView is the name of the application.

Does anybody know what could have caused this? Both for the deletion of files and the creation of skeleton files in moved-aside? Most strangely, I backed up all files on December 24th, and last compiled the application on December 29th, yet the files are missing both from my backup (a tar file) and the original source.



Brain2000
Jan 30, 2010, 02:05 AM
I have been working on a Cocoa app, and found two files to be missing, a matching *h/*m pair that is the crux of my application.

The files are marked in red in XCode, and and non-existent in my source directory. Instead, I've found skeleton files for these under ImageView-1.moved-aside/

ImageView is the name of the application.

Does anybody know what could have caused this? Both for the deletion of files and the creation of skeleton files in moved-aside? Most strangely, I backed up all files on December 24th, and last compiled the application on December 29th, yet the files are missing both from my backup (a tar file) and the original source.

You most likely have renamed those files in XCode. If you rename a source file in XCode, the filename on disk still maintains the original filename. I find it to be a real pain that XCode doesn't rename the actual file. Search the directory for another file and you should find what you are looking for. Unless you really did delete it, even before your last backup, and never realized it...

Sydde
Jan 30, 2010, 12:29 PM
You most likely have renamed those files in XCode. If you rename a source file in XCode, the filename on disk still maintains the original filename. I find it to be a real pain that XCode doesn't rename the actual file. Search the directory for another file and you should find what you are looking for. Unless you really did delete it, even before your last backup, and never realized it...

Odd. That has not been my experience. I mean, that would be really bad if you renamed a file and changed the #import(s) - the project would not compile.