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

查看:536
本文介绍了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

The following paths are ignored by one of your .gitignore files: MyProject.xcodeproj/xcshareddata/xcschemes/MyProjectTests.xcscheme Use -f if you really want to add them

在验证我的.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天全站免登陆