The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Segment, reference master (4b0968), with Swift 6.1 for Android on 28 May 2025 18:54:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/segmentio/analytics-ios.git
https://github.com/segmentio/analytics-ios.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Segment",
  "name" : "Segment",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Segment",
      "targets" : [
        "Segment"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Segment",
      "module_type" : "ClangTarget",
      "name" : "Segment",
      "path" : "Segment",
      "product_memberships" : [
        "Segment"
      ],
      "sources" : [
        "Classes/SEGAliasPayload.m",
        "Classes/SEGAnalytics.m",
        "Classes/SEGAnalyticsConfiguration.m",
        "Classes/SEGAnalyticsUtils.m",
        "Classes/SEGContext.m",
        "Classes/SEGGroupPayload.m",
        "Classes/SEGHTTPClient.m",
        "Classes/SEGIdentifyPayload.m",
        "Classes/SEGMiddleware.m",
        "Classes/SEGPayload.m",
        "Classes/SEGReachability.m",
        "Classes/SEGScreenPayload.m",
        "Classes/SEGSegmentIntegration.m",
        "Classes/SEGSegmentIntegrationFactory.m",
        "Classes/SEGTrackPayload.m",
        "Classes/SEGWebhookIntegration.m",
        "Internal/NSData+SEGGZIP.m",
        "Internal/NSViewController+SEGScreen.m",
        "Internal/SEGAES256Crypto.m",
        "Internal/SEGFileStorage.m",
        "Internal/SEGIntegrationsManager.m",
        "Internal/SEGState.m",
        "Internal/SEGStoreKitTracker.m",
        "Internal/SEGUserDefaultsStorage.m",
        "Internal/SEGUtils.m",
        "Internal/UIViewController+SEGScreen.m"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.m:1:
/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/SEGIdentifyPayload.m:1:
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/SEGIdentifyPayload.m:1:
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;
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.h:2:
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:4:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
    4 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:7:1: error: expected function body after function declarator
    7 | @interface SEGPayload : NSObject
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:10:1: error: unexpected '@' in program
   10 | @property (nonatomic, readonly) JSON_DICT integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:11:1: error: unexpected '@' in program
   11 | @property (nonatomic, strong) NSString *timestamp;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:12:1: error: unexpected '@' in program
   12 | @property (nonatomic, strong) NSString *messageId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:13:1: error: unexpected '@' in program
   13 | @property (nonatomic, strong) NSString *anonymousId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:14:1: error: unexpected '@' in program
   14 | @property (nonatomic, strong) NSString *userId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:34: error: expected a type
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      |                                  ^
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:31:19: note: expanded from macro 'JSON_DICT'
   31 | #define JSON_DICT NSDictionary<NSString *, id> *
      |                   ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.h:2:
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:66: error: expected a type
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      |                                                                  ^
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:31:19: note: expanded from macro 'JSON_DICT'
   31 | #define JSON_DICT NSDictionary<NSString *, id> *
      |                   ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIdentifyPayload.h:2:
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:1: error: missing context for method declaration
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:18:1: error: expected method body
   18 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:27:1: error: unexpected '@' in program
   27 | @property (nonatomic, strong, nullable) NSDictionary *launchOptions;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:29:1: error: '@end' must appear in an Objective-C context
   29 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:33:1: error: expected function body after function declarator
   33 | @interface SEGContinueUserActivityPayload : SEGPayload
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:37:1: error: '@end' must appear in an Objective-C context
   37 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:40:1: error: expected function body after function declarator
   40 | @interface SEGOpenURLPayload : SEGPayload
      | ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/26] Compiling SEGIdentifyPayload.m
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.m:1:
/host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:1:1: error: use of '@import' when modules are disabled
    1 | @import Foundation;
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
/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/Classes/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
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;
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
/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/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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;
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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:4:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
    4 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:7:1: error: expected function body after function declarator
    7 | @interface SEGPayload : NSObject
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:10:1: error: unexpected '@' in program
   10 | @property (nonatomic, readonly) JSON_DICT integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:11:1: error: unexpected '@' in program
   11 | @property (nonatomic, strong) NSString *timestamp;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:12:1: error: unexpected '@' in program
   12 | @property (nonatomic, strong) NSString *messageId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:13:1: error: unexpected '@' in program
   13 | @property (nonatomic, strong) NSString *anonymousId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:14:1: error: unexpected '@' in program
   14 | @property (nonatomic, strong) NSString *userId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:34: error: expected a type
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      |                                  ^
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:31:19: note: expanded from macro 'JSON_DICT'
   31 | #define JSON_DICT NSDictionary<NSString *, id> *
      |                   ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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:16:66: error: expected a type
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      |                                                                  ^
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:31:19: note: expanded from macro 'JSON_DICT'
   31 | #define JSON_DICT NSDictionary<NSString *, id> *
      |                   ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.m:1:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGHTTPClient.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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:16:1: error: missing context for method declaration
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:18:1: error: expected method body
   18 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:27:1: error: unexpected '@' in program
   27 | @property (nonatomic, strong, nullable) NSDictionary *launchOptions;
      | ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[0/26] Compiling SEGHTTPClient.m
In file included from /host/spi-builder-workspace/Segment/Classes/SEGPayload.m:1:
/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/SEGPayload.m:1:
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;
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGPayload.m:1:
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:4:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
    4 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:7:1: error: expected function body after function declarator
    7 | @interface SEGPayload : NSObject
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:10:1: error: unexpected '@' in program
   10 | @property (nonatomic, readonly) JSON_DICT integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:11:1: error: unexpected '@' in program
   11 | @property (nonatomic, strong) NSString *timestamp;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:12:1: error: unexpected '@' in program
   12 | @property (nonatomic, strong) NSString *messageId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:13:1: error: unexpected '@' in program
   13 | @property (nonatomic, strong) NSString *anonymousId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:14:1: error: unexpected '@' in program
   14 | @property (nonatomic, strong) NSString *userId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:34: error: expected a type
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      |                                  ^
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:31:19: note: expanded from macro 'JSON_DICT'
   31 | #define JSON_DICT NSDictionary<NSString *, id> *
      |                   ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGPayload.m:1:
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:66: error: expected a type
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      |                                                                  ^
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:31:19: note: expanded from macro 'JSON_DICT'
   31 | #define JSON_DICT NSDictionary<NSString *, id> *
      |                   ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGPayload.m:1:
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:1: error: missing context for method declaration
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:18:1: error: expected method body
   18 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:27:1: error: unexpected '@' in program
   27 | @property (nonatomic, strong, nullable) NSDictionary *launchOptions;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:29:1: error: '@end' must appear in an Objective-C context
   29 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:33:1: error: expected function body after function declarator
   33 | @interface SEGContinueUserActivityPayload : SEGPayload
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:37:1: error: '@end' must appear in an Objective-C context
   37 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:40:1: error: expected function body after function declarator
   40 | @interface SEGOpenURLPayload : SEGPayload
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:43:1: error: unexpected '@' in program
   43 | @property (nonatomic, strong) NSDictionary *options;
      | ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/26] Compiling SEGPayload.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 /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;
      | ^
/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 | void SEGLog(NSString *format, ...);
      |             ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:14:1: error: expected function body after function declarator
   14 | @protocol SEGSerializable
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:21:1: error: '@end' must appear in an Objective-C context
   21 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:24:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   24 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.m:2:
/host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:1:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    1 | @import Foundation;
      |  ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.m:2:
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;
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.m:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
/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/SEGAnalyticsUtils.m:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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/SEGAnalyticsUtils.m:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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/SEGAnalyticsUtils.m:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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;
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.m:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGAnalytics.h:2:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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:4:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
    4 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:7:1: error: expected function body after function declarator
    7 | @interface SEGPayload : NSObject
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:10:1: error: unexpected '@' in program
   10 | @property (nonatomic, readonly) JSON_DICT integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:11:1: error: unexpected '@' in program
   11 | @property (nonatomic, strong) NSString *timestamp;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:12:1: error: unexpected '@' in program
   12 | @property (nonatomic, strong) NSString *messageId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:13:1: error: unexpected '@' in program
   13 | @property (nonatomic, strong) NSSt[0/26] Compiling SEGAnalyticsUtils.m
In file included from /host/spi-builder-workspace/Segment/Classes/SEGMiddleware.m:9:
/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/Classes/SEGMiddleware.m:9:
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 | void SEGLog(NSString *format, ...);
      |             ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:14:1: error: expected function body after function declarator
   14 | @protocol SEGSerializable
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:21:1: error: '@end' must appear in an Objective-C context
   21 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:24:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   24 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGMiddleware.m:9:
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUtils.h:8:
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
In file included from /host/spi-builder-workspace/Segment/Classes/SEGMiddleware.m:9:
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:10:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   10 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:12:2: error: prefix attribute must be followed by an interface, protocol, or implementation
   12 | @class SEGAnalyticsConfiguration;
      |  ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:16:1: error: expected function body after function declarator
   16 | @interface SEGUtils : NSObject
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:19:12: error: expected a type
   19 | + (nonnull NSString *)getAPIHost;
      |            ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:19:1: error: missing context for method declaration
   19 | + (nonnull NSString *)getAPIHost;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:20:1: error: expected method body
   20 | + (nullable NSURL *)getAPIHostURL;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:22:4: error: expected a type
   22 | + (NSData *_Nullable)dataFromPlist:(nonnull id)plist;
      |    ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:22:1: error: missing context for method declaration
   22 | + (NSData *_Nullable)dataFromPlist:(nonnull id)plist;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:23:1: error: expected method body
   23 | + (id _Nullable)plistFromData:(NSData *)data;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:25:74: error: expected a type
   25 | + (id _Nullable)traverseJSON:(id _Nullable)object andReplaceWithFilters:(NSDictionary<NSString*, NSString*>*)patterns;
      |                                                                          ^
[0/26] Compiling SEGMiddleware.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
      | ^
/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[0/26] Compiling SEGAnalyticsConfiguration.m
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
/host/spi-builder-workspace/Segment/Internal/SEGIntegrationsManager.m:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGIntegrationsManager.m:13:9: fatal error: 'objc/runtime.h' file not found
   13 | #import <objc/runtime.h>
      |         ^~~~~~~~~~~~~~~~
2 errors generated.
[0/26] Compiling SEGIntegrationsManager.m
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 SEGAES256Crypto.m
[0/26] Compiling UIViewController+SEGScreen.m
In file included from /host/spi-builder-workspace/Segment/Internal/SEGState.m:9:
/host/spi-builder-workspace/Segment/Internal/SEGState.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:11:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   11 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:13:2: error: prefix attribute must be followed by an interface, protocol, or implementation
   13 | @class SEGAnalyticsConfiguration;
      |  ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:15:25: error: cannot find interface declaration for 'NSObject', superclass of 'SEGUserInfo'
   15 | @interface SEGUserInfo: NSObject
      | ~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:16:31: error: unknown type name 'NSString'
   16 | @property (nonatomic, strong) NSString *anonymousId;
      |                               ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:16:1: error: property with 'retain (or strong)' attribute must be of object type
   16 | @property (nonatomic, strong) NSString *anonymousId;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:17:41: error: unknown type name 'NSString'
   17 | @property (nonatomic, strong, nullable) NSString *userId;
      |                                         ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:16:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
   16 | @property (nonatomic, strong) NSString *anonymousId;
      |                                        ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:16:40: note: insert '_Nullable' if the pointer may be null
   16 | @property (nonatomic, strong) NSString *anonymousId;
      |                                        ^
      |                                          _Nullable
/host/spi-builder-workspace/Segment/Internal/SEGState.h:16:40: note: insert '_Nonnull' if the pointer should never be null
   16 | @property (nonatomic, strong) NSString *anonymousId;
      |                                        ^
      |                                          _Nonnull
/host/spi-builder-workspace/Segment/Internal/SEGState.h:17:1: error: property with 'retain (or strong)' attribute must be of object type
   17 | @property (nonatomic, strong, nullable) NSString *userId;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:18:41: error: unknown type name 'NSDictionary'
   18 | @property (nonatomic, strong, nullable) NSDictionary *traits;
      |                                         ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:18:1: error: property with 'retain (or strong)' attribute must be of object type
   18 | @property (nonatomic, strong, nullable) NSDictionary *traits;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:21:31: error: cannot find interface declaration for 'NSObject', superclass of 'SEGPayloadContext'
   21 | @interface SEGPayloadContext: NSObject
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:22:33: error: unknown type name 'NSDictionary'
   22 | @property (nonatomic, readonly) NSDictionary *payload;
      |                                 ^
/host/spi-builder-workspace/Segment/Internal/SEGState.h:22:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
   22 | @property (nonatomic, readonly) NSDiction[0/26] Compiling SEGState.m
[0/26] Compiling SEGFileStorage.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;
      | ^
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:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
/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/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:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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/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:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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/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:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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;
      | ^
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:
In file included from /host/spi-builder-workspace/Segment/Classes/SEGIntegrationFactory.h:2:
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:4:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
    4 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:7:1: error: expected function body after function declarator
    7 | @interface SEGPayload : NSObject
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:10:1: error: unexpected '@' in program
   10 | @property (nonatomic, readonly) JSON_DICT integrations;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:11:1: error: unexpected '@' in program
   11 | @property (nonatomic, strong) NSString *timestamp;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:12:1: error: unexpected '@' in program
   12 | @property (nonatomic, strong) NSString *messageId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:13:1: error: unexpected '@' in program
   13 | @property (nonatomic, strong) NSString *anonymousId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:14:1: error: unexpected '@' in program
   14 | @property (nonatomic, strong) NSString *userId;
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGPayload.h:16:34: error: expected a type
   16 | - (instancetype)initWithContext:(JSON_DICT)context integrations:(JSON_DICT)integrations;
      |                                  ^
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:31:19: note: expanded from macro 'JSON_DICT'
   31 | #define JSON_D[0/26] Compiling SEGStoreKitTracker.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 | void SEGLog(NSString *format, ...);
      |             ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:14:1: error: expected function body after function declarator
   14 | @protocol SEGSerializable
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:21:1: error: '@end' must appear in an Objective-C context
   21 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:24:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   24 | NS_ASSUME_NONNULL_END
      | ^
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:8:
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUtils.m:6:
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:10:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   10 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:12:2: error: prefix attribute must be followed by an interface, protocol, or implementation
   12 | @class SEGAnalyticsConfiguration;
      |  ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:16:1: error: expected function body after function declarator
   16 | @interface SEGUtils : NSObject
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:19:12: error: expected a type
   19 | + (nonnull NSString *)getAPIHost;
      |            ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:19:1: error: missing context for method declaration
   19 | + (nonnull NSString *)getAPIHost;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:20:1: error: expected method body
   20 | + (nullable NSURL *)getAPIHostURL;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:22:4: error: expected a type
   22 | + (NSData *_Nullable)dataFromPlist:(nonnull id)plist;
      |    ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:22:1: error: missing context for method declaration
   22 | + (NSData *_Nullable)dataFromPlist:(nonnull id)plist;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:23:1: error: expected method body
   23 | + (id _Nullable)plistFromDat[0/26] Compiling SEGUtils.m
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUserDefaultsStorage.m:9:
/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/SEGUserDefaultsStorage.m:9:
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 | void SEGLog(NSString *format, ...);
      |             ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:14:1: error: expected function body after function declarator
   14 | @protocol SEGSerializable
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:21:1: error: '@end' must appear in an Objective-C context
   21 | @end
      | ^
/host/spi-builder-workspace/Segment/Classes/SEGAnalyticsUtils.h:24:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   24 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUserDefaultsStorage.m:9:
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUtils.h:8:
/host/spi-builder-workspace/Segment/Classes/SEGSerializableValue.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
In file included from /host/spi-builder-workspace/Segment/Internal/SEGUserDefaultsStorage.m:9:
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:10:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   10 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:12:2: error: prefix attribute must be followed by an interface, protocol, or implementation
   12 | @class SEGAnalyticsConfiguration;
      |  ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:16:1: error: expected function body after function declarator
   16 | @interface SEGUtils : NSObject
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:19:12: error: expected a type
   19 | + (nonnull NSString *)getAPIHost;
      |            ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:19:1: error: missing context for method declaration
   19 | + (nonnull NSString *)getAPIHost;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:20:1: error: expected method body
   20 | + (nullable NSURL *)getAPIHostURL;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:22:4: error: expected a type
   22 | + (NSData *_Nullable)dataFromPlist:(nonnull id)plist;
      |    ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:22:1: error: missing context for method declaration
   22 | + (NSData *_Nullable)dataFromPlist:(nonnull id)plist;
      | ^
/host/spi-builder-workspace/Segment/Internal/SEGUtils.h:23:1: error: expected method body
   23 | + (id _Nullabl[0/26] Compiling SEGUserDefaultsStorage.m
BUILD FAILURE 6.1 android