CocoaPods: The Objective-C Library Manager allows you to manage the library dependencies of your iOS Xcode project. You can use CocoaPods to install MobileAppTracking iOS SDK and required system frameworks.
If you have already installed CocoaPods then you can skip this step.
$ [sudo] gem install cocoapods
$ pod setup
Once CocoaPods has been installed, you can include MAT iOS SDK to your project by adding a dependency entry to the Podfile in your project root directory.
$ edit Podfile
platform :ios, '8.0'
pod 'MobileAppTracker'
This sample shows a minimal Podfile that you can use to include MAT iOS SDK dependency to your project. You can include any other dependency as required by your project.
Now you can install the dependencies in your project:
$ pod install
Once you install a pod dependency in your project, make sure to always open the Xcode workspace instead of the project file when building your project:
$ open App.xcworkspace
Now you can import MobileAppTracker in your source files:
@import MobileAppTracker;
OR
#import <MobileAppTracker/MobileAppTracker.h>
At this point MAT iOS SDK is ready for use in your project.
Refer MAT SDK Integration Document for help on measuring installs and events using the MAT iOS SDK.