How to localize the application name when using Xcode 8 and Swift 3

I updated Xcode 8 and Swift 3, and now my localized application names do not appear under the icon on the main screen of the device or emulator. Everything works fine with Xcode 7.3.

I defined the InfoPlist.strings file which has the following

"CFBundleName" = <App Name String>;
"CFBundleDisplayName" = <App Name String>;

In the info.plist file I have

Bundle Name = $(PRODUCT_NAME)
Bundle Display Name = $(PRODUCT_NAME)

In addition, I added Bool to info.plist with the name "Application has a localized display name" and set it to YES.

However, the default product name is displayed on the main screen, which is entered in the assembly setup product name field. So it seems that InfoPlist.strings files are being ignored.

Is this a bug or something needs to be changed when localizing the application name for Xcode 8?

+4
1

, , Base , .

info.plist InfoPlist.strings,

Bundle Name = [App Name]
Bundle Display Name = [App Name]

/.

+3

Source: https://habr.com/ru/post/1655537/


All Articles