user1473113
user1473113

Reputation: 11

Xcode Git Submodule Commit Issue

What I did

Now Is my problem

What I did to resolve the problem

I use git from the command line in my parent project folder: git add . git commit -am "Core has been modified"

When I use this, I can access my to repository from the pull interface, that confirm that all change has been committed.

The real Problem

My company would like to make that work only with the Xcode SCM tool. The problem seems to be linked to the use of "Submodule" How can I make it work without the use of the Command Line

Upvotes: 0

Views: 1708

Answers (2)

Stefc
Stefc

Reputation: 73

We have the same problem. It's like a small bug in XCode. Our workaround at the moment is the same as you mentioned and the only solution would be a bugfix or enhancement how XCode support

Our workflow looks like the following :

-commit submodule changes with XCode -commit main changes with XCode -commit main directory change with CLI ( git commit ) -push main & submodule with XCode

we hope that this small bug would be fixed in the future directly in XCode

Upvotes: 2

Dietrich Epp
Dietrich Epp

Reputation: 213328

When you make a commit in a submodule, it shows up as a change in the parent.

The solution is to make changes to the submodule first, then commit the changes to the parent. This way all of your changes to the submodule will get bundled into the parent project commit.

Upvotes: 1

Related Questions