Search code examples
objective-cios4xcode4

What is pt.lproj?


In Xcode 4, I'm getting this error:

/Developer/Projects/MyApp/Classes/pt.lproj/Localizable.strings:0: error: The file “Localizable.strings” couldn’t be opened because there is no such file.

"pt" isn't a language I've used in the app. I do have several languages that utilize xx.lproj folders but "pt" isn't one of them. Any ideas what is causing this?

EDIT:
I do see a Portuguese Localizable.strings file under the main Localizable.strings. It is red and I can't delete it.


Solution

  • If Xcode really gets itself into a state then the nuclear option is to right click on your .xcodeproj and select 'Show Package Contents'. Then open the .pbxproj file in there in a text editor such as TextEdit — it's a use readable file with a JSON-like format. Look through there and remove any references to the mysterious pt.lproj. Be sure to back up your .xcodeproj first, as if you leave the .pbxproj in an invalid state then Xcode will simply refuse to reopen the project.