复制 .strings 删除失败
我在 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.
EDITED: The same problem with XCode 4.3. After every "clear" (or changing any strings) project build successfully after 4-5 tries.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试在项目设置中按“验证设置”。我遇到了同样的问题,经过验证 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.
要添加 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