问题描述
我有一个Xcode项目,需要更改它构建的产品的名称.我用细齿梳子浏览了项目文件,并认为我已使所有更改成为可能.最后一步是grep项目文件夹中的所有文件,以防出现旧名称.它干净了.
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.
但是在构建grep之后,找到了一个文件,其中包含多次出现的旧名称.它位于类似的位置: MyProjectFolder/build/MyProject.build/MyProject.pbxindex/strings.pbxstrings/strings
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.
谁能告诉我... pbxstrings/strings文件的用途以及它的构建方式?如果我知道我可以找到旧名称的最后残留并清除它们.
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.
推荐答案
该MyProject.pbxindex仅用于CodeSense. :)关闭Xcode并删除MyProject.pbxindex目录(如果您怀疑,请复制一个目录),然后重新打开Xcode.它将重建它.
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干净的构建
xcodeindex -project /path/to/your/project clean build
虽然我会做第一个.
这篇关于Xcode pbxstrings文件是做什么用的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!