Moving localization folders in Xcode 4

I recently upgraded from Xcode 3 to Xcode 4.2 and migrated existing iOS apps to use this new version. This application is localized, and now I want to add another language.

In the Xcode 4 section, when I add a new localization, it creates a specific country at the root of the project. For instance:

/fr.lproj

However, all my previous language folders are located in the Resources subfolder. For instance:

/Resources/de.lproj
/Resources/en.lproj

Throughout life, I cannot figure out how to get Xcode 4 to move the new language folder to Resources. I can not find the GUI option. If I move the physical folder using Finder, Xcode simply changes the link to red, but does not allow me to fix it.

Can anyone help?

UPDATE:

, ( ):

:

The actual file in Xcode

. , :

enter image description here

+3
4

. , .

:

  • .xcodeproj Finder
  • project.pbxproj
  • .lproj
  • path =, Resources .
  • , Xcode

.

+10

.pbxproj(Xcode 4.6.3):

  • (Localizable.strings)
  • "" > " " > "" ( " " ) .
  • Finder > en.lproj, fr.lproj ..

UPD: Xcode 8: (

+3

Xcode 5.1 ( ):

  • Resources/el.lproj Localizable.strings Finder
  • Xcode Resource
  • " ..."
  • Localizable.strings Resources/el.lproj → OK. Localizable.strings Localizable.strings .

, xib .

+1
source

The file structure on disk in Xcode is basically irrelevant. Just move the directory to Finder, then in Xcode you can: (a) delete the fr.lproj directory and re-add it or (b) select the red entry, open the right panel (properties) and at the top you should see the path. Change the path to the new location and it will return to black.

0
source

All Articles