Moving localization folders in Xcode 4

ios, xcode, xcode4

Solution

Found the solution. It's not pretty, but it works.

Here's what I did:

- View the contents of the `.xcodeproj` folder in Finder

- Edit the `project.pbxproj` file

- Search for `.lproj` within the file

- Change the `path =` section to include the `Resources` part of the path.

- Save, then restart Xcode

This smoothed everything over, and allowed the Localization to reside in the Resources subdirectory.

Problem

I've recently upgraded from Xcode 3 to Xcode 4.2, and migrated an existing iOS apps to use this new version. This app is localized, and I now want to add another language. Under Xcode 4, when I add the new localization, it creates the country specific folder in the project root. For example: ``` /fr.lproj ``` All of my prior language folders are in a Resources sub-folder, however. Such as: ``` /Resources/de.lproj /Resources/en.lproj ``` For the life of me I cannot figure out how to get Xcode 4 to move the new language folder to `Resources`. There is no GUI option I can find. If I move the physical folder using Finder, Xcode just changes the reference to red, but gives me no option to fix it. Can anyone help? UPDATE: Here are a few screenshots demonstrating the problem (using Chinese this time): The file listing: The identity section for that file. Note that I can't change it:

Original source