[英]Git, tree conflict in Content.json file in Xcode 7
I have a tree conflict in Content.json files in Image.xcassets while pulling the code from another branch. 我在Image.xcassets中的Content.json文件中存在树冲突,同时从另一个分支中提取代码。 I have pretty much tried everything that I could find online but nothing helped.
我几乎尝试过我能在网上找到的所有内容,但没有任何帮助。 Apparently the conflict is in only 3 files but I am not sure which ones of all the Content.json files in the project.
显然冲突只有3个文件,但我不确定项目中所有Content.json文件中的哪些文件。
I have also tried by adding the Image.xcassets in gitignore file. 我也试过在gitignore文件中添加Image.xcassets。 But still nothing helped.
但仍然没有任何帮助。
I am a bit new to source code versioning, so please help. 我对源代码版本控制有点新,所以请帮忙。
A very late answer, but could be useful so... 答案非常晚,但可能有用......
I just had almost the same problem using Xcode 7.2. 我使用Xcode 7.2时遇到了几乎相同的问题。 For me there were two steps to resolving this issue:
对我来说,有两个步骤可以解决这个问题:
After doing this, I found that although there were no more tree conflicts, I got a warning that a single Contents.json was still being reported as conflicted. 执行此操作后,我发现虽然没有更多的树冲突,但我收到一个警告,单个Contents.json仍然被报告为冲突。 So, on to step number 2!
所以,到第2步!
And that resolved this issue! 这解决了这个问题! Good luck.
祝好运。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.