Skip to content
way-to-code edited this page Jul 31, 2021 · 6 revisions

Table of contents

  1. About
  2. Appstore notes
  3. Documentation
    1. Basics
    2. Clone
    3. Samples

About

Git.framework is a high level wrapper for git executable for macOS written in Swift. It works with installed git and executes git commands by spawning new processes and using well made git command design.

If git executable is not installed in the system, Git.framework won't work for you.

The goal of this project is to create a simple wrapper for command line utils that should help in calling git from Swift.

Appstore notes

Initially Git.framework was created to be used in local environment with no intention to go Appstore.

First of all, In MacOS when you submit an app to Appstore, you must turn on Application Sandbox feature. xcrun can not run executables while Sandbox is active. This makes the usage of Git.framework not suitable for Appstore. Only direct distribution by downloading a file from a website. Secondly, XPC Service may be required instead of using xcrun for Appstore distribution. You may read more about XPC here.

If Appstore is your choice, you can try another options like Swift bindings to libgit2.

Documentation

Clone this wiki locally