This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 EmailLink with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joe-scotto/EmailLink.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/joe-scotto/EmailLink
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a01d5c9 Update README.md
Cloned https://github.com/joe-scotto/EmailLink.git
Revision (git rev-parse @):
a01d5c973a264c3cf41f0789583344b93789e212
SUCCESS checkout https://github.com/joe-scotto/EmailLink.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/joe-scotto/EmailLink.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling EmailLink EmailClient.swift
[4/6] Compiling EmailLink URLSchemes.swift
[5/6] Emitting module EmailLink
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:3:31: error: 'ActionSheet' is unavailable in macOS
  1 | import SwiftUI
  2 |
  3 | typealias ActionSheetButton = ActionSheet.Button
    |                               `- error: 'ActionSheet' is unavailable in macOS
  4 |
  5 | public struct EmailLink<Content: View>: View {
SwiftUI.ActionSheet:6:15: note: 'ActionSheet' has been explicitly marked unavailable here
4 | @available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "use `View.confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead.")
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use `View.confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead.")
6 | public struct ActionSheet {
  |               `- note: 'ActionSheet' has been explicitly marked unavailable here
7 |     public init(title: Text, message: Text? = nil, buttons: [ActionSheet.Button] = [.cancel()])
8 |     public typealias Button = Alert.Button
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:6:6: error: 'State' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
  7 |
  8 |     private let label: Content
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:11:77: error: cannot find type 'UIColor' in scope
  9 |     private let clients: [URLSchemes: EmailClient]
 10 |
 11 |     public init(to: String, subject: String = "", body: String = "", color: UIColor = .systemBlue, @ViewBuilder label: () -> Content) {
    |                                                                             `- error: cannot find type 'UIColor' in scope
 12 |         // Ensure Info.plist includes required keys
 13 |         Self.checkInfoDictionary()
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:11:101: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
  7 |
    :
  9 |     private let clients: [URLSchemes: EmailClient]
 10 |
 11 |     public init(to: String, subject: String = "", body: String = "", color: UIColor = .systemBlue, @ViewBuilder label: () -> Content) {
    |            |                                                                                        `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
 12 |         // Ensure Info.plist includes required keys
 13 |         Self.checkInfoDictionary()
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:84:27: error: 'View' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
  7 |
    :
 82 |     }
 83 |
 84 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 85 |         Button(action: {
 86 |             if getAvailableClients().count > 2 {
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:5:34: error: 'View' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               |                  `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
  7 |
[6/6] Compiling EmailLink EmailLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:3:31: error: 'ActionSheet' is unavailable in macOS
  1 | import SwiftUI
  2 |
  3 | typealias ActionSheetButton = ActionSheet.Button
    |                               `- error: 'ActionSheet' is unavailable in macOS
  4 |
  5 | public struct EmailLink<Content: View>: View {
SwiftUI.ActionSheet:6:15: note: 'ActionSheet' has been explicitly marked unavailable here
4 | @available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "use `View.confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead.")
5 | @available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "use `View.confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead.")
6 | public struct ActionSheet {
  |               `- note: 'ActionSheet' has been explicitly marked unavailable here
7 |     public init(title: Text, message: Text? = nil, buttons: [ActionSheet.Button] = [.cancel()])
8 |     public typealias Button = Alert.Button
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:6:6: error: 'State' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
  7 |
  8 |     private let label: Content
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:11:77: error: cannot find type 'UIColor' in scope
  9 |     private let clients: [URLSchemes: EmailClient]
 10 |
 11 |     public init(to: String, subject: String = "", body: String = "", color: UIColor = .systemBlue, @ViewBuilder label: () -> Content) {
    |                                                                             `- error: cannot find type 'UIColor' in scope
 12 |         // Ensure Info.plist includes required keys
 13 |         Self.checkInfoDictionary()
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:11:101: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
  7 |
    :
  9 |     private let clients: [URLSchemes: EmailClient]
 10 |
 11 |     public init(to: String, subject: String = "", body: String = "", color: UIColor = .systemBlue, @ViewBuilder label: () -> Content) {
    |            |                                                                                        `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
 12 |         // Ensure Info.plist includes required keys
 13 |         Self.checkInfoDictionary()
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:84:27: error: 'View' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
  7 |
    :
 82 |     }
 83 |
 84 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 85 |         Button(action: {
 86 |             if getAvailableClients().count > 2 {
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:5:34: error: 'View' is only available in macOS 10.15 or newer
  3 | typealias ActionSheetButton = ActionSheet.Button
  4 |
  5 | public struct EmailLink<Content: View>: View {
    |               |                  `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  6 |     @State private var showAlert = false
  7 |
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:81:9: error: cannot find 'UIView' in scope
 79 |
 80 |         // Force color for ActionSheet
 81 |         UIView.appearance(whenContainedInInstancesOf: [UIAlertController.self]).tintColor = color
    |         `- error: cannot find 'UIView' in scope
 82 |     }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:81:56: error: cannot find 'UIAlertController' in scope
 79 |
 80 |         // Force color for ActionSheet
 81 |         UIView.appearance(whenContainedInInstancesOf: [UIAlertController.self]).tintColor = color
    |                                                        `- error: cannot find 'UIAlertController' in scope
 82 |     }
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:91:24: error: cannot find 'UIApplication' in scope
 89 |                 // Only open first found
 90 |                 for client in clients {
 91 |                     if UIApplication.shared.canOpenURL(client.value.url) {
    |                        `- error: cannot find 'UIApplication' in scope
 92 |                         UIApplication.shared.open(client.value.url)
 93 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:92:25: error: cannot find 'UIApplication' in scope
 90 |                 for client in clients {
 91 |                     if UIApplication.shared.canOpenURL(client.value.url) {
 92 |                         UIApplication.shared.open(client.value.url)
    |                         `- error: cannot find 'UIApplication' in scope
 93 |                     }
 94 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:116:21: error: cannot find 'UIApplication' in scope
114 |             , action: {
115 |                 if let url = clients[client]?.url {
116 |                     UIApplication.shared.open(url)
    |                     `- error: cannot find 'UIApplication' in scope
117 |                 }
118 |             }))
/Users/admin/builder/spi-builder-workspace/Sources/EmailLink/EmailLink.swift:130:56: error: cannot find 'UIApplication' in scope
128 |
129 |         for scheme in URLSchemes.allCases {
130 |             if let url = URL(string: scheme.rawValue), UIApplication.shared.canOpenURL(url) {
    |                                                        `- error: cannot find 'UIApplication' in scope
131 |                 availableClients.append(scheme)
132 |             }
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.