Skip to content

Multi platform Configuration

Dalmo Cirne edited this page May 16, 2016 · 2 revisions

Multi-platform Configuration

If your app is targeting iOS and tvOS in the same Xcode project, you will need to configure the Podfile differently in order to use the SDK with multiple platforms.

Below you can find a multi-platform sample Podfile configuration targeting iOS and tvOS.

source 'https://github.com/CocoaPods/Specs.git'

inhibit_all_warnings!

# Replace with the name of your Xcode project name or a name of your choice
abstract_target '<Your Xcode Project Name>' do
    use_frameworks!
    pod 'mParticle-Apple-SDK', '~> 6'

    # Replace with the name of the iOS target in your Xcode project
    target '<Your iOS Target>' do
        platform :ios, '8.0'
    end

    # Replace with the name of the tvOS target in your Xcode project
    target '<Your tvOS Target>' do
        platform :tvos, '9.0'
    end
end
Clone this wiki locally