Xcode 6:iOS不使用情节提要本地化 [英] Xcode 6: iOS doesn't use storyboard localizations

查看:66
本文介绍了Xcode 6:iOS不使用情节提要本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我已将Xcode项目升级到Xcode 6,因此故事板的本地化无法正常进行. 我有:

since I upgraded my Xcode project to Xcode 6, my storyboard localizations don't work. I have:

  • 基本本地化作为情节提要文件(基本上是英语)
  • 四个字符串文件:英语,德语,法语和日语

直到Xcode 5一切正常为止.

Until Xcode 5 those worked without any problems.

但是由于Xcode 6,我遇到以下情况:

But since Xcode 6 I have the following situation:

  1. 应用程序仅在设备/模拟器上运行时使用基本文件中使用的标签
  2. 但是我的Localizable.strings文件(对于所有与storyboard相关的本地化而言,使用不同的语言)可以完美地工作. (因此,最终,我在设备上运行时会混合使用多种语言)
  3. 从Xcode 6开始,可以在助手编辑器中以预览屏幕的形式查看本地化.一切正常.

所以:唯一不起作用的是运行时情节提要的本地化

So: the only thing that doesn't work is the localization of the storyboard while running

其他人也有同样的问题吗,有解决方案吗?

Does anyone else have the same problem and is there a solution?

更新:使用Xcode 6.1 GM,现在在实际设备上的本地化是正确的,但是即使我在模拟器中选择了另一种语言,模拟器也只能是英语.

Update: With Xcode 6.1 GM the localization on the actual device is correct now but the simulator is English only, even if I choose another language in the simulator.

推荐答案

我遇到了同样的问题.解决方案是:您需要先清理(shift-cmd-k)一个项目,然后构建并运行它.

I've been experiencing the same issue. The solution is: you need to clean (shift-cmd-k) a project first, then you build and run it.

这篇关于Xcode 6:iOS不使用情节提要本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆