Skip to content
Daniel Dahan edited this page Jun 18, 2016 · 6 revisions

Example Projects

  1. Open the Material workspace in the Examples directory.

  2. Compile the Material.framework project by choosing the scheme in the Xcode navigation bar. The device needs to be on Generic Device, or an actual iOS device, not simulator.

  3. Click on the project you want to run in the examples directory.

  4. Open the 'General' page in the project inspector.

  5. Go to Embedded Binaries, and add the Material.framework binary.

  6. Choose the project scheme in the top navigation bar that you want to run.

  7. Press run.

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.0.0+ is required to build Material 1.0.0+.

To integrate Material into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Material', '~> 1.0'

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Material into your Xcode project using Carthage, specify it in your Cartfile:

github "CosmicMind/Material"

Run carthage update to build the framework and drag the built Material.framework into your Xcode project.

Clone this wiki locally