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

Successful build of RemoteImage, reference 4.0.0 (7de204), with Swift 6.0 for macOS (SPM) on 26 Feb 2025 08:30:33 UTC.

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chris-swift-dev/RemoteImage.git
Reference: 4.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chris-swift-dev/RemoteImage
 * tag               4.0.0      -> FETCH_HEAD
HEAD is now at 7de2045 Merge pull request #18 from crelies/dev
Cloned https://github.com/chris-swift-dev/RemoteImage.git
Revision (git rev-parse @):
7de20453a8b9733eb8e28ae762801c60a5a5f59d
SUCCESS checkout https://github.com/chris-swift-dev/RemoteImage.git at 4.0.0
Fetching https://github.com/nalexn/ViewInspector.git
warning: 'viewinspector': skipping cache due to an error: Failed to clone repository https://github.com/nalexn/ViewInspector.git:
    Cloning into bare repository '/Users/admin/Library/Caches/org.swift.swiftpm/repositories/ViewInspector-8f6ae9a2'...
    fatal: unable to access 'https://github.com/nalexn/ViewInspector.git/': Failed to connect to github.com port 443 after 75005 ms: Couldn't connect to server
Fetching https://github.com/nalexn/ViewInspector.git
[1/12278] Fetching viewinspector
Fetched https://github.com/nalexn/ViewInspector.git from cache (8.26s)
Computing version for https://github.com/nalexn/ViewInspector.git
Computed https://github.com/nalexn/ViewInspector.git at 0.3.8 (0.53s)
Creating working copy for https://github.com/nalexn/ViewInspector.git
Working copy of https://github.com/nalexn/ViewInspector.git resolved at 0.3.8
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/chris-swift-dev/RemoteImage.git
warning: 'remoteimage': skipping cache due to an error: Failed to clone repository https://github.com/chris-swift-dev/RemoteImage.git:
    Cloning into bare repository '/Users/admin/Library/Caches/org.swift.swiftpm/repositories/RemoteImage-aa89b0d3'...
    fatal: unable to access 'https://github.com/chris-swift-dev/RemoteImage.git/': Failed to connect to github.com port 443 after 75004 ms: Couldn't connect to server
error: Failed to clone repository https://github.com/chris-swift-dev/RemoteImage.git:
    Cloning into bare repository '/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/repositories/RemoteImage-aa89b0d3'...
    fatal: unable to access 'https://github.com/chris-swift-dev/RemoteImage.git/': Failed to connect to github.com port 443 after 75033 ms: Couldn't connect to server
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/chris-swift-dev/RemoteImage.git
https://github.com/chris-swift-dev/RemoteImage.git
{
  "dependencies" : [
    {
      "identity" : "viewinspector",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.8",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nalexn/ViewInspector.git"
    }
  ],
  "manifest_display_name" : "RemoteImage",
  "name" : "RemoteImage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "RemoteImage",
      "targets" : [
        "RemoteImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RemoteImageTests",
      "module_type" : "SwiftTarget",
      "name" : "RemoteImageTests",
      "path" : "Tests/RemoteImageTests",
      "product_dependencies" : [
        "ViewInspector"
      ],
      "sources" : [
        "Extensions/RemoteImage+Inspectable.swift",
        "Extensions/URLSession+RemoteImageURLDataPublisherTests.swift",
        "Mocks/MockImageManager.swift",
        "Mocks/MockPHAsset.swift",
        "Mocks/MockPHAssetFetchResult.swift",
        "Mocks/MockPhotoKitService.swift",
        "Mocks/MockRemoteImageServiceDependencies.swift",
        "Mocks/MockRemoteImageURLDataPublisher.swift",
        "Models/PhotoKitServiceErrorTests.swift",
        "Models/RemoteImageServiceErrorTests.swift",
        "Services/DefaultRemoteImageCacheTests.swift",
        "Services/PhotoKitServiceTests.swift",
        "Services/RemoteImageServiceDependenciesTests.swift",
        "Services/RemoteImageServiceFactoryTests.swift",
        "Services/RemoteImageServiceTests.swift",
        "Views/RemoteImageTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "RemoteImage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RemoteImage",
      "module_type" : "SwiftTarget",
      "name" : "RemoteImage",
      "path" : "Sources/RemoteImage",
      "product_memberships" : [
        "RemoteImage"
      ],
      "sources" : [
        "private/Models/RemoteImageServiceError.swift",
        "private/Protocols/RemoteImageURLDataPublisherProvider.swift",
        "private/Services/DefaultRemoteImageCache.swift",
        "private/Services/DefaultRemoteImageServiceDependencies.swift",
        "private/Services/PhotoKitService.swift",
        "public/Extensions/URLSession+RemoteImageURLDataPublisher.swift",
        "public/Models/PhotoKitServiceError.swift",
        "public/Models/RemoteImageState.swift",
        "public/Models/RemoteImageType.swift",
        "public/Models/UniversalImage.swift",
        "public/Protocols/RemoteImageCache.swift",
        "public/Protocols/RemoteImageService.swift",
        "public/Protocols/RemoteImageURLDataPublisher.swift",
        "public/Services/DefaultRemoteImageService.swift",
        "public/Services/DefaultRemoteImageServiceFactory.swift",
        "public/Views/RemoteImage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/18] Compiling RemoteImage DefaultRemoteImageService.swift
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/public/Services/DefaultRemoteImageService.swift:18:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |     @Published public var state: RemoteImageState = .loading
17 |
18 |     public static var cache: RemoteImageCache = DefaultRemoteImageCache()
   |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cache' 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
19 |     public static var cacheKeyProvider: RemoteImageCacheKeyProvider = { remoteImageType in
20 |         switch remoteImageType {
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/public/Services/DefaultRemoteImageService.swift:19:23: warning: static property 'cacheKeyProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 |     public static var cache: RemoteImageCache = DefaultRemoteImageCache()
19 |     public static var cacheKeyProvider: RemoteImageCacheKeyProvider = { remoteImageType in
   |                       |- warning: static property 'cacheKeyProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cacheKeyProvider' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cacheKeyProvider' 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
20 |         switch remoteImageType {
21 |         case .phAsset(let localIdentifier): return localIdentifier as NSString
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/public/Services/DefaultRemoteImageService.swift:78:47: warning: 'phAsset(localIdentifier:)' is deprecated: Will be removed in the future because the localIdentifier is device specific and therefore cannot be used to uniquely identify a PHAsset across devices.
76 |
77 |     func fetchImage(withLocalIdentifier localIdentifier: String) {
78 |         let cacheKey = Self.cacheKeyProvider(.phAsset(localIdentifier: localIdentifier))
   |                                               `- warning: 'phAsset(localIdentifier:)' is deprecated: Will be removed in the future because the localIdentifier is device specific and therefore cannot be used to uniquely identify a PHAsset across devices.
79 |         if let image = Self.cache.object(forKey: cacheKey) {
80 |             state = .image(image)
[4/19] Compiling RemoteImage RemoteImageCache.swift
[5/19] Compiling RemoteImage RemoteImageService.swift
[6/19] Compiling RemoteImage DefaultRemoteImageServiceFactory.swift
[7/19] Compiling RemoteImage RemoteImageURLDataPublisher.swift
[8/19] Compiling RemoteImage PhotoKitServiceError.swift
[9/19] Compiling RemoteImage RemoteImageState.swift
[10/19] Compiling RemoteImage RemoteImageType.swift
[11/19] Compiling RemoteImage UniversalImage.swift
[12/19] Emitting module RemoteImage
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/private/Services/PhotoKitService.swift:22:16: warning: static property 'asset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | final class PhotoKitService {
22 |     static var asset: PHAsset.Type = PHAsset.self
   |                |- warning: static property 'asset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'asset' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'asset' 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
23 |     static var imageManager: PHImageManager = PHImageManager.default()
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/private/Services/PhotoKitService.swift:23:16: warning: static property 'imageManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | final class PhotoKitService {
22 |     static var asset: PHAsset.Type = PHAsset.self
23 |     static var imageManager: PHImageManager = PHImageManager.default()
   |                |- warning: static property 'imageManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'imageManager' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'imageManager' 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
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/public/Services/DefaultRemoteImageService.swift:18:23: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |     @Published public var state: RemoteImageState = .loading
17 |
18 |     public static var cache: RemoteImageCache = DefaultRemoteImageCache()
   |                       |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cache' 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
19 |     public static var cacheKeyProvider: RemoteImageCacheKeyProvider = { remoteImageType in
20 |         switch remoteImageType {
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/public/Services/DefaultRemoteImageService.swift:19:23: warning: static property 'cacheKeyProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 |     public static var cache: RemoteImageCache = DefaultRemoteImageCache()
19 |     public static var cacheKeyProvider: RemoteImageCacheKeyProvider = { remoteImageType in
   |                       |- warning: static property 'cacheKeyProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cacheKeyProvider' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'cacheKeyProvider' 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
20 |         switch remoteImageType {
21 |         case .phAsset(let localIdentifier): return localIdentifier as NSString
[13/19] Compiling RemoteImage DefaultRemoteImageCache.swift
[14/19] Compiling RemoteImage DefaultRemoteImageServiceDependencies.swift
[15/19] Compiling RemoteImage PhotoKitService.swift
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/private/Services/PhotoKitService.swift:22:16: warning: static property 'asset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | final class PhotoKitService {
22 |     static var asset: PHAsset.Type = PHAsset.self
   |                |- warning: static property 'asset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'asset' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'asset' 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
23 |     static var imageManager: PHImageManager = PHImageManager.default()
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/private/Services/PhotoKitService.swift:23:16: warning: static property 'imageManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | final class PhotoKitService {
22 |     static var asset: PHAsset.Type = PHAsset.self
23 |     static var imageManager: PHImageManager = PHImageManager.default()
   |                |- warning: static property 'imageManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'imageManager' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'imageManager' 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
24 | }
25 |
[16/19] Compiling RemoteImage URLSession+RemoteImageURLDataPublisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/private/Services/PhotoKitService.swift:22:16: warning: static property 'asset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | final class PhotoKitService {
22 |     static var asset: PHAsset.Type = PHAsset.self
   |                |- warning: static property 'asset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'asset' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'asset' 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
23 |     static var imageManager: PHImageManager = PHImageManager.default()
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RemoteImage/private/Services/PhotoKitService.swift:23:16: warning: static property 'imageManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | final class PhotoKitService {
22 |     static var asset: PHAsset.Type = PHAsset.self
23 |     static var imageManager: PHImageManager = PHImageManager.default()
   |                |- warning: static property 'imageManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'imageManager' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'imageManager' 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
24 | }
25 |
[17/19] Compiling RemoteImage RemoteImageServiceError.swift
[18/19] Compiling RemoteImage RemoteImageURLDataPublisherProvider.swift
[19/19] Compiling RemoteImage RemoteImage.swift
Build complete! (15.84s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "viewinspector",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.8",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nalexn/ViewInspector.git"
    }
  ],
  "manifest_display_name" : "RemoteImage",
  "name" : "RemoteImage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "RemoteImage",
      "targets" : [
        "RemoteImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RemoteImageTests",
      "module_type" : "SwiftTarget",
      "name" : "RemoteImageTests",
      "path" : "Tests/RemoteImageTests",
      "product_dependencies" : [
        "ViewInspector"
      ],
      "sources" : [
        "Extensions/RemoteImage+Inspectable.swift",
        "Extensions/URLSession+RemoteImageURLDataPublisherTests.swift",
        "Mocks/MockImageManager.swift",
        "Mocks/MockPHAsset.swift",
        "Mocks/MockPHAssetFetchResult.swift",
        "Mocks/MockPhotoKitService.swift",
        "Mocks/MockRemoteImageServiceDependencies.swift",
        "Mocks/MockRemoteImageURLDataPublisher.swift",
        "Models/PhotoKitServiceErrorTests.swift",
        "Models/RemoteImageServiceErrorTests.swift",
        "Services/DefaultRemoteImageCacheTests.swift",
        "Services/PhotoKitServiceTests.swift",
        "Services/RemoteImageServiceDependenciesTests.swift",
        "Services/RemoteImageServiceFactoryTests.swift",
        "Services/RemoteImageServiceTests.swift",
        "Views/RemoteImageTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "RemoteImage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RemoteImage",
      "module_type" : "SwiftTarget",
      "name" : "RemoteImage",
      "path" : "Sources/RemoteImage",
      "product_memberships" : [
        "RemoteImage"
      ],
      "sources" : [
        "private/Models/RemoteImageServiceError.swift",
        "private/Protocols/RemoteImageURLDataPublisherProvider.swift",
        "private/Services/DefaultRemoteImageCache.swift",
        "private/Services/DefaultRemoteImageServiceDependencies.swift",
        "private/Services/PhotoKitService.swift",
        "public/Extensions/URLSession+RemoteImageURLDataPublisher.swift",
        "public/Models/PhotoKitServiceError.swift",
        "public/Models/RemoteImageState.swift",
        "public/Models/RemoteImageType.swift",
        "public/Models/UniversalImage.swift",
        "public/Protocols/RemoteImageCache.swift",
        "public/Protocols/RemoteImageService.swift",
        "public/Protocols/RemoteImageURLDataPublisher.swift",
        "public/Services/DefaultRemoteImageService.swift",
        "public/Services/DefaultRemoteImageServiceFactory.swift",
        "public/Views/RemoteImage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.