Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy .strings failed to remove

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.

like image 679
Mike Keskinov Avatar asked Jan 04 '12 00:01

Mike Keskinov


2 Answers

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.

like image 67
Vitaly S. Avatar answered Nov 10 '22 07:11

Vitaly S.


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

Validate Settings

like image 2
JaredH Avatar answered Nov 10 '22 07:11

JaredH