Xcode 6.0.1 error creating project: exclude file does not exist

When I create a new project in Xcode 6.0.1, I received this error message: File "exclude" does not exist

enter image description here

It seems that this only affects file versioning, i.e. the generated stub files are not transferred to github after the project is created.

What can cause this problem?

+7
xcode6
source share
2 answers

For me, the problem was caused by the fact that I had previously created a project with the same name, and Xcode was still recording this.

To clean it,

  • go to the window β†’ Organizer in the menu bar
  • Delete all repositories highlighted in red

To add your repository (if it is not being tracked for any reason),

  • Click the + button (still in the window β†’ Organizer using the steps above)
  • Enter file path
  • Be sure to change to Git from Subversion (if Xcode is set to Subversion as the default, that was for me.

I usually get this error if I initialize the Xcode project with a Git repository, delete it and try to recreate it with the same name (the doens't shell seems to make it quite β€œdifferent”). It turns out, "Well, I'll just get started," may leave some problems.

Hope this helps.

0
source share

I had this problem too and tracked it down to the .git-template folder included in Thoughtbot dotfiles . Basically, Xcode expects its template folder to have info/exclude , while Thoughtbot dotfiles will not. Creating this directory and file fixed the problem since (in the terminal):

 cd ~/.git_template mkdir info cd info touch exclude 

If you get this problem without Thoughtbot dotfiles, you can probably look at ~/.gitconfig and use whatever templatedir gets instead of ~/.git_template in the first command.

0
source share

All Articles