-
Notifications
You must be signed in to change notification settings - Fork 66
Multi platform Configuration
Dalmo Cirne edited this page Apr 27, 2016
·
2 revisions
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
xcodeproj '<Your Xcode Project Name>'
# Contains a list of all pods which are common among the platforms
def include_common_pods
pod 'mParticle-Apple-SDK', '~> 6'
end
# iOS app
target :phoneApp do
# Replace with the name of the iOS target in your Xcode project
link_with '<Your iOS Target>'
use_frameworks!
platform :ios, '8.0'
include_common_pods
end
# tvOS app
target :tvApp do
# Replace with the name of the tvOS target in your Xcode project
link_with '<Your tvOS Target>'
use_frameworks!
platform :tvos, '9.0'
include_common_pods
end