简体   繁体   English

Xcode / Git存储库设置问题

[英]Xcode/Git Repository Settings Issue

I'm currently on a team of two (including myself) iOS developers. 我目前由两个(包括我自己)iOS开发人员组成的团队。 Every time one of us pushes and the other pulls, everything works fine but git shows immediate changes to the Project.xccheckout, with the following result from my git diff : 每当我们一个人推而另一个人推时,一切正常,但是git显示对Project.xccheckout的立即更改,我的git diff得到以下结果:

<false/> <key>IDESourceControlProjectIdentifier</key> <string>XXXXX-XXXX-XXXX-XXXX-XXXXXXXXX</string> + <key>IDESourceControlProjectName</key> + <string>XXXXX</string> <key>IDESourceControlProjectOriginsDictionary</key> <dict> <key>XXXXXXXXXXXXXX</key> - <string>github.com:XXXXX/iOS.git</string> + <string>https://github.com/XXXXX/iOS.git</string> </dict> + <key>IDESourceControlProjectPath</key> + <string>XXXXX.xcworkspace</string> <key>IDESourceControlProjectRelativeInstallPathDictionary</key> <dict> <key>XXXXXXXXXXXXXXXXXXX</key> - <string>ios/</string> + <string>..</string> </dict> <key>IDESourceControlProjectURL</key> - <string>github.com:XXXX/iOS.git</string> + <string>https://github.com/XXXX/iOS.git</string> <key>IDESourceControlProjectVersion</key> <integer>111</integer> <key>IDESourceControlProjectWCCIdentifier</key>

When I push and he pulls, he basically gets the opposite (if I were to commit the changes and push them up). 当我推而他拉时,他基本上会遇到相反的情况(如果我要提交更改并将其向上推)。 I had originally set up my local git to use HTTPS, whereas the other dev used SSL - and I suspect the issue was there. 我最初将本地git设置为使用HTTPS,而另一个开发人员使用了SSL-我怀疑问题就在那里。 I tried to change my git config to use SSL instead, and I thought that would fix the issue, but it still remains. 我试图将我的git config改为使用SSL,但我认为这可以解决问题,但仍然存在。 When I do git remote -v , the result is: 当我执行git remote -v ,结果是:

origin git@github.com:XXXXX/iOS.git (fetch) origin git@github.com:XXXXX/iOS.git (push)

Which it seems to me would have fixed the issue, as this indicates I'm using SSL vs. the result prior which was: 在我看来,该问题已得到解决,因为这表明我使用的是SSL与之前的结果:

origin https://github.com/XXXXX/iOS.git (fetch) origin https://github.com/XXXXX/iOS.git (push)

Does anyone know what the cause of this issue is, or how to resolve it? 有谁知道这个问题的原因是什么,或者如何解决? I'm going freaking nuts having to clean out these useless changes all day. 我整日不得不清理掉这些无用的更改,实在令人发疯。

如对原始问题的注释所示,解决此问题的方法是确实向* .gitignore添加* .xccheckout,到目前为止,我们还没有任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM