I am trying to get GitHub working through Xcode and have been having quite a bit of trouble. When I click commit (under File/Source Control) I get this error message:
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.
This happens whether I create a new project and click the "create with local git repository" box, or if I clone an existing project from github using the organizer's repository tab.
For some reason I am able to commit if I am in the organizer in the repositories tab, have my projects folder under the repository selected and click commit. This works, but from there I cannot push my update to github, since the push option is "grayed out" in the file menu.
Can anyone help me fix this? I would love to be able to push updates right through Xcode.
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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With