What alternatives do I have for source control and does GIT does that?

Posted by RubberDuck on Stack Overflow See other posts from Stack Overflow or by RubberDuck
Published on 2013-10-20T09:52:46Z Indexed on 2013/10/20 9:53 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
|

I work as a freelancer programmer for some clients and also create apps for myself. When I work for myself, obviously I work alone. I generally don't work in a linear way.

My big problems today are:

  1. I have a lot of apps that use the same classes I have developed;
  2. In the past, I put all these common classes on a directory outside all projects and included them on my apps using absolute paths, but this method sucks because by accident (if you forget) you may change a path or the disk and all projects are broken. Then I decided to copy those classes to my projects every time. Because the majority of these classes do not change frequently, I am relatively ok, but when they change, I am in hell;
  3. When I change one of these classes I have to propagate the changes to all other apps using copies of them.

I have also tried to create frameworks but thanks to Apple, I cannot create frameworks for iOS and have to create libraries and bundles and create a nightmare of paths from one to the other and to the project to make that sh!t works. So, I am done with frameworks/libraries on Xcode until Xcode is a decent IDE.

So, I see I need something better to manage my source code.

What I need is this (I never used GIT on Xcode. I have read Apple docs but I still have these points):

  1. does git locally on Xcode allows me to deal with assets or just code?
  2. Can I have the equivalent of a "framework" (code + assets) managed by git locally?
  3. Can an entire xcodeproj be managed as a unity? I mean, Suppose I have a xcodeproj created and want GIT to manage it.
  4. How do I enable git on a project that was created without it and start designating files for management. (I have enabled git on Xcode's preferences, but all source control menu is grayed out).
  5. Is git the best option? Do I have another?

Remember that my main condition is that the files should stay on the local computer.

Please save me (I am a bit dramatic today).

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios