复制 .strings 删除失败

发布于 2024-12-23 20:03:25 字数 621 浏览 1 评论 0原文

我在 Xcode 4.2 中时常遇到这样的错误。它每次都会出现在“产品/清洁”之后。我在 Localized.strings 中有 15 种不同的语言。经过 2-3 次尝试构建应用程序后,错误消失了!所以我可以忍受它,但这有点烦人。

error: failed to remove /Users/mikhailkeskinov/Library/Developer/Xcode/DerivedData/Dictionary-eiyrziajmltuglfzgtnjxffkojwi/Build/Products/Debug-iphonesimulator/Dictionary.app/nl.lproj/Localizable.strings: “Localizable.strings” couldn’t be removed.

在此处输入图像描述

在此处输入图像描述

编辑: XCode 4.3 存在同样的问题。每次“清除”(或更改任何字符串)后,项目都会在 4-5 次尝试后成功构建。

I get such errors time to time in Xcode 4.2. It appears every time after Product/Clean. I have 15 different languages in Localizable.strings. After 2-3 tries to build apps error disappears! So I can live with it, but it is a bit annoying.

error: failed to remove /Users/mikhailkeskinov/Library/Developer/Xcode/DerivedData/Dictionary-eiyrziajmltuglfzgtnjxffkojwi/Build/Products/Debug-iphonesimulator/Dictionary.app/nl.lproj/Localizable.strings: “Localizable.strings” couldn’t be removed.

enter image description here

enter image description here

EDITED: The same problem with XCode 4.3. After every "clear" (or changing any strings) project build successfully after 4-5 tries.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风轻花落早 2024-12-30 20:03:25

尝试在项目设置中按“验证设置”。我遇到了同样的问题,经过验证 XCode 发现资源有重复的条目(在构建阶段之一)。 XCode 删除了它们,所有问题都消失了。

Try to press 'Validate Settings' in your project settings. I had the same problem and after validation XCode found what there are duplicate entries for resources (in one of build phases). XCode removed them and all problems gone.

猫九 2024-12-30 20:03:25

要添加 Vitaly S. 的答案,请转到编辑 -->验证设置和建议的修复之一应提及 Localization.strings

验证设置

To add to Vitaly S.'s answer, go to Editor --> Validate Settings and one of the suggested fixes should mention Localization.strings

Validate Settings

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文