We currently have two Swift / XCode projects with some common code. We currently use git submodules that work fine, but we are exploring whether we can use Carthage to simplify / unify the use of frameworks / common code. However, I had problems setting up a shared library and being able to run local code locally and at the same time check the assembly of the framework + code and get it from Bitbucket via Carthage. Since I have the code obtained through Carthage (in the folder Build), as well as the source shared code, located in a separate folder. My questions:
What structure can I use in my Xcode project without sharing? If I refer to a local project, Carthage is not used. If I refer to the code and framework in Carthage/Checkoutsand Carthage/Build, I assume that I will have problems when I want to change the general code. Or should I merge these folders into one ( Cartage/Build)?
Can a Git / Carthage like git submodules automatically point to different commits in a shared-code-project? I see that Carthage allows you to specify a specific commit or version, but I think I need to manually update this every time I change the general code? Feels bulky!
Can these problems be resolved? Or should we stick with git submodules?