“警告:输入管理器无法加载静态字典:nl_NL”是什么意思?意思是?
我一直致力于 xib 文件的荷兰语本地化。当我在模拟器中运行我的应用程序时,我在日志控制台中收到以下消息:
警告:输入管理器无法加载静态字典:nl_NL
我尝试重置模拟器,我已删除该应用程序,我删除了本地化内容并再次添加,我已经清理了我的项目,但似乎没有任何效果。我不断收到此警告消息。
我的问题: - 我可以忽略它吗? - 我怎样才能摆脱这个警告?
我在网上搜索过,但似乎找不到任何答案。
I've been working on a dutch localization of a xib file. When I run my app in the simulator, I get the following message in the log console:
WARNING: Input manager failed to load static dictionary for: nl_NL
I've tried to reset the simulator, I've deleted the app, I removed the localization stuff and added it again, I've cleaned my project, but nothing seems to work. I keep getting this warning message.
My questions:
- can I ignore it?
- how can I get rid of this warning?
I've searched the web, but can't seem to find any answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果它只发生在模拟器中并且不会导致任何其他问题,我不会太担心。我今天也是第一次看到这个警告。
一些后续问题可能会有所帮助:
您使用的是哪个 SDK?
如果您从模板创建新的 Xcode 项目,会发生这种情况吗?
您的应用程序是否仍然正确加载本地化笔尖?
If it happens only in the simulator and doesn't cause any other issues, I wouldn't worry too much about it. I just saw this warning for the first time today too.
Some follow-up questions may help:
Which SDK are you using?
Does it happen if you create a new Xcode project from a template?
Is your app still loading the localized nib correctly?
当我本地化为西班牙语 (es_ES) 时,我会收到相同的消息,但当我本地化为日语和简体中文(或英语)时,不会收到相同的消息。
我无法追踪原因或解决此问题。然而,就我而言,这绝对不是本地化的 xib 文件,但当我调用时会出现:
但这仅在模拟器中。
据我所知,在设备上它工作得很好,我忽略了它。
I get the same message when I localise to Spanish (es_ES), but not when I localise to Japanese and to Simplified Chinese (or English for that matter).
I haven't been able to trace the cause or fix this. However in my case this is definitely not the localised xib files, but it arises when I call:
But this is only in the simulator.
On the device it works just fine as far as I can tell and I'm ignoring it.
我使用的是 4.2 SDK。我已经从模板创建了该项目。它仍然正确加载本地化的笔尖。
我发现的是以下内容:似乎只有当我在 AppDelegate.m 文件内的 didFinishLaunchingWithOptions 选择器中运行以下代码时才会发生:
AboutViewController *controller = [[AboutViewController alloc]
initWithNibName:@"AboutViewController" 包:nil];
[self.window addSubview:controller.view];
[self.window makeKeyAndVisible];
如果我注释掉这些行,并将其替换为另一个子视图,则不会发生这种情况。 AboutViewController 笔尖是本地化的笔尖。如果我在用户单击 (i) 信息按钮时显示相同的视图,它就会正常工作并且不会发出警告。当我从 AppDelegate 执行此操作时,它只会向我发出警告。
I'm using the 4.2 SDK. I've created the project from a template. It's still loading the localized nib correctly.
What I did find out was the following: it seems to happen only if I run the following code in the didFinishLaunchingWithOptions selector inside the AppDelegate.m file:
AboutViewController *controller = [[AboutViewController alloc]
initWithNibName:@"AboutViewController" bundle:nil];
[self.window addSubview:controller.view];
[self.window makeKeyAndVisible];
If I comment out these lines, and replace it with another subview, it doesn't happen. The AboutViewController nib was the one which was localized. If I display the same view when the user clicks on an (i) information button, it just works and without the warning. It just gives me the warning when I do it from the AppDelegate.