创建项目时发生XCode 6.0.1错误:不存在 [英] XCode 6.0.1 error when creating project: The file "exclude" doesn't exist

查看:85
本文介绍了创建项目时发生XCode 6.0.1错误:不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在XCode 6.0.1中创建新项目时,出现以下错误消息:文件"exclude"不存在

When I create a new project in XCode 6.0.1, I got this error message: The file "exclude" doesn't exist

这似乎只会影响文件的版本控制,即在创建项目后,生成的存根文件不会提交到github中.

It seems to only impact the versioning of the files i.e. the generated stub files are not committed into github after the project is created.

什么会导致此问题?

推荐答案

我也遇到了这个问题,并将其追溯到Thoughtbot的

I had this issue as well, and I tracked it down to the .git-template folder included with Thoughtbot's dotfiles. Basically, Xcode expects its template folder to have info/exclude, and Thoughtbot's dotfiles don't. Creating that directory and file fixed the problem, as so (in the Terminal):

cd ~/.git_template
mkdir info
cd info
touch exclude

如果在没有Thoughtbot的点文件的情况下遇到此问题,则可以查看~/.gitconfig并使用在第一个命令中设置为templatedir的任何内容,而不是~/.git_template.

If you're getting this issue without Thoughtbot's dotfiles, you could probably look at ~/.gitconfig and use whatever templatedir is getting set as instead of ~/.git_template in the first command.

这篇关于创建项目时发生XCode 6.0.1错误:不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆