Build Information
Failed to build Segment, reference 4.1.8 (78423a), with Swift 6.2 for Android on 20 Jun 2025 10:36:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/segmentio/analytics-ios.git
Reference: 4.1.8
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
* 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
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
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" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
In file included from /host/spi-builder-workspace/Segment/Internal/UIViewController+SEGScreen.m:1:
In file included from /host/spi-builder-workspace/Segment/Internal/UIViewController+SEGScreen.h:1:
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:9:1: error: use of '@import' when modules are disabled
9 | @import Foundation;
| ^
/host/spi-builder-workspace/Segment/Internal/UIViewController+SEGScreen.m:2:9: fatal error: 'objc/runtime.h' file not found
2 | #import <objc/runtime.h>
| ^~~~~~~~~~~~~~~~
2 errors generated.
[0/26] Compiling UIViewController+SEGScreen.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;
| ^
[0/26] Compiling SEGUtils.m
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
| ^
[0/26] Compiling SEGAnalyticsConfiguration.m
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.m:9:
/host/spi-builder-workspace/Segment/Classes/SEGContext.h:9:1: error: use of '@import' when modules are disabled
9 | @import Foundation;
| ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.m:9:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.h:10:
/host/spi-builder-workspace/Segment/Classes/SEGIntegration.h:1:1: error: use of '@import' when modules are disabled
1 | @import Foundation;
| ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.m:9:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.h:10:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegration.h:2:
/host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.h:1:1: error: use of '@import' when modules are disabled
1 | @import Foundation;
| ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.m:9:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.h:10:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegration.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.h:2:
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:1:1: error: use of '@import' when modules are disabled
1 | @import Foundation;
| ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.m:9:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGContext.h:10:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegration.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGPayload.h:2:
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:9:1: error: use of '@import' when modules are disabled
9 | @import Foundation;
| ^
[0/26] Compiling SEGContext.m
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.m:1:
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:1:1: error: use of '@import' when modules are disabled
1 | @import Foundation;
| ^
[0/26] Compiling SEGAnalyticsUtils.m
[0/26] Compiling SEGGroupPayload.m
In file included from /host/spi-builder-workspace/Segment/Internal/SEGStoreKitTracker.m:1:
/host/spi-builder-workspace/Segment/Internal/SEGStoreKitTracker.h:1:1: error: use of '@import' when modules are disabled
1 | @import Foundation;
| ^
/host/spi-builder-workspace/Segment/Internal/SEGStoreKitTracker.h:2:1: error: use of '@import' when modules are disabled
2 | @import StoreKit;
| ^
In file included from /host/spi-builder-workspace/Segment/Internal/SEGStoreKitTracker.m:1:
In file included from /host/spi-builder-workspace/Segment/Internal/SEGStoreKitTracker.h:3:
/host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:1:1: error: use of '@import' when modules are disabled
1 | @import Foundation;
| ^
In file included from /host/spi-builder-workspace/Segment/Internal/SEGStoreKitTracker.m:1:
In file included from /host/spi-builder-workspace/Segment/Internal/SEGStoreKitTracker.h:3:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
/host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:1:1: error: use of '@import' when modules are disabled
1 | @import Foundation;[0/26] Compiling SEGStoreKitTracker.m
BUILD FAILURE 6.2 android