The ultimate xcode workflow


Spend zero time managing dependencies. Build speed is almost down to zero even for big projects, and 99.99% of my time is spent coding.

Wants:

  • Ability to Build from .framework (because of zero to low build times)
  • Synchronize source code across projects autonomously (many to many sync)
  • Synchronize directly to 1 singular origin repo at github (version control)
  • Full SPM integration (Sharing code w/ Community)
  • Ability to edit external framework code directly inside app projects, and automatically sync back to origin.
  • Playground friendly (You are building .frameworks so it works in playground)
  • iOS support (macOS only, 🍏 is working on πŸ“± support experimental )

To achieve this: Read my series on SPM (Swift package manager) and use gitsync.io

SPM Series:

Scenario:

Problem:
You have a Testing xcode project, A Library xcode project and an App xcode project. You want to fix a problem in your Library. And you want to test if the fix works, if it does you want to see that change in the app project.

Solution:
This would require an enormous amount of work to achieve. Even the simplest variable change would take 15 minutes to propagate and be perfectly aligned in all projects and git repos etc etc. All this is automatic with GitSync + SPM. You simply change the lib hit cmd save in xcode and all the other projects are synced within seconds. Just switch tab and see the changes be reflected. Then just run your test and your app and .frameworks will be rebuilt and source is up today. Thats not all. You don’t have to edit your code in your test library. You can edit the lib code right in your app code. GitSync syncs uni-directionally. πŸ‘Œ

Related Posts

Infinite Tree List

My notes on Infinite tree list

Protocol Inheritance

My notes on Protocol Inheritance

Protocol Ambiguity

How to differentiate protocol ambiguity

Faster Xcode With Spm

How you can speed up compile times in XCode with Swift Package Manager

Spm And Ci Travis

My notes on Swift PM + CI Travis

Spm And Nested Frameworks

My notes on Swift package manager + XCode + Nested frameworks

Xcode And Spm

Here is how you use Swift package manager in your XCode app projects

Carthage And Nested Frameworks

A few workflows concerning Carthage and nested framework

Two Finger Swipe

Notes on implementing two finger swipe for macOS

Switch

Notes about the Switch component