摆脱"文件仍被标记为冲突" Xcode中的警告

时间:2015-08-25 19:51:00

标签: git xcode6 compiler-warnings

我想删除警告。找到导致此警告的点并不容易。点击黄色图标后,没有登录xcode,只是一个空白页面。警告位于项目文件中,而不是工作区文件中。它也与当前的git状态无关。有关冲突的信息存储在.xcodeproj中的某个位置。但我找不到任何相关的路线。我怀疑它是由Xcode取消合并(该过程无法完成)引起的。

XCode 6.4,git version 2.3.2(Apple Git-55)

enter image description here

我无法通过菜单删除警告:

enter image description here

它看起来像是某个存储在某处的先前冲突的僵尸警告。我试着

  • 删除工作区文件并创建一个新文件(使用pod安装)
  • 我到处搜索<<<<<<或>>>>>或者"冲突"线
  • 在项目文件中搜索与TSNLocalEntityCompetition相关的任何线索
  • 从.xcodeproj包
  • 中删除了xcuserdata文件
  • 删除带有衍生物的文件夹,清理项目,警告仍在那里

我可以构建项目并毫无问题地运行应用程序。

git status

On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified:   TSN.xcworkspace/xcshareddata/TSN.xccheckout
modified:   TSN.xcworkspace/xcuserdata/slavik.xcuserdatad/UserInterfaceState.xcuserstate

no changes added to commit (use "git add" and/or "git commit -a")

5 个答案:

答案 0 :(得分:2)

如果您对合并感到满意(请与git diff一起检查),您需要添加,提交和推送已合并的文件:

git add --update
git commit -m "A merge commit message"
git push origin master

答案 1 :(得分:0)

我通过删除文件然后取消删除它来解决它。 确保备份更改(如果有)。

答案 2 :(得分:0)

你有未跟踪的.orig文件吗?试试git clean -f

答案 3 :(得分:0)

我有这个问题。在解决冲突之后,我所要做的就是提交我的更改。在终端

>>>cd myProjectFolder
>>>git commit -am "Fixed merge conflicts"

之后,警告就消失了。

答案 4 :(得分:-4)

我不得不从系统中删除xcode并再次安装。重置xcode设置没有帮助。

相关问题