Installation
CocoaPods
Section titled “CocoaPods”Add _.m and its dependency to your Podfile:
platform :iospod '_.m', '~> 0.1.0'pod 'SubjectiveScript.m', '~> 0.1.0'Then run:
pod installUse the generated .xcworkspace file for your project.
From GitHub
Section titled “From GitHub”- Clone the repository:
git clone https://github.com/kmalakoff/_.m.git-
Add files from the
Libdirectory to your Xcode project -
Add SubjectiveScript.m files from the Pods folder (or get from GitHub)
-
Import the header where needed:
#import "Underscore.h"Requirements
Section titled “Requirements”- ARC must be enabled
- iOS 5.0+ or macOS 10.7+
Dependencies
Section titled “Dependencies”_.m leverages:
- SubjectiveScript.m - For JavaScript-like syntax in Objective-C
- QUnit.m - For unit testing (development only)