OGeek|极客世界-中国程序员成长平台

标题: ios - 无法在某些本地化上通过 pod spec lint 验证 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:38
标题: ios - 无法在某些本地化上通过 pod spec lint 验证

我有一个使用本地化的大项目。至于现在,我正在使用库:

'Localize-Swift', '2.0.0'

使本地化更容易。

但由于我将我的 xcode 从 9.4.1升级最新版本 10.0,一些本地化字符串出现了问题,例如像这样:

xcodebuild: error: unexpected duplicate task: CopyStringsFile /Users/myName/Library/Developer/Xcode/DerivedData/App-cxnnzigdonvocggyjllrudhwfpwq/Build/Products/Release-iphonesimulator/myProject/myProject.framework/jp.lproj/Localizable_Chat.strings myProject/myProject/Core/Resources/jp.lproj/Localizable_Chat.strings (in target 'myProject')

我认为本地化库似乎没有任何问题,因为在 pod spec lint 上显然有 4 个字符串需要验证但 1 个字符串确实通过了。

这些字符串之间的区别:

  1. String passed pod spec lint validation comes from the storyboard.
  2. Strings with above error comes from Xibs.

编辑:

I already tried both cocoapods 1.5.3 and 1.6.0 and it's still not working.



Best Answer-推荐答案


Update : This was fixed with the new Xcode 10.1 Beta 3

关于ios - 无法在某些本地化上通过 pod spec lint 验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52477250/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4