Copy .strings failed to remove
Asked Answered
M

2

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.

Medievalism answered 4/1, 2012 at 0:47 Comment(1)
Check permissions on your *.strings and try to manually delete all your Derived DataAdermin
S
11

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.

Selfpity answered 16/1, 2013 at 14:39 Comment(1)
I love how Xcode produces all kinds of stupid errors.Hoag
L
2

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

Validate Settings

Louden answered 8/3, 2017 at 1:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.