Can't commit Xcode project with Git integration Can't commit Xcode project with Git integration xcode xcode

Can't commit Xcode project with Git integration


If your project is in /Developer/.... move it elsewhere and reopen the project. This may resolve your problem.

There seems to be a problem under Xcode 4.2 with projects in /Developer/... and git integration (you get the error "The operation could not be performed because no valid working copies were found. Please verify that your files are under source control and try again")


What's your Xcode version?Above Xcode4.0, Git repos will create when Xcode project created.

If you want to add git to an existing project, you should initialize it first.In project folder, typing:

git initgit add .git commit -m "your comment"

More information details, click here