Git failed to recognize adding .xcscheme files to xcode project

Added a new schema matching the test target in my xcode project. The newly created xcscheme file is not reflected in git. Also, running git status shows me not committing anything, working directory clean .

Trying to add it via terminal using git add .xcscheme says

The following paths are ignored by one of your .gitignore files: MyProject.xcodeproj / xcshareddata / xcschemes / MyProjectTests.xcscheme Use -f if you really want to add them

When checking my .gitignore file, it is completely empty.

I have looked at posts that require schemas to be split, but that didn't help. Went through this thread, Bitbucket was showing no changes to the theme directory . But for me there are no .git or .gitignore files inside any .xcodeproj file or xcschemes directory.

How can I remove these restrictions so that I can add a new xcscheme file to the repo, or are there any other settings I need to change?

+3


source to share


2 answers


There are several places for gitignore settings. Check them all.



See documentation such as http://git-scm.com/docs/gitignore

+1


source


although it was already received ... for me it was

make sure your schema is set to "Shared". Dropdown list of schemes → control schemes → check the box "General" for the schemes you want to commit.



hope this helps someone :)

+1


source







All Articles