User Tools

Site Tools


Sidebar

Go Back

Refresh

You are not allowed to add pages

Direct Link

library:swift:swiftgit2

SwiftGit2

Reference to SwiftGit2

1. Build SwiftGit2

1.1 Required Tools

To build SwiftGit2, you'll need the following tools installed locally:

  • cmake
  • libssh2
  • libtool
  • autoconf
  • automake
  • pkg-config
brew install cmake libssh2 libtool autoconf automake pkg-config

* Install brew if necessary:

/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"

1.2 Optional Tools

  • SwiftLint
brew install SwiftLint 

1.3 Building SwiftGit2 Manually

If you want to build a copy of SwiftGit2 without Carthage, possibly for development:

  1. Clone SwiftGit2, run git clone https://github.com/SwiftGit2/SwiftGit2.git
  2. Clone the submodules, run git submodule update –init –recursive
  3. Build in Xcode
library/swift/swiftgit2.txt · Last modified: 2022/12/09 19:50 by lhaosen