SDK Installation

Glazum works with iOS 6+, armv7+armv7s and arm64, with both device and simulator support. Integrating Glazum into your project is very easy. You can do it:

CocoaPods integration

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like Glazum in your projects.

Download CocoaPods

CocoaPods is distributed as a ruby gem, and is installed by running the following commands in Terminal.app:
$ sudo gem install cocoapods
$ pod setup

Create a Podfile

Project dependencies to be managed by CocoaPods are specified in a file called Podfile. Create this file in the same directory as your Xcode project (.xcodeproj) file:
$ edit Podfile
pod 'Glazum', '~> 0.4'

Install Dependencies

Now you can install the dependencies in your project:
$ pod install
From now on, be sure to always open the generated Xcode workspace (.xcworkspace) instead of the project file when building your project:
$ open YourProject.xcworkspace

Manual integration

Step 1: Download Glazum SDK

Download the Glazum-iOS-SDK-0.4.zip archive and unpack it.

Alternatively you can get the SDK from GitHub.

An example of Glazum API usage you can also find on GitHub.

Step 2: Add Glazum to Your Project

Simply drag "Glazum.framework" folder into your opened XCode project Navigator. A dialog will appear. Check that the options there are set as follows::

  • Destination ☑ Copy items into destination group's folder (if needed) [Checked]
  • Folders ◉ Create Groups for any added folders [Top Item Selected]
  • Add to Targets ☑ (Project Name) [All Targets Selected]

Finally, click "Finish". The Glazum framework will be added to your project files.

Step 3: Add CoreGraphics dependency

Glazum framework depends on CoreGraphics.framework. Add it to your project by selecting it from the list of frameworks in Link Binary With Libraries.

Step 4: Check That Everything Is Working

That's all. Try building the project. Select "Project > Build", or use the keyboard shortcut ⌘B.

At this point, everything's in place for you to start using Glazum. Please read SDK usage to learn how to set Glazum markers in the code.