in a XCode project, I offen got xcodeproject/project.pbxproj file changed, but useless info for me, it for compile.
在一个XCode项目中,我经常得到xcodeproject/project。pbxproj文件改变了,但对我来说没用,它是用来编译的。
Should I git ignore this file and xcodeproject/projectxworkspace/username.xcuserdata/UserInterfaceState.xcuserstate file?
我应该忽略这个文件和xcodeproject/projectxworkspace/username.xcuserdata/UserInterfaceState吗?xcuserstate文件?
5 个解决方案
#1
99
This file holds the list of all the files in the project, settings of targets and which files belong to which targets. It's probably the meatiest file in project bundle. You should not ignore this file. There are few points for this:
此文件包含项目中所有文件的列表、目标的设置和属于哪个目标的文件。它可能是项目包中最重要的文件。您不应该忽略这个文件。对此有几点:
- You may not want to work on this project alone or;
- 你可能不想独自完成这个项目;
- You're planning on working on project from different machines;
- 你计划在不同的机器上做项目;
- You'll want to share your code base with others;
- 您将希望与他人共享您的代码库;
#2
6
That is the only file that you want in your repos from the xcodeproj bundle. That file holds all of the info for targets files and build settings.
这是您希望在repos中从xcodeproj包中获得的惟一文件。该文件保存目标文件和构建设置的所有信息。
#3
3
If you exclude project.pbxproj Jenkins builds will fail. So this is important if you use Jenkins.
如果你排除项目。Jenkins构建的pbxproj将失败。这很重要,如果你用Jenkins的话。
#4
2
Unfortunately, if your Build Settings includes code signing, you have to re-enter your code-signing entity after every "git pull" if another team member has changed it. It seems to me this info should be in the user settings, not the global pbxproj file.
不幸的是,如果您的构建设置包含代码签名,那么如果另一个团队成员更改了代码签名,则必须在每次“git提取”之后重新输入代码签名实体。在我看来,这个信息应该在用户设置中,而不是全局pbxproj文件中。
#5
0
I found that I also need to preserve the xcworkspace file(s). If didn't, project with a sub-project broke.
我发现我还需要保存xcworkspace文件。如果没有,项目的子项目就破产了。
#1
99
This file holds the list of all the files in the project, settings of targets and which files belong to which targets. It's probably the meatiest file in project bundle. You should not ignore this file. There are few points for this:
此文件包含项目中所有文件的列表、目标的设置和属于哪个目标的文件。它可能是项目包中最重要的文件。您不应该忽略这个文件。对此有几点:
- You may not want to work on this project alone or;
- 你可能不想独自完成这个项目;
- You're planning on working on project from different machines;
- 你计划在不同的机器上做项目;
- You'll want to share your code base with others;
- 您将希望与他人共享您的代码库;
#2
6
That is the only file that you want in your repos from the xcodeproj bundle. That file holds all of the info for targets files and build settings.
这是您希望在repos中从xcodeproj包中获得的惟一文件。该文件保存目标文件和构建设置的所有信息。
#3
3
If you exclude project.pbxproj Jenkins builds will fail. So this is important if you use Jenkins.
如果你排除项目。Jenkins构建的pbxproj将失败。这很重要,如果你用Jenkins的话。
#4
2
Unfortunately, if your Build Settings includes code signing, you have to re-enter your code-signing entity after every "git pull" if another team member has changed it. It seems to me this info should be in the user settings, not the global pbxproj file.
不幸的是,如果您的构建设置包含代码签名,那么如果另一个团队成员更改了代码签名,则必须在每次“git提取”之后重新输入代码签名实体。在我看来,这个信息应该在用户设置中,而不是全局pbxproj文件中。
#5
0
I found that I also need to preserve the xcworkspace file(s). If didn't, project with a sub-project broke.
我发现我还需要保存xcworkspace文件。如果没有,项目的子项目就破产了。