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 UnicodeEmoji 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/rootstrap/UnicodeEmoji.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rootstrap/UnicodeEmoji
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cf55686 Merge pull request #4 from rootstrap/update/emoji-15.1
Cloned https://github.com/rootstrap/UnicodeEmoji.git
Revision (git rev-parse @):
cf556865f32b6938bc9c8f2218bc0e1395d74634
SUCCESS checkout https://github.com/rootstrap/UnicodeEmoji.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/rootstrap/UnicodeEmoji.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/13] Compiling UnicodeEmoji CGPoint+UnicodeEmoji.swift
[5/13] Compiling UnicodeEmoji UILabel+UnicodeEmoji.swift
[6/13] Compiling UnicodeEmoji EmojiVariantsView.swift
[7/13] Compiling UnicodeEmoji UserDefaults+UnicodeEmoji.swift
[8/13] Compiling UnicodeEmoji UIView+UnicodeEmoji.swift
[9/13] Compiling UnicodeEmoji EmojiLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/EmojiLoader.swift:37:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmojiLoader' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | }
 34 |
 35 | public class EmojiLoader {
    |              `- note: class 'EmojiLoader' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static let shared = EmojiLoader()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmojiLoader' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     private let unicodePublicFolder = "https://unicode.org/Public/emoji/"
/Users/admin/builder/spi-builder-workspace/Sources/EmojiLoader.swift:74:17: warning: capture of 'completion' with non-sendable type 'EmojiListCompletion?' (aka 'Optional<(Optional<EmojiCollection>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 72 |         load(unicodeVersion: UnicodeEmojiVersion.current, reload: forceReload) { (emojis, error) in
 73 |             DispatchQueue.main.async {
 74 |                 completion?(emojis, error)
    |                 |- warning: capture of 'completion' with non-sendable type 'EmojiListCompletion?' (aka 'Optional<(Optional<EmojiCollection>, Optional<any Error>) -> ()>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 75 |             }
 76 |         }
/Users/admin/builder/spi-builder-workspace/Sources/EmojiLoader.swift:74:29: warning: capture of 'emojis' with non-sendable type 'EmojiCollection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 72 |         load(unicodeVersion: UnicodeEmojiVersion.current, reload: forceReload) { (emojis, error) in
 73 |             DispatchQueue.main.async {
 74 |                 completion?(emojis, error)
    |                             `- warning: capture of 'emojis' with non-sendable type 'EmojiCollection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |             }
 76 |         }
/Users/admin/builder/spi-builder-workspace/Sources/EmojiCollection.swift:11:14: note: class 'EmojiCollection' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | public class EmojiCollection: Codable {
    |              `- note: class 'EmojiCollection' does not conform to the 'Sendable' protocol
 12 |
 13 |     private static let fileEndPattern = "#EOF"
/Users/admin/builder/spi-builder-workspace/Sources/EmojiLoader.swift:120:17: warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 |                 error == nil
119 |             else {
120 |                 completion(nil, error!)
    |                 |- warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
121 |                 return
122 |             }
/Users/admin/builder/spi-builder-workspace/Sources/EmojiLoader.swift:74:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 72 |         load(unicodeVersion: UnicodeEmojiVersion.current, reload: forceReload) { (emojis, error) in
 73 |             DispatchQueue.main.async {
 74 |                 completion?(emojis, error)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |             }
 76 |         }
/Users/admin/builder/spi-builder-workspace/Sources/EmojiLoader.swift:74:29: warning: sending 'emojis' risks causing data races; this is an error in the Swift 6 language mode
 72 |         load(unicodeVersion: UnicodeEmojiVersion.current, reload: forceReload) { (emojis, error) in
 73 |             DispatchQueue.main.async {
 74 |                 completion?(emojis, error)
    |                             |- warning: sending 'emojis' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: task-isolated 'emojis' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |             }
 76 |         }
[10/14] Compiling UnicodeEmoji EmojiGroup.swift
[11/14] Compiling UnicodeEmoji EmojiCollection.swift
[12/14] Emitting module UnicodeEmoji
/Users/admin/builder/spi-builder-workspace/Sources/Emoji.swift:32:24: warning: static property 'genderIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     public var variants: [Emoji] = []
31 |
32 |     private static var genderIdentifiers = ["2642", "2640"]
   |                        |- warning: static property 'genderIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'genderIdentifiers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'genderIdentifiers' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     private static var skinToneIdentifiers = ["1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF"]
34 |     private static var joinersAndSelectors = ["200D", "FE0F"]
/Users/admin/builder/spi-builder-workspace/Sources/Emoji.swift:33:24: warning: static property 'skinToneIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 |     private static var genderIdentifiers = ["2642", "2640"]
33 |     private static var skinToneIdentifiers = ["1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF"]
   |                        |- warning: static property 'skinToneIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'skinToneIdentifiers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'skinToneIdentifiers' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |     private static var joinersAndSelectors = ["200D", "FE0F"]
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Emoji.swift:34:24: warning: static property 'joinersAndSelectors' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
32 |     private static var genderIdentifiers = ["2642", "2640"]
33 |     private static var skinToneIdentifiers = ["1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF"]
34 |     private static var joinersAndSelectors = ["200D", "FE0F"]
   |                        |- warning: static property 'joinersAndSelectors' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'joinersAndSelectors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'joinersAndSelectors' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 |     var prettyPrinted: String {
/Users/admin/builder/spi-builder-workspace/Sources/EmojiLoader.swift:37:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmojiLoader' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | }
 34 |
 35 | public class EmojiLoader {
    |              `- note: class 'EmojiLoader' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static let shared = EmojiLoader()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmojiLoader' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     private let unicodePublicFolder = "https://unicode.org/Public/emoji/"
[13/14] Compiling UnicodeEmoji Emoji.swift
/Users/admin/builder/spi-builder-workspace/Sources/Emoji.swift:32:24: warning: static property 'genderIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     public var variants: [Emoji] = []
31 |
32 |     private static var genderIdentifiers = ["2642", "2640"]
   |                        |- warning: static property 'genderIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'genderIdentifiers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'genderIdentifiers' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     private static var skinToneIdentifiers = ["1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF"]
34 |     private static var joinersAndSelectors = ["200D", "FE0F"]
/Users/admin/builder/spi-builder-workspace/Sources/Emoji.swift:33:24: warning: static property 'skinToneIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 |     private static var genderIdentifiers = ["2642", "2640"]
33 |     private static var skinToneIdentifiers = ["1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF"]
   |                        |- warning: static property 'skinToneIdentifiers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'skinToneIdentifiers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'skinToneIdentifiers' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |     private static var joinersAndSelectors = ["200D", "FE0F"]
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Emoji.swift:34:24: warning: static property 'joinersAndSelectors' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
32 |     private static var genderIdentifiers = ["2642", "2640"]
33 |     private static var skinToneIdentifiers = ["1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF"]
34 |     private static var joinersAndSelectors = ["200D", "FE0F"]
   |                        |- warning: static property 'joinersAndSelectors' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'joinersAndSelectors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'joinersAndSelectors' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 |     var prettyPrinted: String {
[14/14] Compiling UnicodeEmoji StickerCollectionCell.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/17] Emitting module UnicodeEmojiExample
/Users/admin/builder/spi-builder-workspace/UnicodeEmojiExample/AppDelegate.swift:9:8: error: no such module 'UIKit'
 7 | //
 8 |
 9 | import UIKit
   |        `- error: no such module 'UIKit'
10 | import UnicodeEmoji
11 |
[16/17] Compiling UnicodeEmojiExample AppDelegate.swift
/Users/admin/builder/spi-builder-workspace/UnicodeEmojiExample/AppDelegate.swift:9:8: error: no such module 'UIKit'
 7 | //
 8 |
 9 | import UIKit
   |        `- error: no such module 'UIKit'
10 | import UnicodeEmoji
11 |
[17/17] Compiling UnicodeEmojiExample ViewController.swift
/Users/admin/builder/spi-builder-workspace/UnicodeEmojiExample/AppDelegate.swift:9:8: error: no such module 'UIKit'
 7 | //
 8 |
 9 | import UIKit
   |        `- error: no such module 'UIKit'
10 | import UnicodeEmoji
11 |
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.