Re: XCode, Subversion and Nib files
Re: XCode, Subversion and Nib files
- Subject: Re: XCode, Subversion and Nib files
- From: James Bucanek <email@hidden>
- Date: Wed, 26 Jul 2006 22:13:01 -0700
Mike Kobb wrote on Wednesday, July 26, 2006:
>So, I moved on to the next phase of the project, which is to begin
>localization. So, I selected my Nib file in the project view, opened
>the info window, and added several localizations. These all show up
>in XCode, but to my surprise they do not show up with the "?"
>indicating that they are not under source management.
For the most part, Xcode is pretty good about tracking changes to your project in SCM. However, adding folders is not one of them.
When you localized your first file, you created a new local folder (probably English.lproj), so you went from a directory structure of
MainMenu.nib
to
English.lproj/
MainMenu.nib
French.lproj/
MainMenu.nib
...
Xcode doesn't have the new folders (English.lproj, French.lproj, ...) under source control. You'll need to the add those manually
cd <your resource directory>
svn delete MainMenu.nib
svn add English.lproj
svn add French.lproj
...
>Furthermore, if I click on one of these localizations and say "Add to
>Repository", nothing happens. No status changes in the SCM column,
>and no error message is displayed.
That's because Xcode won't add folders, or any files inside a folder that isn't already in source control. (Any file or folder that isn't in source control gets a '?'.) Once you add the enclosing folder using the command line tool, you can then use the SCM commands in Xcode to add files. Although to be honest, if you're adding a folder to source control it's usually easiest to use the add and command and get all of the files it contains at the same time.
Technical nit-pick: NIB file are, of course, packages which are folders as far as source control is concerned. Xcode does know enough about packages to add a directory to SCM when you add a NIB, but not a NIB inside a folder that isn't yet under source control.
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>
_______________________________________________
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