简体   繁体   中英

Xcode/Git Repository Settings Issue

I'm currently on a team of two (including myself) iOS developers. 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 :

<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. I tried to change my git config to use SSL instead, and I thought that would fix the issue, but it still remains. When I do git remote -v , the result is:

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:

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,到目前为止,我们还没有任何问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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