Instructions on how to add a Git repository (named RepositoryName) to your Xcode project
-
Download
From the root directory of your project's main Git repository, run:
git submodule add git://github.com/acani/RepositoryName.git Libraries/RepositoryName -
Install
From Finder, drag the newly created directory to your project's project navigator in Xcode.
Uncheck "Copy items if needed," select "Create groups," and uncheck all targets.
In Xcode, remove the reference to
RepositoryName/.gitignore.Add the Swift files (pattern:
RepositoryName/*.swift) to your target. -
Use
See
RepositoryName/README.mdfor usage information. -
Update
Run
git pullfromLibraries/RepositoryName.If that adds, moves, or removes any files, update your Xcode project accordingly.