-
Notifications
You must be signed in to change notification settings - Fork 66
Manual installation instructions
Follow the steps below if you'd prefer to include the SDK manually, without a dependency manager:
-
Add mParticle as a submodule of your project:
git submodule add https://github.com/mParticle/mparticle-apple-sdk
If you prefer not to use submodules, you can simply copy the files into your repository.
-
Drag
mParticle-Apple-SDK.xcodeproj
into your project in Xcode -
In Xcode, navigate to the
Embedded Binaries
section under the General configuration tab of your project. Then drag inmParticle_Apple_SDK.framework
from theProducts
directoryThere are two versions of the framework, one for iOS and the other for tvOS. You can tell them apart using Xcode's file inspector (Command+Option+1)
-
Add the following required dependencies to
Linked Frameworks and Libraries
:AdSupport.framework
CoreGraphics.framework
CoreTelephony.framework
Foundation.framework
libc++
libsqlite3
libz
Security.framework
SystemConfiguration.framework
UIKit.framework
-
The following libraries should be included in your project, but can be marked as optional:
iAd.framework
UserNotifications.framework
-
The following library is optional:
-
CoreLocation.framework
- Include it if location tracking features are needed
-
If you would like to additionally include any kits there are several additional steps:
- See here for all kit repositories
- Each repository contains a directory e.g. "mParticle-Localytics", which contains the code for the kit (typically MPKitFoo.h and .m).
- Download the latest code from step 2 and drag it into your project
This will typically involve downloading their framework and including it in your project along with adding any additional dependencies that don't overlap with mParticle's dependencies.