是否应该将 XCSharedData 检查到 Xcode 项目的 Git Repo 中?
Should XCSharedData be checked into Git Repo for Xcode project?
我刚刚做了一些更改,我看到一个尚未添加到存储库的待定文件。文件名路径是 */xcshareddata/IDEWorkspaceChecks.plist。有人可以解释此文件的原因以及为什么或为什么不需要将其添加到存储库中吗?
xcshareddata/
中的文件应添加到存储库中(而不是 xcuserdata/
中的文件):
Xcode 9.3 adds a new IDEWorkspaceChecks.plist file to a workspace's shared data, to store the state of necessary workspace checks. Committing this file to source control will prevent unnecessary rerunning of those checks for each user opening the workspace. (37293167)
关于 Xcode 9 和更高版本,你在 .gitignore 中真正需要的唯一一行是:
xcuserdata/
Xcode 9+ 无其他。无论你在 .gitignore 中有什么其他行,都应该只为你的特定需要添加,而不是因为你在互联网上发现了一个过时的 .gitignore 示例。 :)
我刚刚做了一些更改,我看到一个尚未添加到存储库的待定文件。文件名路径是 */xcshareddata/IDEWorkspaceChecks.plist。有人可以解释此文件的原因以及为什么或为什么不需要将其添加到存储库中吗?
xcshareddata/
中的文件应添加到存储库中(而不是 xcuserdata/
中的文件):
Xcode 9.3 adds a new IDEWorkspaceChecks.plist file to a workspace's shared data, to store the state of necessary workspace checks. Committing this file to source control will prevent unnecessary rerunning of those checks for each user opening the workspace. (37293167)
关于 Xcode 9 和更高版本,你在 .gitignore 中真正需要的唯一一行是:
xcuserdata/
Xcode 9+ 无其他。无论你在 .gitignore 中有什么其他行,都应该只为你的特定需要添加,而不是因为你在互联网上发现了一个过时的 .gitignore 示例。 :)