Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开始本地化我的应用程序。我曾经genstrings创建 localizable.strings。这工作得很好。现在我已经在应用程序上工作并删除了几个字符串并用图标替换它们。有没有办法告诉genstrings删除所有不再使用的字符串?
genstrings
谢谢
为什么不在项目中的所有 .m 文件上再次运行 genstrings 。通常会生成一个新文件,其中仅包含上次运行时可以找到的实际字符串。如果它不起作用,只需重命名旧文件并再次运行以下注释:
find . -name \*.m | xargs genstrings -o directory/filename.lproj
https://stackoverflow.com/a/3511929/1141395