-
Notifications
You must be signed in to change notification settings - Fork 71
Manual installation instructions
Follow the steps below if you'd prefer to include the SDK manually, without a dependency manager:
-
Navigate to the releases section and download the
manual-install.zip
attached to the latest release. -
The manual-install archive contains the following:
-
Simulator/mParticle_Apple_SDK.framework
- dynamic framework containing all valid architectures for both the simulator and physical devices. -
App Store/mParticle_Apple_SDK.framework
- this does not contain the simulator architecture. Use this.framework
when shipping to the App Store.
-
-
Move
mParticle_Apple_SDK.framework
into your project directory. Note that the framework must be located in the same directory as your project (.xcodeproj or .xcworkspace), or in a nested directory. -
In Xcode navigate to the
Embedded Binaries
section under the General configuration tab of your project and add themParticle_Apple_SDK.framework
-
Add the following required dependencies to
Linked Frameworks and Libraries
:Accounts.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:
AdSupport.framework
iAd.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:
- In your Xcode project, navigate to your target->Build Settings
- Search for "GCC_PREPROCESSOR_DEFINITIONS"
- Click the + button and add
MPARTICLE_MANUAL_INSTALL
to the list
- See here for all kit repositories
- Each repository contains a directory ie "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.
You will receive an error if you attempt to submit to the App Store including Simulator/mParticle_Apple_SDK.framework
- simply swap it out for App Store/mParticle_Apple_SDK.framework
when you're ready to submit.