The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build LNPreviewToContextMenu, reference master (afaac2), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 02:47:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/LeoNatan/LNPreviewToContextMenu.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
/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:31:1: error: cannot synthesize weak property in file using manual reference counting
   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:1: error: cannot synthesize weak property in file using manual reference counting
   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:35:14: error: incompatible pointer to integer conversion assigning to 'int' from 'id' [-Wint-conversion]
   35 |         _sourceRect = sourceRect;
      |                     ^ ~~~~~~~~~~
/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;
      | ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
[0/5] Compiling UIViewController+UIPreviewContextCompat.m
BUILD FAILURE 6.2 wasm