Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InfoPlist.strings problem when building

Tags:

ios

xcode4

iphone

I removed a localized file. And now when Im trying to build I keep getting this error:

error: Error Domain=NSCocoaErrorDomain Code=4 UserInfo=0x2025f7cc0 "“InfoPlist.strings” couldn’t be removed." | User info: {

I can't find a solution. Any advice?

Im using XCode 4

like image 550
johan Avatar asked Jun 29 '11 13:06

johan


1 Answers

In Xcode, click on your project in the top left of the first column. Go to Build Phases and expand the "Copy Bundle Resources". Make sure that InfoPlist.strings has been removed from this list. Otherwise the compiler will try to copy it over during compilation but it has already been deleted so it'll fail.

Also, alternatively, try just finding the file in finder and manually deleting it there.

like image 143
Andrew Avatar answered Nov 16 '22 00:11

Andrew