gpt4 book ai didi

xcode - 是否应该将 XCSharedData 检查到 Xcode 项目的 Git Repo 中?

转载 作者:IT王子 更新时间:2023-10-29 00:45:32 24 4
gpt4 key购买 nike

我刚刚做了一些更改,我看到一个尚未添加到存储库的待定文件。文件名路径是 */xcshareddata/IDEWorkspaceChecks.plist。有人可以解释这个文件的原因以及为什么或为什么不需要将它添加到存储库中吗?

最佳答案

应该将 xcshareddata/ 中的文件添加到 repo(而不是 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)

https://developer.apple.com/library/archive/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html


关于 Xcode 9 和更新版本,您在 .gitignore 中真正需要的唯一一行是:

xcuserdata/

Xcode 9+ 没有别的。无论你在 .gitignore 中有什么其他行,都应该只为你的特定需要添加,而不是因为你在互联网上发现了一个过时的 .gitignore 示例。 :)

关于xcode - 是否应该将 XCSharedData 检查到 Xcode 项目的 Git Repo 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53034303/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com