Append pod 'GRMustache', '~> 7.3.2'
to your Podfile.
The distribution includes pre-built static libraries:
-
Clone the repository with the
git clone https://github.com/groue/GRMustache.git
command. -
Embed GRMustache in your Xcode project:
- For MacOS development, add
include/GRMustache.h
andlib/libGRMustache7-MacOS.a
to your project. - For iOS development, add
include/GRMustache.h
andlib/libGRMustache7-iOS.a
to your project.
NB: If you have GRMustache files copied in your project, you'll need to copy all header files of the
include
directory, not onlyGRMustache.h
. - For MacOS development, add
-
Edit your target settings, and pass the
-ObjC
option in the "Other Linker Flags" (how to).
The armv6 slice is not included. In order to target this architecture, you have to compile GRMustache yourself (see below), or to use CocoaPods (see above).
When pulling the master
branch of GRMustache, you'll get the latest stable release. Should a new major version be shipped, you may pull incompatible changes. In order to prevent this, checkout and pull the GRMustache7
branch:
$ git clone https://github.com/groue/GRMustache.git
$ cd GRMustache
$ git checkout -b GRMustache7 origin/GRMustache7
$ git pull # checkout the latest version 7
You may also embed the raw GRMustache sources in your project:
$ git clone https://github.com/groue/GRMustache.git
$ cd GRMustache
$ git checkout v7.3.2 # checkout the latest stable release
$ git submodule update --init src/vendor/groue/jrswizzle
Add all files of src/classes
plus src/vendor/groue/jrswizzle/JRSwizzle.*
to your project.
If your project uses ARC, flag the source files with the -fno-objc-arc
compiler flag (how to).
In your own sources, avoid importing header files whose name ends with _private.h
: those are private headers that may change, without notice, in future releases.