I deleted the Localizations in Xcode, then I cannot add any Localizations back

后端 未结 6 1495
陌清茗
陌清茗 2021-01-30 13:54

I deleted the Localizations of the project from the project\'s info by mistake. Both the storyboard and the related language were removed.

I got back the storyboard from

6条回答
  •  囚心锁ツ
    2021-01-30 14:32

    In xcode 6, do the following:

    1. With the command line, create the following directory/file structure somewhere outside your project directory:

      • /en.lproj/InfoPlist.strings

      • /en.lproj/Localizable.strings

    2. In Xcode, open your project and choose File>Add Files to ProjectName to add the recently created en.lproj directory.

    3. After that, you will see English in the Localizations list.

提交回复
热议问题