Xcode 6本地化无法读取字符串文件 [英] Xcode 6 localization failed to read a strings file

查看:106
本文介绍了Xcode 6本地化无法读取字符串文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode无法生成xliff本地化文件,错误为 localization未能读取字符串文件.请检查系统日志以获取更多详细信息.有人知道我在哪里可以找到这些日志吗?它是Xcode 6.3.2 GM,但我也尝试过6.3.1版本.带有6.3.1.该错误位于特定文件上,但在该文件内部并非异常.此外,我尝试删除该文件,但是尽管该文件不再存在,但仍出现相同的错误.有人知道为什么吗?

Xcode fails to generate xliff localization file with error localization failed to read a strings file. Please check the system log for more details. Does anyone know where do I find these logs? It's Xcode 6.3.2 GM but I've tried the 6.3.1 version as well. With 6.3.1. the error is on specific file but inside that file isn't nothing unusual. Furthermore I've tried to remove that file but I'm getting the same error although the file isn't there anymore. Does anyone idea why?

推荐答案

最后,我已经通过从代码中删除所有NSLocalizedString宏解决了这一问题,因为xliff导出器会为它们寻找代码,并根据结果寻找字符串文件.奇怪的是,他也扫描注释,因此仅注释不需要的NSLocalizedString宏将无济于事.

Well at last, I have solved that by removing all NSLocalizedString macros from code because the xliff exporter looks into code for them and based on results he looks for a strings files. The odd thing is that he scans comments too, so simply comment unwanted NSLocalizedString macros won't help.

这篇关于Xcode 6本地化无法读取字符串文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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