简体   繁体   English

Xcode 7在源代码管理中无法正常工作

[英]Xcode 7 not working properly with source control

I just updated to Xcode 7, all system is updated, including command line tool, repaired disk permissions. 我刚刚更新到Xcode 7,所有系统都更新了,包括命令行工具,修复的磁盘权限。 And I still have several issues with that Xcode. 而且,该Xcode仍然存在一些问题。

I am using GIT, but when I launch my project Xcode is ALWAYS asking me to upgrade to Subversion 1.7 even when I click on "Don't warn me again for this workspace" he does not remember. 我正在使用GIT,但是当我启动我的项目Xcode时,总是要求我升级到Subversion 1.7,即使我单击“不要再对此工作空间警告我”,他也不记得了。

在此处输入图片说明

When I quit and relaunch Xcode do not use my credential for GIT when I push he ALL the time ask me to type them. 当我退出并重新启动Xcode时,当我一直推他时,请不要使用我的GIT凭据。

When I go to preferences it builds up a stack of ghost buggy accounts... 当我转到首选项时,它会建立一堆虚幻的越野车帐户。

在此处输入图片说明

And when I go to github, I realised that Xcode do not send my user.email when committing and pushing as I got a default email of ganzolo@noreply.github.com. 当我转到github时,我意识到Xcode在提交和推送时不会发送user.email,因为我收到的默认电子邮件为ganzolo@noreply.github.com。

It's really annoying and buggy, does anybody have a clue? 这真是令人讨厌和马车,有人知道吗?

I've removed SVN but still when I am doing a regular commit from command line (Git uses my user.email), when I am doing from Xcode he send like anonymous, really annoying. 我已经删除了SVN,但是当我从命令行进行常规提交时(Git使用我的user.email),当我从Xcode执行时,他像匿名用户一样发送,这确实很烦人。

在此处输入图片说明

You must have a subversion repo in your source tree, possibly in a 3rd-party library, that you are unaware of. 您必须在源树中(可能是在第3方库中)没有意识到的Subversion存储库。

Go to Terminal and do this to upgrade it: 转到终端并执行以下操作以升级它:

$ cd /path/to/sourcetree
$ find . -name .svn

If you get a hit then: 如果您获得成功,那么:

$ svn upgrade path/of/svnrepo

Better still dump the .svn directory and use git all the way through, if this 3rd-party library is also part of your permanent source tree. 如果此第三方库也是永久性源代码树的一部分,最好还是转储.svn目录并始终使用git。

Thanks to this post I found a solution : 由于这篇文章,我找到了一个解决方案:

https://stackoverflow.com/a/32546171/706189 https://stackoverflow.com/a/32546171/706189

It appears that Xcode have a bug and do not read global user.name and user.email. 似乎Xcode有一个错误,并且不读取全局user.name和user.email。 Therefor you need to set it locally in your root folder project. 因此,您需要在根文件夹项目中本地设置它。

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

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