Re: Changing a file directory
Re: Changing a file directory
- Subject: Re: Changing a file directory
- From: Jocelyn Houle <email@hidden>
- Date: Wed, 04 May 2011 11:24:26 -0400
>> I want to reorganize my project folder on my hard disk but as soon as I move a file into a new location the file is no longer found by my xcode project. How can I redirect the file in the xcode project to the file in the new location. I know I could remove all the files and add them back again but there must be an easier way to do this.
[snip]
> Unfortunately, AFAIK there is no real easy way to do this. The only alternative I know is to use the Choose button in the Get Info window after you've moved the file. Or perhaps using AppleScript. But quite frankly, when you want to do this for multiple files, I think the simplest way is as you describe, which you can do for more than one file at a time (drop the files on the project window.)
>
> As an alternative, if you organize the files in your project in groups that correspond to folders on disk, you could also save the files relative to the enclosing group, and change the directory for the enclosing group after you've moved the files.
How about opening your project.pbxproj in a text editor and editing the it by hand?
I'm sure it's not recommended, but it sounds possible.
You could even back it up, then modify a single of your files with "remove and add back" and see what Apple does by diff'ing the two...
Of course, with this kind of power, you can very well shoot yourself in the foot... So thread carefully. But with dozens of files to do, it might be worth a shot. Worst case, you do it all by hand in the GUI! ;-)
_______________________________________________
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