Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Xcode pbxstrings file for?

Tags:

xcode

macos

I have an Xcode project and needed to change the name of the product it builds. I went through the project files with a fine-toothed comb and thought I had made every change possible. The last step was to grep all files in the project folder for occurrences of the old name. It comes up clean.

But after a build grep finds a file which contains several occurrences of the old name. It is in a location like: MyProjectFolder/build/MyProject.build/MyProject.pbxindex/strings.pbxstrings/strings

I can't imagine where it is getting the old name from. Also, I have no idea what this file is used for. But I am concerned that apparently I haven't purged the old name everywhere.

Can anyone tell me what the ...pbxstrings/strings file is for and how it gets built? If I understand that I can probably track down the last remnants of the old name and purge them.

like image 513
gauss256 Avatar asked Jul 19 '26 23:07

gauss256


1 Answers

That MyProject.pbxindex is just there for CodeSense. :) Close Xcode and delete the MyProject.pbxindex directory (make a copy if you are skeptical) and then reopen Xcode. It will rebuild it.

If you wanted to, you could do this from the command line:

xcodeindex -project /path/to/your/project clean build

I would just do the first one though.

like image 145
BobbyShaftoe Avatar answered Jul 22 '26 17:07

BobbyShaftoe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!