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

后端 未结 6 1518
陌清茗
陌清茗 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:33

    This is an old topic, but after having this issue, and then trying the solution (and having it not work exactly), I thought I'd give details on what DID work.

    Like the original poster, I accidentally deleted all of my localizations and was given no obvious recourse in Xcode-- in the project settings under Info it simply said 'this project has not been localized', and when I clicked on the plus button beneath, a blank list of resource files was presented.

    I followed @Cameron's guide but found that language folders with Localizable.strings files were already present in Finder, but weren't being acknowledged by Xcode. I couldn't decide how to proceed, but I happened to see an unrelated comment about adding files to Xcode, so I tried adding the existing en.lproj folder and its Localizable.strings file.

    This worked, and the listing for English as the development language appeared under Info as well.

    Hopefully this will help anyone who experiences the same problem!

提交回复
热议问题