The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Segment, reference 4.1.8 (78423a), with Swift 6.3 for macOS (SPM) on 23 Apr 2026 07:15:22 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/segmentio/analytics-ios.git
Reference: 4.1.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/segmentio/analytics-ios
 * tag               4.1.8      -> FETCH_HEAD
HEAD is now at 78423aa Prepare for release 4.1.8.
Cloned https://github.com/segmentio/analytics-ios.git
Revision (git rev-parse @):
78423aaae2e48e32a07246850f37c76f3d34cb84
SUCCESS checkout https://github.com/segmentio/analytics-ios.git at 4.1.8
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "analytics-ios",
      "name": "Segment",
      "url": "https://github.com/segmentio/analytics-ios.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/analytics-ios",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/segmentio/analytics-ios.git
[1/19667] Fetching analytics-ios
Fetched https://github.com/segmentio/analytics-ios.git from cache (15.93s)
Creating working copy for https://github.com/segmentio/analytics-ios.git
Working copy of https://github.com/segmentio/analytics-ios.git resolved at 4.1.8 (78423aa)
warning: '.resolve-product-dependencies': dependency 'analytics-ios' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/segmentio/analytics-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/26] Compiling SEGGroupPayload.m
[1/26] Compiling SEGFileStorage.m
[2/26] Compiling SEGUserDefaultsStorage.m
[3/26] Compiling SEGAES256Crypto.m
[4/26] Compiling SEGContext.m
[5/26] Compiling NSData+SEGGZIP.m
[6/26] Compiling SEGTrackPayload.m
[7/26] Compiling UIViewController+SEGScreen.m
[8/26] Compiling SEGAnalyticsUtils.m
[9/26] Compiling SEGScreenPayload.m
[10/26] Compiling SEGStoreKitTracker.m
[11/26] Compiling SEGState.m
[12/26] Compiling SEGSegmentIntegration.m
/Users/admin/builder/spi-builder-workspace/Segment/Classes/SEGReachability.m:26:9: error: use of private header from outside its module: 'netinet6/in6.h' [-Wprivate-header]
   26 | #import <netinet6/in6.h>
      |         ^
In file included from /Users/admin/builder/spi-builder-workspace/Segment/Classes/SEGReachability.m:26:
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/usr/include/netinet6/in6.h:94:2: error: "do not include netinet6/in6.h directly, include netinet/in.h. "         " see RFC2553"
   94 | #error "do not include netinet6/in6.h directly, include netinet/in.h. " \
      |  ^
2 errors generated.
[13/26] Compiling SEGReachability.m
[13/26] Compiling SEGIdentifyPayload.m
[13/26] Compiling SEGMiddleware.m
[13/26] Compiling SEGSegmentIntegrationFactory.m
[13/26] Compiling SEGWebhookIntegration.m
[13/26] Compiling NSViewController+SEGScreen.m
[13/26] Compiling SEGPayload.m
[13/26] Compiling SEGIntegrationsManager.m
[13/26] Compiling SEGHTTPClient.m
[13/26] Compiling SEGUtils.m
BUILD FAILURE 6.3 macosSpm