Copy .strings failed to delete.

I get such errors from time to time in Xcode 4.2. It appears every time after Product / Clean. I have 15 languages โ€‹โ€‹in Localizable.strings. After 2-3 attempts to create application errors disappear! So I can live with him, but it's a little 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: Same issue with Xcode 4.3. After each project โ€œclearโ€ (or changed any lines) will work successfully after 4-5 attempts.

+4
source share
2 answers

Try clicking "Check Settings" in the project settings. I had the same problem, and after checking Xcode discovered that there were duplicate entries for resources (in one of the build phases). Xcode deleted them and all the problems are gone.

+6
source

To add an answer to Vitaly S., go to Editor โ†’ Validate Settings, and in one of the proposed fixes, mention Localization.strings

Check settings

+1
source

Source: https://habr.com/ru/post/1389183/


All Articles