使用基本国际化后,情节提要板不应用更改 [英] Storyboard doesn't apply changes after using Base Internationalization

查看:76
本文介绍了使用基本国际化后,情节提要板不应用更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在本地化我的应用程序.我已经完成了Use Base Internationalization的使用,并添加了1种文件设置语言:MainStoryboard.strings(French)& InfoPlist.strings(法语)效果很好.

I'm localizing my app. I have already accomplished Use Base Internationalization and added 1 set language of files: MainStoryboard.strings (French) & InfoPlist.strings (French) which works fine.

我的问题是,我现在对MainStoryboard.storyboard所做的任何更改(例如更改标签字段字体颜色)都无法反映我运行该应用程序时所做的更改.

My problem is that any changes I now make to the MainStoryboard.storyboard (like changing a label field font color) do not reflect the change when I run the app.

我做错了什么?使用基础国际化后,您是否可以更改情节提要板属性?

What am I doing wrong? Can you not change the storyboard attributes once you have done the use base internationalization?

推荐答案

Xcode会将故事板编译为类似MainStoryboard.storyboardc的东西,并将storyboardc文件存储在

Xcode will compile your storyboard to something like MainStoryboard.storyboardc and store the storyboardc file in

<Your app folder>/Build/Products/Debug-iphonesimulator/<Your app name>.app/Base.lproj/MainStoryboard.storyboardc

我相信Base Internationalization的机制中存在错误,这使得Xcode仅使用旧的storyboardc而不是编译新的.因此,使用Base Internationalization后将不会显示对情节提要的更改.

I believe there is a bug in the mechanism of Base Internationalization, which makes Xcode just use the old storyboardc rather than compile a new one. Thus, your changes to storyboard will not appear after using Base Internationalization.

要解决此问题,只需删除Build文件夹.

To solve it, just remove the Build folder.

 rm -rf Build/

Xcode删除文件夹后将再次编译情节提要.

Xcode will compile storyboard again after deleting the folder.

如果仍然无法正常工作,则可能需要重置模拟器.

If it still doesn't work, you may need to reset your simulator.

这篇关于使用基本国际化后,情节提要板不应用更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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