The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Segment, reference master (4b0968), with Swift 6.3 for Wasm on 23 Apr 2026 07:01:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/segmentio/analytics-ios.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/segmentio/analytics-ios
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4b09689 fix borken links (#1068)
Cloned https://github.com/segmentio/analytics-ios.git
Revision (git rev-parse @):
4b0968947eb916b3a29d56bd5e17d620ff29a220
SUCCESS checkout https://github.com/segmentio/analytics-ios.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/segmentio/analytics-ios.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.m:9:
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:18:1: error: expected function body after function declarator
   18 | @protocol SEGApplicationProtocol <NSObject>
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:26:32: error: expected a type
   26 | - (void)seg_endBackgroundTask:(NSUInteger)identifier;
      |                                ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:26:1: error: missing context for method declaration
   26 | - (void)seg_endBackgroundTask:(NSUInteger)identifier;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:27:1: error: expected method body
   27 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:39:9: error: unknown type name 'NSString'
   39 | typedef NSString *_Nonnull (^SEGAdSupportBlock)(void);
      |         ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:53:1: error: expected function body after function declarator
   53 | @interface SEGAnalyticsConfiguration : NSObject
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:69:53: error: expected a type
   69 | + (_Nonnull instancetype)configurationWithWriteKey:(NSString *_Nonnull)writeKey defaultAPIHost:(NSURL *_Nullable)defaultAPIHost;
      |                                                     ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:69:97: error: expected a type
   69 | + (_Nonnull instancetype)configurationWithWriteKey:(NSString *_Nonnull)writeKey defaultAPIHost:(NSURL *_Nullable)defaultAPIHost;
      |                                                                                                 ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:69:1: error: missing context for method declaration
   69 | + (_Nonnull instancetype)configurationWithWriteKey:(NSString *_Nonnull)writeKey defaultAPIHost:(NSURL *_Nullable)defaultAPIHost;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:76:1: error: expected method body
   76 | @property (nonatomic, copy, readonly, nonnull) NSString *writeKey;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:82:1: error: unexpected '@' in program
   82 | @property (nonatomic, copy, readonly, nullable) NSURL *apiHost;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:89:1: error: unexpected '@' in program
   89 | @property (nonatomic, assign) BOOL shouldUseLocationServices;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:94:1: error: unexpected '@' in program
   94 | @property (nonatomic, assign) BOOL enableAdvertisingTracking;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:99:1: error: unexpected '@' in program
   99 | @property (nonatomic, assign) NSUInteger flushAt;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:107:1: error: unexpected '@' in program
  107 | @property (nonatomic, assign) NSTimeInterval flushInterval;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:112:1: error: unexpected '@' in program
  112 | @property (nonatomic, assign) NSUInteger maxQueueSize;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:117:1: error: unexpected '@' in program
  117 | @property (nonatomic, assign) BOOL trackApplicationLifecycleEvents;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsConfiguration.h:123:1: error: unexpected '@' in program
  123 | @property (nonatomic, assign) BOOL shouldUseBluetooth;
      | ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/26] Compiling SEGAnalyticsConfiguration.m
/host/spi-builder-workspace/Segment/Classes/SEGAnalytics.m:1:9: fatal error: 'objc/runtime.h' file not found
    1 | #import <objc/runtime.h>
      |         ^~~~~~~~~~~~~~~~
1 error generated.
[0/26] Compiling SEGAnalytics.m
In file included from [0/26] Compiling UIViewController+SEGScreen.m
[0/26] Compiling SEGState.m
[0/26] Compiling SEGUserDefaultsStorage.m
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUtils.m:6:
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:6:1: error: use of '@import' when modules are disabled
    6 | @import Foundation;
      | ^
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUtils.m:6:
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUtils.h:7:
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:1:1: error: use of '@import' when modules are disabled
    1 | @import Foundation;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:3:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
    3 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:7:26: error: unknown type name 'BOOL'
    7 | void SEGSetShowDebugLogs(BOOL showDebugLogs);
      |                          ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:8:13: error: unknown type name 'NSString'
    8 | v[0/26] Compiling SEGUtils.m
/host/spi-builder-workspace/Segment/Classes/SEGSegmentIntegration.m:1:10: fatal error: 'sys/sysctl.h' file not found
    1 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~
1 error generated.
[0/26] Compiling SEGSegmentIntegration.m
[0/26] Compiling SEGStoreKitTracker.m
BUILD FAILURE 6.3 wasm