Git 无法识别 xcode 项目中添加的 .xcscheme 文件 [英] Git not able to recognise addition of .xcscheme files in xcode project

查看:55
本文介绍了Git 无法识别 xcode 项目中添加的 .xcscheme 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 xcode 项目中添加了与测试目标相对应的新方案.创建的新 xcscheme 文件没有反映在 git 中.还做一个 git status 显示我 没有提交,工作目录干净.

Added a new scheme corresponding to a test target in my xcode project. The new xcscheme file created is not getting reflected in git. Also doing a git status shows me nothing to commit, working directory clean .

尝试通过终端通过 git add .xcscheme 添加它说

Trying to add it through terminal by git add .xcscheme says

以下路径将被您的 .gitignore 文件之一忽略:MyProject.xcodeproj/xcshareddata/xcschemes/MyProjectTests.xcscheme如果你真的想添加它们,请使用 -f

在验证我的 .gitignore 文件时,它完全空白.

On verifying my .gitignore file, its completely blank.

我浏览了一些帖子,要求共享计划,但没有帮助.通过此线程,Bitbucket 未显示主题目录中的更改.但对我来说,.xcodeproj 文件或 xcschemes 目录中都没有 .git 或 .gitignore 文件.

I went through posts which asks to make the schemes shared but it did not help. Went through this thread, Bitbucket not showing changes in themes directory . But for me, there is no .git or .gitignore files inside either of the .xcodeproj file or xcschemes directory.

如何删除这些限制以便我可以将新的 xcscheme 文件添加到存储库中,或者是否有任何其他设置需要修改?

How to remove these restrictions so that I can add the new xcscheme file to the repo or is there any other settings that I need to modify?

推荐答案

gitignore 设置有多个地方.全部检查.

There are multiple places for gitignore settings. Check them all.

参见http://git-scm.com/docs/gitignore等文档

这篇关于Git 无法识别 xcode 项目中添加的 .xcscheme 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆