The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build LNPreviewToContextMenu, reference master (afaac2), with Swift 6.0 for Linux on 28 Nov 2024 05:29:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.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:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/LeoNatan/LNPreviewToContextMenu.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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: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.
[0/5] Compiling UIViewController+UIPreviewContextCompat.m
BUILD FAILURE 6.0 linux