Following the End-of-Support (EoS) for the core Analytics-iOS SDK in March 2026, this legacy integration repository is also deprecated and will no longer receive updates.
Segment's future development efforts are concentrated on the new Analytics-Swift ecosystem.
- To migrate your core SDK, please see the Analytics-iOS to Analytics-Swift migration guide.
- To find the modern Swift equivalent for this specific integration, check the Analytics-Swift Destination Plugins list.
This integration needs special care when building with anything lower than Xcode 12 due to the ComScore SDK.
When using Xcode 11 or lower, you will need to add the following as the first line of your [CP] Embed Pods Frameworks phase:
export ARCHS="$(ARCHS_STANDARD)"
To run the example project, clone the repo, and run pod install from the Example directory first.
To install the Segment-ComScore integration, simply add this line to your CocoaPods Podfile:
pod "Segment-ComScore"After adding the dependency, you must register the integration with our SDK. To do this, import the ComScore integration in your AppDelegate:
#import <Segment-ComScore/SEGComScoreIntegrationFactory.h>
And add the following lines:
NSString *const SEGMENT_WRITE_KEY = @" ... ";
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];
[config use:[SEGComScoreIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];
Segment-ComScore is available under the MIT license. See the LICENSE file for more info.