gpt4 book ai didi

xcode - xcuserdata 文件夹中所有内容的 .gitignore 不会忽略 xcuserstate 文件

转载 作者:IT王子 更新时间:2023-10-29 01:01:36 26 4
gpt4 key购买 nike

我在 Xcode 项目中工作,我正在尝试将 .gitignore 配置为不获取 xcuserdata 文件夹中的任何内容。

我有以下.gitignore:

# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
xcuserdata/*

但每次我构建/运行项目并执行 git status 时,它仍然显示以下中间文件:

modified: MyProject.xcodeproj/project.xcworkspace/xcuserdata/fernando.xcuserdatad/UserInterfaceState.xcuserstate

有人知道哪里出了问题吗?

最佳答案

我找到了解决方案

问题不在 .gitignore 文件中

问题是 UserInterfaceState.xcuserstate 没有从 git 服务器中删除,在以下链接中找到了解决方案:

Can't ignore UserInterfaceState.xcuserstate

关于xcode - xcuserdata 文件夹中所有内容的 .gitignore 不会忽略 xcuserstate 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15646107/

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