The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LNPreviewToContextMenu, reference master (afaac2), with Swift 6.4 for Android on 17 Sep 2026 20:55:12 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LeoNatan/LNPreviewToContextMenu.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/LeoNatan/LNPreviewToContextMenu
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at afaac2f 1.3
Cloned https://github.com/LeoNatan/LNPreviewToContextMenu.git
Revision (git rev-parse @):
afaac2f725edc4270fd3256a00e64cb9de37b62b
SUCCESS checkout https://github.com/LeoNatan/LNPreviewToContextMenu.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/LeoNatan/LNPreviewToContextMenu.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Planning deferred tasks]
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:12:1: error: use of '@import' when modules are disabled
   12 | @import UIKit;
      | ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:13:1: error: use of '@import' when modules are disabled
   13 | @import ObjectiveC;
      | ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:21:55: error: no type or protocol named 'UIViewControllerPreviewing'
   21 | @interface _LNPreviewContextCompatSupport : NSObject <UIViewControllerPreviewing>
      |                                                       ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:21:45: error: cannot find interface declaration for 'NSObject', superclass of '_LNPreviewContextCompatSupport'
   21 | @interface _LNPreviewContextCompatSupport : NSObject <UIViewControllerPreviewing>
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:23:31: error: unknown type name 'UIGestureRecognizer'
   23 | @property (nonatomic, strong) UIGestureRecognizer *previewingGestureRecognizerForFailureRelationship;
      |                               ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:23:1: error: property with 'retain (or strong)' attribute must be of object type
   23 | @property (nonatomic, strong) UIGestureRecognizer *previewingGestureRecognizerForFailureRelationship;
      | ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:24:32: error: no type or protocol named 'UIViewControllerPreviewingDelegate'
   24 | @property (nonatomic, weak) id<UIViewControllerPreviewingDelegate> delegate;
      |                                ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:25:31: error: unknown type name 'UIView'
   25 | @property (nonatomic, strong) UIView *sourceView;
      |                               ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:25:1: error: property with 'retain (or strong)' attribute must be of object type
   25 | @property (nonatomic, strong) UIView *sourceView;
      | ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:26:23: error: unknown type name 'CGRect'
   26 | @property (nonatomic) CGRect sourceRect;
      |                       ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:33:24: error: expected a type
   33 | - (void)setSourceRect:(CGRect)sourceRect
      |                        ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:35:2: error: use of undeclared identifier '_sourceRect'; did you mean 'sourceRect'?
   35 |         _sourceRect = sourceRect;
      |         ^~~~~~~~~~~
      |         sourceRect
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:33:31: note: 'sourceRect' declared here
   33 | - (void)setSourceRect:(CGRect)sourceRect
      |                               ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:31:17: warning: property 'delegate' requires method 'delegate' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation [-Wobjc-property-implementation]
   31 | @implementation _LNPreviewContextCompatSupport
      |                 ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:24:68: note: property declared here
   24 | @property (nonatomic, weak) id<UIViewControllerPreviewingDelegate> delegate;
      |                                                                    ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:31:17: warning: property 'delegate' requires method 'setDelegate:' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation [-Wobjc-property-implementation]
   31 | @implementation _LNPreviewContextCompatSupport
      |                 ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:24:68: note: property declared here
   24 | @property (nonatomic, weak) id<UIViewControllerPreviewingDelegate> delegate;
      |                                                                    ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:31:17: warning: property 'sourceRect' requires method 'sourceRect' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation [-Wobjc-property-implementation]
   31 | @implementation _LNPreviewContextCompatSupport
      |                 ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:26:30: note: property declared here
   26 | @property (nonatomic) CGRect sourceRect;
      |                              ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:31:17: warning: property 'interaction' requires method 'interaction' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation [-Wobjc-property-implementation]
   31 | @implementation _LNPreviewContextCompatSupport
      |                 ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:28:76: note: property declared here
   28 | @property (nonatomic, weak) _LNPreviewContextCompatContextMenuInteraction* interaction;
      |                                                                            ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:31:17: warning: property 'interaction' requires method 'setInteraction:' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation [-Wobjc-property-implementation]
   31 | @implementation _LNPreviewContextCompatSupport
      |                 ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:28:76: note: property declared here
   28 | @property (nonatomic, weak) _LNPreviewContextCompatContextMenuInteraction* interaction;
      |                                                                            ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:33:31: warning: conflicting parameter types in implementation of 'setSourceRect:': 'int' vs 'id' [-Wmismatched-parameter-types]
   33 | - (void)setSourceRect:(CGRect)sourceRect
      |                               ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:26:30: note: previous definition is here
   26 | @property (nonatomic) CGRect sourceRect;
      |                              ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:21:12: warning: class '_LNPreviewContextCompatSupport' defined without specifying a base class [-Wobjc-root-class]
   21 | @interface _LNPreviewContextCompatSupport : NSObject <UIViewControllerPreviewing>
      |            ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:21:42: note: add a super class to fix this problem
   21 | @interface _LNPreviewContextCompatSupport : NSObject <UIViewControllerPreviewing>
      |                                          ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:42:19: error: expected parameter declarator
   42 | API_AVAILABLE(ios(13.0))
      |                   ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:42:19: error: expected ')'
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:42:18: note: to match this '('
   42 | API_AVAILABLE(ios(13.0))
      |                  ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:42:15: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   42 | API_AVAILABLE(ios(13.0))
      |               ^
      |               int
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:43:1: error: expected function body after function declarator
   43 | @interface _LNPreviewContextCompatContextMenuInteraction : UIContextMenuInteraction <UIContextMenuInteractionDelegate>
      | ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:46:1: error: unexpected '@' in program
   46 | @property (nonatomic, strong) _LNPreviewContextCompatSupport* compatSupport;
      | ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:47:1: error: unexpected '@' in program
   47 | @property (nonatomic, strong) UIViewController* previewViewController;
      | ^
/host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m:48:1: error: unexpected '@' in program
   48 | @property (nonatomic, strong) UIView* snapshotForTargetedPreview;
      | ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/LNPreviewToContextMenu.build/Debug-android-aarch64/LNPreviewToContextMenu-t.build/Objects-normal/aarch64/UIViewController+UIPreviewContextCompat.o /host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m normal aarch64 objective-c com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/LNPreviewToContextMenu.build/Debug-android-aarch64/LNPreviewToContextMenu-t.build/Objects-normal/aarch64/6f95552a3397ee1cec971b90cf334075d5f321c3a3b0689ad55c3d1e24702600-common-args.resp

    /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/clang -x objective-c -target aarch64-unknown-linux-android28 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body --sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot @/host/spi-builder-workspace/.build/out/Intermediates.noindex/LNPreviewToContextMenu.build/Debug-android-aarch64/LNPreviewToContextMenu-t.build/Objects-normal/aarch64/6f95552a3397ee1cec971b90cf334075d5f321c3a3b0689ad55c3d1e24702600-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/LNPreviewToContextMenu.build/Debug-android-aarch64/LNPreviewToContextMenu-t.build/Objects-normal/aarch64/UIViewController+UIPreviewContextCompat.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/LNPreviewToContextMenu.build/Debug-android-aarch64/LNPreviewToContextMenu-t.build/Objects-normal/aarch64/UIViewController+UIPreviewContextCompat.dia -c /host/spi-builder-workspace/LNPreviewToContextMenu/LNPreviewToContextMenu/UIViewController+UIPreviewContextCompat.m -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LNPreviewToContextMenu.build/Debug-android-aarch64/LNPreviewToContextMenu-t.build/Objects-normal/aarch64/UIViewController+UIPreviewContextCompat.o
error: Build failed
BUILD FAILURE 6.4 android