When one takes a non-localized XIB file in Xcode, and makes it localizable, it automatically adds the default region/localization to the XIB file, e.g. “en” or “English.” This actually moves the XIB file into the en.lproj or English.lproj directories. If the XIB file is in a version control system such as SVN, SVN starts to freak out because the file was not moved within the version control system, and it thinks that it is missing. What to do? Is there a way to have Xcode move the XIB files in a version control-friendly way, or do I need to move the files with the SVN command-prompt in Terminal?
Share
I figured I’d post my own solution to this problem. It’s not the most “elegant” solution, but it works for me. Essentially, I don’t “localize” the XIB files directly, but I hook up every UI object that has text in it to an IBOutlet, and set the text programmatically in my UIView class. That way, all of my strings end up in the regular strings files rather than having a separate set of strings files for the XIB files. So far, it’s working pretty well.