Xcode project: not able to pull from GitHub repository

I am working with a friend on a project in Xcode and when I try pulling from the GitHub repository I keep getting the error “Make sure a valid repository exists at the specified location and that the correct credentials have been supplied.” I have tried everything and cannot seem to make this work. Anyone got any idea on how to go about this?