我已将REActivityViewController
安装为pod。这是pod中Resources
文件夹的图片:
这是尝试拉弦的其中一条线:
[_cancelButton setTitle:NSLocalizedStringFromTable(@"button.cancel", @"REActivityViewController", @"Cancel") forState:UIControlStateNormal];
按钮标题未本地化。在此示例中,它显示button.cancel
。它不仅仅是这个按钮标题,还有这个依赖的所有按钮。
修改
所以在我Info
下的主项目中就是这样。我无法点击它来查看那些文件。我的主项目中有NSLocalizedStrings
,但我还没有创建.strings
个文件:
修改
所以我检查了我的Pods-resources.sh
,发现了这个:
install_resource "REActivityViewController/REActivityViewController/REActivityViewController.bundle"
install_resource "REActivityViewController/REActivityViewController/Localizations/de.lproj"
install_resource "REActivityViewController/REActivityViewController/Localizations/en.lproj"
install_resource "REActivityViewController/REActivityViewController/Localizations/fr.lproj"
install_resource "REActivityViewController/REActivityViewController/Localizations/it.lproj"
install_resource "REActivityViewController/REActivityViewController/Localizations/ru.lproj"
install_resource "REActivityViewController/REActivityViewController/Localizations/uk.lproj"
install_resource "REActivityViewController/REActivityViewController/Localizations/zh-Hans.lproj"
答案 0 :(得分:2)
Run script only when installing
- >复制Pods Resources,因为脚本速度很慢,所以安装bundle的脚本没有在调试时安装bundle。