iOS应用程序本地化语言更改崩溃(iOS App localization Crash on language change)

编程入门 行业动态 更新时间:2024-10-28 02:31:36
iOS应用程序本地化语言更改崩溃(iOS App localization Crash on language change)

我已经用故事板本地化了我的应用程序。 它具有以下行为:

在开发语言中使用设备构建时工作正常(英语)

当我将iPhone语言更改为应用程序本地化的内容并打开应用程序时,它会在崩溃前显示黑屏短时间(1-5秒)。

手机现在使用另一种语言,如果我将应用程序构建到手机上,它可以正常工作并加载本地化的故事板。

所以,要重申:这个本地化的应用程序拒绝在语言更改时打开,但如果我再从XCode再次将其构建到设备,则可以正常工作。

到底是怎么回事? iOS错误,还是我配置错误?

I have localized my app with storyboards. It has the following behavior:

Works fine when built to device in development language (English)

When I change the iPhone language to something that the app is localized in, and open the app, it shows a black screen for a short amount of time (1-5 seconds) before crashing.

With the phone now in another language, if I build the app to the phone, it works fine and loads the localized storyboards.

So, to restate: this localized app refuses to open when the language is changed, but works fine if I then build it to to the device again from XCode.

What is going on? iOS bug, or do I have something configured wrong?

最满意答案

我也有同样的问题。 我检查了故事板中的所有Localazation文件,它对我来说很好。 如下图所示。 在此处输入图像描述

I have the same problem. And I checked all Localazation files in storyboard , and it works fine to me. Like below image. enter image description here

更多推荐

本文发布于:2023-08-05 19:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1438311.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   语言   App   iOS   language

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!