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 sharelink-for-swiftui, reference main (13ba82), with Swift 5.8 for Linux on 14 Sep 2024 19:26:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/sharelink-for-swiftui.git
Reference: main
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/igor11191708/sharelink-for-swiftui
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 13ba82b Create .spi.yml
Cloned https://github.com/igor11191708/sharelink-for-swiftui.git
Revision (git rev-parse @):
13ba82b505b4e6e80b1227563e85b0a9291dad87
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/igor11191708/sharelink-for-swiftui.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $PWD
https://github.com/igor11191708/sharelink-for-swiftui.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.8-latest: Pulling from finestructure/spi-images
Digest: sha256:a5e57d1af25c3272f87123c7a264de6fd88dcc01acef91f1006945662a9fd14a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.8-latest
Building for debugging...
[1/8] Compiling sharelink_for_swiftui Transportable.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:27:11: error: cannot find type 'URL' in scope
extension URL: Transportable {
          ^~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:33:11: error: cannot find type 'UIImage' in scope
extension UIImage: Transportable {
          ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:53:11: error: cannot find type 'Data' in scope
extension Data: Transportable {
          ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:61:11: error: cannot find type 'NSAttributedString' in scope
extension NSAttributedString: Transportable {}
          ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:64:11: error: cannot find type 'CLLocation' in scope
extension CLLocation: Transportable {}
          ^~~~~~~~~~
[2/8] Compiling sharelink_for_swiftui ShareLinkView.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:20:23: error: cannot find type 'UIViewControllerRepresentable' in scope
struct ShareLinkView: UIViewControllerRepresentable {
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:26:33: error: cannot find type 'UIActivity' in scope
    let applicationActivities: [UIActivity]?
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:29:33: error: cannot find type 'UIActivity' in scope
    let excludedActivityTypes: [UIActivity.ActivityType]?
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:39:33: error: cannot find type 'UIActivity' in scope
        applicationActivities: [UIActivity]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:40:33: error: cannot find type 'UIActivity' in scope
        excludedActivityTypes: [UIActivity.ActivityType]? = nil
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:51:47: error: cannot find type 'Context' in scope
    public func makeUIViewController(context: Context) -> ActivitySheetController {
                                              ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:63:94: error: cannot find type 'Context' in scope
    public func updateUIViewController(_ uiViewController: ActivitySheetController, context: Context) {}
                                                                                             ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:13:38: error: cannot find type 'UIActivityViewController' in scope
final class ActivitySheetController: UIActivityViewController {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:52:49: error: argument passed to call that takes no arguments
        let controller = ActivitySheetController(activityItems: data, applicationActivities: applicationActivities)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:54:46: error: cannot infer contextual base in reference to member 'popover'
        controller.modalPresentationStyle = .popover
                                            ~^~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Emitting module sharelink_for_swiftui
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:38: error: cannot find type 'View' in scope
public struct ShareLinkButton<Label: View>: View {
                                     ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:45: error: cannot find type 'View' in scope
public struct ShareLinkButton<Label: View>: View {
                                            ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:18:6: error: unknown attribute 'State'
    @State private var isPresented: Bool = false
     ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:27:41: error: cannot find type 'UIActivity' in scope
    private let applicationActivities: [UIActivity]?
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:30:41: error: cannot find type 'UIActivity' in scope
    private let excludedActivityTypes: [UIActivity.ActivityType]?
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:44:15: error: cannot find type 'UIImage' in scope
        icon: UIImage? = nil,
              ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:47:33: error: cannot find type 'UIActivity' in scope
        applicationActivities: [UIActivity]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:48:33: error: cannot find type 'UIActivity' in scope
        excludedActivityTypes: [UIActivity.ActivityType]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:49:10: error: unknown attribute 'ViewBuilder'
        @ViewBuilder label: @escaping () -> Label
         ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:70:21: error: cannot find type 'UIActivityItemSource' in scope
        itemSource: UIActivityItemSource,
                    ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:71:33: error: cannot find type 'UIActivity' in scope
        applicationActivities: [UIActivity]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:72:33: error: cannot find type 'UIActivity' in scope
        excludedActivityTypes: [UIActivity.ActivityType]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:73:10: error: unknown attribute 'ViewBuilder'
        @ViewBuilder label: @escaping () -> Label
         ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:82:27: error: cannot find type 'View' in scope
    public var body: some View {
                          ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:27:11: error: cannot find type 'URL' in scope
extension URL: Transportable {
          ^~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:33:11: error: cannot find type 'UIImage' in scope
extension UIImage: Transportable {
          ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:53:11: error: cannot find type 'Data' in scope
extension Data: Transportable {
          ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:61:11: error: cannot find type 'NSAttributedString' in scope
extension NSAttributedString: Transportable {}
          ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/protocol/Transportable.swift:64:11: error: cannot find type 'CLLocation' in scope
extension CLLocation: Transportable {}
          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:20:23: error: cannot find type 'UIViewControllerRepresentable' in scope
struct ShareLinkView: UIViewControllerRepresentable {
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:26:33: error: cannot find type 'UIActivity' in scope
    let applicationActivities: [UIActivity]?
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:29:33: error: cannot find type 'UIActivity' in scope
    let excludedActivityTypes: [UIActivity.ActivityType]?
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:39:33: error: cannot find type 'UIActivity' in scope
        applicationActivities: [UIActivity]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:40:33: error: cannot find type 'UIActivity' in scope
        excludedActivityTypes: [UIActivity.ActivityType]? = nil
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:51:47: error: cannot find type 'Context' in scope
    public func makeUIViewController(context: Context) -> ActivitySheetController {
                                              ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/swiftui/ShareLinkView.swift:63:94: error: cannot find type 'Context' in scope
    public func updateUIViewController(_ uiViewController: ActivitySheetController, context: Context) {}
                                                                                             ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:13:38: error: cannot find type 'UIActivityViewController' in scope
final class ActivitySheetController: UIActivityViewController {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:24:26: error: method does not override any method from its superclass
    public override func viewWillAppear(_ animated: Bool) {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:50: error: cannot find type 'NSObject' in scope
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:60: error: cannot find type 'UIActivityItemSource' in scope
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                                                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:23:23: error: cannot find type 'UIImage' in scope
    private let icon: UIImage?
                      ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:36:18: error: cannot find type 'UIImage' in scope
    var getIcon: UIImage? {
                 ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:46:25: error: cannot find type 'UIImage' in scope
    init(item: T, icon: UIImage? = nil, title: String? = nil) {
                        ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:57:81: error: cannot find type 'UIActivityViewController' in scope
    public func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any {
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:66: error: cannot find type 'UIActivityViewController' in scope
    public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:126: error: cannot find type 'UIActivity' in scope
    public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
                                                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:107: error: cannot find type 'LPLinkMetadata' in scope
    public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
                                                                                                          ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:78: error: cannot find type 'UIActivityViewController' in scope
    public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:16:23: error: cannot find type 'UIFont' in scope
    private var font: UIFont = UIFont.systemFont(ofSize: 12)
                      ^~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:17:34: error: cannot find type 'UIColor' in scope
    private var foregroundColor: UIColor = .black
                                 ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:28: error: cannot find type 'CGFloat' in scope
    func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
                           ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:45: error: cannot find type 'UIFont' in scope
    func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
                                            ^~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:34:38: error: cannot find type 'UIColor' in scope
    func setForegroundColor(_ color: UIColor) -> AttributedStringBuilder {
                                     ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:43:38: error: cannot find type 'NSAttributedString' in scope
    func build(with text: String) -> NSAttributedString {
                                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:18:64: error: cannot find type 'UISimpleTextPrintFormatter' in scope
func printStringFormatter(_ value: String, _ title: String) -> UISimpleTextPrintFormatter {
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:47: error: cannot find type 'UIViewPrintFormatter' in scope
func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
                                              ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:35: error: cannot find type 'UIImage' in scope
func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
                                  ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:30:23: error: cannot find type 'UIImage' in scope
    private var icon: UIImage?
                      ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:57:33: error: cannot find type 'UIImage' in scope
    public func setIcon(_ icon: UIImage?) -> TransportableItemBuilder {
                                ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:162:93: error: cannot find type 'UISimpleTextPrintFormatter' in scope
fileprivate func createStringFormatter<T: Transportable>(item: T, resolvedTitle: String) -> UISimpleTextPrintFormatter {
                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
[4/9] Compiling sharelink_for_swiftui PrintFormatters.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:18:64: error: cannot find type 'UISimpleTextPrintFormatter' in scope
func printStringFormatter(_ value: String, _ title: String) -> UISimpleTextPrintFormatter {
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:47: error: cannot find type 'UIViewPrintFormatter' in scope
func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
                                              ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:35: error: cannot find type 'UIImage' in scope
func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
                                  ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:28: error: cannot find type 'CGFloat' in scope
    func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
                           ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:45: error: cannot find type 'UIFont' in scope
    func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
                                            ^~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:21:41: error: cannot infer contextual base in reference to member 'bold'
        .setFont(fontSize: 50, weight: .bold)
                                       ~^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:22:30: error: cannot infer contextual base in reference to member 'black'
        .setForegroundColor(.black)
                            ~^~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:25:18: error: cannot find 'NSMutableAttributedString' in scope
    let result = NSMutableAttributedString()
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:32:34: error: cannot infer contextual base in reference to member 'black'
            .setForegroundColor(.black)
                                ~^~~~~
[5/9] Compiling sharelink_for_swiftui AttributedStringBuilder.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:16:23: error: cannot find type 'UIFont' in scope
    private var font: UIFont = UIFont.systemFont(ofSize: 12)
                      ^~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:17:34: error: cannot find type 'UIColor' in scope
    private var foregroundColor: UIColor = .black
                                 ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:28: error: cannot find type 'CGFloat' in scope
    func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
                           ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:25:45: error: cannot find type 'UIFont' in scope
    func setFont(fontSize: CGFloat, weight: UIFont.Weight = .regular) -> AttributedStringBuilder {
                                            ^~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:34:38: error: cannot find type 'UIColor' in scope
    func setForegroundColor(_ color: UIColor) -> AttributedStringBuilder {
                                     ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:43:38: error: cannot find type 'NSAttributedString' in scope
    func build(with text: String) -> NSAttributedString {
                                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:26:21: error: cannot find 'UIFont' in scope
        self.font = UIFont.systemFont(ofSize: fontSize, weight: weight)
                    ^~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/AttributedStringBuilder.swift:44:26: error: cannot find type 'NSAttributedString' in scope
        let attributes: [NSAttributedString.Key: Any] = [
                         ^~~~~~~~~~~~~~~~~~
[6/9] Compiling sharelink_for_swiftui TransportableItemBuilder.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:30:23: error: cannot find type 'UIImage' in scope
    private var icon: UIImage?
                      ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:57:33: error: cannot find type 'UIImage' in scope
    public func setIcon(_ icon: UIImage?) -> TransportableItemBuilder {
                                ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:162:93: error: cannot find type 'UISimpleTextPrintFormatter' in scope
fileprivate func createStringFormatter<T: Transportable>(item: T, resolvedTitle: String) -> UISimpleTextPrintFormatter {
                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:90:30: error: cannot find type 'URL' in scope
            case let item as URL:
                             ^~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:92:30: error: cannot find type 'UIImage' in scope
            case let item as UIImage:
                             ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:94:30: error: cannot find type 'Data' in scope
            case let item as Data:
                             ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:96:30: error: cannot find type 'NSAttributedString' in scope
            case let item as NSAttributedString:
                             ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:98:30: error: cannot find type 'CLLocation' in scope
            case let item as CLLocation:
                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:50: error: cannot find type 'NSObject' in scope
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:60: error: cannot find type 'UIActivityItemSource' in scope
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                                                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:46:25: error: cannot find type 'UIImage' in scope
    init(item: T, icon: UIImage? = nil, title: String? = nil) {
                        ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:89:25: error: generic parameter 'T' could not be inferred
                return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
                        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                              ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:89:25: note: explicitly specify the generic arguments to fix this issue
                return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
                        ^
                                         <<#T: Transportable#>>
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:91:25: error: generic parameter 'T' could not be inferred
                return [TransportableItem(item: item.absoluteString, icon: icon, title: resolvedTitle)]
                        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                              ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:91:25: note: explicitly specify the generic arguments to fix this issue
                return [TransportableItem(item: item.absoluteString, icon: icon, title: resolvedTitle)]
                        ^
                                         <<#T: Transportable#>>
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:93:25: error: generic parameter 'T' could not be inferred
                return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
                        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                              ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:93:25: note: explicitly specify the generic arguments to fix this issue
                return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
                        ^
                                         <<#T: Transportable#>>
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:95:25: error: generic parameter 'T' could not be inferred
                return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
                        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                              ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:95:25: note: explicitly specify the generic arguments to fix this issue
                return [TransportableItem(item: item, icon: icon, title: resolvedTitle)]
                        ^
                                         <<#T: Transportable#>>
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:97:25: error: generic parameter 'T' could not be inferred
                return [TransportableItem(item: item.string, icon: icon, title: resolvedTitle)]
                        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                              ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:97:25: note: explicitly specify the generic arguments to fix this issue
                return [TransportableItem(item: item.string, icon: icon, title: resolvedTitle)]
                        ^
                                         <<#T: Transportable#>>
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:100:25: error: generic parameter 'T' could not be inferred
                return [TransportableItem(item: locationURLString, icon: icon, title: resolvedTitle)]
                        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                              ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:100:25: note: explicitly specify the generic arguments to fix this issue
                return [TransportableItem(item: locationURLString, icon: icon, title: resolvedTitle)]
                        ^
                                         <<#T: Transportable#>>
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:102:25: error: generic parameter 'T' could not be inferred
                return [TransportableItem(item: item.description, icon: icon, title: resolvedTitle)]
                        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:31: note: 'T' declared as parameter to type 'TransportableItem'
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                              ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:102:25: note: explicitly specify the generic arguments to fix this issue
                return [TransportableItem(item: item.description, icon: icon, title: resolvedTitle)]
                        ^
                                         <<#T: Transportable#>>
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:116:37: error: cannot find type 'UIImage' in scope
        if let imageItem = item as? UIImage {
                                    ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:47: error: cannot find type 'UIViewPrintFormatter' in scope
func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
                                              ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/PrintFormatters.swift:45:35: error: cannot find type 'UIImage' in scope
func printImageFormatter(_ value: UIImage) -> UIViewPrintFormatter {
                                  ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:140:22: error: cannot find type 'URL' in scope
    case let item as URL:
                     ^~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:142:22: error: cannot find type 'UIImage' in scope
    case let item as UIImage:
                     ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:144:22: error: cannot find type 'Data' in scope
    case let item as Data:
                     ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:146:22: error: cannot find type 'NSAttributedString' in scope
    case let item as NSAttributedString:
                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:148:22: error: cannot find type 'CLLocation' in scope
    case let item as CLLocation:
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:166:22: error: cannot find type 'URL' in scope
    case let item as URL:
                     ^~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:168:22: error: cannot find type 'Data' in scope
    case let item as Data:
                     ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:170:22: error: cannot find type 'NSAttributedString' in scope
    case let item as NSAttributedString:
                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:172:22: error: cannot find type 'CLLocation' in scope
    case let item as CLLocation:
                     ^~~~~~~~~~
[7/9] Compiling sharelink_for_swiftui ActivitySheetController.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:13:38: error: cannot find type 'UIActivityViewController' in scope
final class ActivitySheetController: UIActivityViewController {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:24:26: error: method does not override any method from its superclass
    public override func viewWillAppear(_ animated: Bool) {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:25:9: error: 'super' members cannot be referenced in a root class
        super.viewWillAppear(animated)
        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:28:35: error: cannot find 'sheetPresentationController' in scope
            if let presentation = sheetPresentationController {
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:29:42: error: type 'Any' has no member 'medium'
                presentation.detents = [.medium(), .large()]
                                        ~^~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:29:53: error: type 'Any' has no member 'large'
                presentation.detents = [.medium(), .large()]
                                                   ~^~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/ActivitySheetController.swift:34:13: error: cannot find 'modalPresentationStyle' in scope
            modalPresentationStyle = .overFullScreen
            ^~~~~~~~~~~~~~~~~~~~~~
[8/9] Compiling sharelink_for_swiftui TransportableItem.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:50: error: cannot find type 'NSObject' in scope
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:15:60: error: cannot find type 'UIActivityItemSource' in scope
final class TransportableItem<T: Transportable>: NSObject, UIActivityItemSource {
                                                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:23:23: error: cannot find type 'UIImage' in scope
    private let icon: UIImage?
                      ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:36:18: error: cannot find type 'UIImage' in scope
    var getIcon: UIImage? {
                 ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:46:25: error: cannot find type 'UIImage' in scope
    init(item: T, icon: UIImage? = nil, title: String? = nil) {
                        ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:57:81: error: cannot find type 'UIActivityViewController' in scope
    public func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any {
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:66: error: cannot find type 'UIActivityViewController' in scope
    public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:67:126: error: cannot find type 'UIActivity' in scope
    public func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? {
                                                                                                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:107: error: cannot find type 'LPLinkMetadata' in scope
    public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
                                                                                                          ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:75:78: error: cannot find type 'UIActivityViewController' in scope
    public func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? {
                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:50:9: error: 'super' members cannot be referenced in a root class
        super.init()
        ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:76:24: error: cannot find 'LPLinkMetadata' in scope
        let metadata = LPLinkMetadata()
                       ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:80:37: error: cannot find 'NSItemProvider' in scope
            metadata.iconProvider = NSItemProvider(object: icon)
                                    ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:81:39: error: cannot find type 'UIImage' in scope
        } else if let icon = item as? UIImage {
                                      ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:82:37: error: cannot find 'NSItemProvider' in scope
            metadata.iconProvider = NSItemProvider(object: icon)
                                    ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:86:33: error: cannot find type 'UIImage' in scope
        if let image = item as? UIImage {
                                ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:87:38: error: cannot find 'NSItemProvider' in scope
            metadata.imageProvider = NSItemProvider(object: image)
                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:96:59: error: cannot find 'URL' in scope
        if let urlString = item as? String, let itemURL = URL(string: urlString) {
                                                          ^~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/uikit/TransportableItem.swift:98:42: error: cannot find type 'URL' in scope
        } else if let itemURL = item as? URL {
                                         ^~~
[9/9] Compiling sharelink_for_swiftui ShareLinkButton.swift
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:38: error: cannot find type 'View' in scope
public struct ShareLinkButton<Label: View>: View {
                                     ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:15:45: error: cannot find type 'View' in scope
public struct ShareLinkButton<Label: View>: View {
                                            ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:18:6: error: unknown attribute 'State'
    @State private var isPresented: Bool = false
     ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:27:41: error: cannot find type 'UIActivity' in scope
    private let applicationActivities: [UIActivity]?
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:30:41: error: cannot find type 'UIActivity' in scope
    private let excludedActivityTypes: [UIActivity.ActivityType]?
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:44:15: error: cannot find type 'UIImage' in scope
        icon: UIImage? = nil,
              ^~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:47:33: error: cannot find type 'UIActivity' in scope
        applicationActivities: [UIActivity]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:48:33: error: cannot find type 'UIActivity' in scope
        excludedActivityTypes: [UIActivity.ActivityType]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:49:10: error: unknown attribute 'ViewBuilder'
        @ViewBuilder label: @escaping () -> Label
         ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:70:21: error: cannot find type 'UIActivityItemSource' in scope
        itemSource: UIActivityItemSource,
                    ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:71:33: error: cannot find type 'UIActivity' in scope
        applicationActivities: [UIActivity]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:72:33: error: cannot find type 'UIActivity' in scope
        excludedActivityTypes: [UIActivity.ActivityType]? = nil,
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:73:10: error: unknown attribute 'ViewBuilder'
        @ViewBuilder label: @escaping () -> Label
         ^
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/ShareLinkButton.swift:82:27: error: cannot find type 'View' in scope
    public var body: some View {
                          ^~~~
/host/spi-builder-workspace/Sources/sharelink-for-swiftui/utils/TransportableItemBuilder.swift:57:33: error: cannot find type 'UIImage' in scope
    public func setIcon(_ icon: UIImage?) -> TransportableItemBuilder {
                                ^~~~~~~
BUILD FAILURE 5.8 linux