Laura Manukyan
Laura Manukyan

Reputation: 95

Localized Interface builder storyboard doesn't work in Xcode 10

After updated to Swift 4.2 I tested new app version on iPhone where is a main language is Russian. Region is also Russia, but app using English Interface builder storyboard (Base). Even I have Russian one.

enter image description here

I also have Localizable strings for UIAlertController.

enter image description here

And it works. I mean, when I use my app on my iPhone (Russian language. Region is Russia) then I see English Interface builder storyboard, but alerts on Russian.

I didn't set language in scheme.

enter image description here

enter image description here

I even created new project there made 2 languages. Same problem.

Help me please where is a problem. Why iOS doesn't wanna see necessary Interface builder storyboard

Upvotes: 5

Views: 2434

Answers (2)

Stefan
Stefan

Reputation: 191

Just FYI. I had the same issue and I accidentially removed a semicolon in the Storyboard translation file. Syntax errors in the Localizeable.strings will prevent Xcode from compiling, but NOT in in the storyboard . This will cause XCode to ignore this file and just skip this translation.

Upvotes: 11

Mike Tompkins
Mike Tompkins

Reputation: 46

I'm facing the same issue, I have Chinese and English(Base) in my MacOS App. The App always showing the Base Storyboard in Xcode 10 while it displays correctly in Xcode 9.x.

In the Build Log View, zh-CN.lproj/Main.storyboard never shows up, that means Xcode 10 does not compile it at all.

Since I update to Xcode 10.1, the issue disappeared. I think Apple have fixed it.

Upvotes: 0

Related Questions