Reputation: 7032
I'm having problems to deal with Git repos, Cocoa Pods, and Xcode 9. After creating the Xcode project and added the pod frameworks I'm getting this error when trying to import into source control and Github:
The working copy of "ProjectX" failed to commit files.
error: pathspec 'path/to/pod/files' did not match any file(s) known to git.
I'm also having the same problem with an asset, but that one I can simply delete it and add it again.
How could I import to GitHub source control the whole workspace? Is it possible?
Just tried the following steps:
Everything works fine this way, but what if instead of creating the project remote after adding cocoa pods, we do it before? I did that and that way doesn't work.
Upvotes: 5
Views: 3215
Reputation: 1
git status
- you will get to know the changes done to your projectgit add .
git commit -m"your message"
git push origin master
Once you manually commit all the changes successfully from the terminal, then you can use source control in xcode.
Upvotes: 0
Reputation: 4074
This may be a case issue try running below command to change git case setting and then your commit file after this.
git config core.ignorecase false --global
or try by below one if above one doesn't work
git commit -m "<commit message>" <project directory path>
Upvotes: 5