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 SwiftUIWPArticleLoader, reference master (78356e), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 05:41:57 UTC.

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tkoehlerlg/SwiftUIWPArticleLoader
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 78356ef Update README.md
Cloned https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
Revision (git rev-parse @):
78356efd74bb9899d7db372d06248329fd35f454
SUCCESS checkout https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftuiwparticleloader",
      "name": "SwiftUIWPArticleLoader",
      "url": "https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIWPArticleLoader",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
[1/535] Fetching swiftuiwparticleloader
Fetched https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git from cache (0.65s)
Creating working copy for https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
Working copy of https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git resolved at master (78356ef)
warning: '.resolve-product-dependencies': dependency 'swiftuiwparticleloader' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUIWPArticleLoader",
  "name" : "SwiftUIWPArticleLoader",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIWPArticleLoader",
      "targets" : [
        "SwiftUIWPArticleLoader"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIWPArticleLoaderTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIWPArticleLoaderTests",
      "path" : "Tests/SwiftUIWPArticleLoaderTests",
      "sources" : [
        "JSON.swift",
        "SwiftUIWPArticleLoaderTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIWPArticleLoader"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIWPArticleLoader",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIWPArticleLoader",
      "path" : "Sources/SwiftUIWPArticleLoader",
      "product_memberships" : [
        "SwiftUIWPArticleLoader"
      ],
      "sources" : [
        "Helper/AsyncImage.swift",
        "Helper/Date+Local.swift",
        "Helper/Date+WPFormat.swift",
        "Helper/ImageLoader.swift",
        "Helper/URL+StaticString.swift",
        "Models/Article.swift",
        "Models/Contentful/ContentfulArticle.swift",
        "Models/Contentful/ContentfulAvatarURLs.swift",
        "Models/Contentful/ContentfulContent.swift",
        "Models/Contentful/ContentfulMedia.swift",
        "Models/Contentful/ContentfulTag.swift",
        "Models/Contentful/ContentfulUser.swift",
        "Models/CostumeError.swift",
        "Models/Format.swift",
        "Models/Status/PublishStatus.swift",
        "Models/Status/SecureStatus.swift",
        "Models/Tag.swift",
        "Models/User.swift",
        "Services/ArticleLoadingService.swift",
        "WPBlogLoader.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/21] Compiling SwiftUIWPArticleLoader PublishStatus.swift
[4/21] Compiling SwiftUIWPArticleLoader SecureStatus.swift
[5/21] Compiling SwiftUIWPArticleLoader ContentfulContent.swift
[6/21] Compiling SwiftUIWPArticleLoader ContentfulMedia.swift
[7/21] Compiling SwiftUIWPArticleLoader CostumeError.swift
[8/21] Compiling SwiftUIWPArticleLoader Format.swift
[9/21] Compiling SwiftUIWPArticleLoader ContentfulTag.swift
[10/21] Compiling SwiftUIWPArticleLoader ContentfulUser.swift
[11/21] Compiling SwiftUIWPArticleLoader ContentfulArticle.swift
[12/21] Compiling SwiftUIWPArticleLoader ContentfulAvatarURLs.swift
[13/21] Compiling SwiftUIWPArticleLoader Tag.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Tag.swift:36:23: warning: static property 'mockCategory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |     //MARK: mock
36 |     public static var mockCategory: Tag = .init(
   |                       |- warning: static property 'mockCategory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mockCategory' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mockCategory' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         id: 0,
38 |         description: "A Category.",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Tag.swift:43:23: warning: static property 'mockTag' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |         slug: "category"
42 |     )
43 |     public static var mockTag: Tag = .init(
   |                       |- warning: static property 'mockTag' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mockTag' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mockTag' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |         id: 0,
45 |         description: "A Tag.",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/User.swift:53:23: warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 |         #endif
52 |     }
53 |     public static var mock: User = .init()
   |                       |- warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mock' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mock' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | }
55 |
[14/21] Compiling SwiftUIWPArticleLoader User.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Tag.swift:36:23: warning: static property 'mockCategory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |     //MARK: mock
36 |     public static var mockCategory: Tag = .init(
   |                       |- warning: static property 'mockCategory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mockCategory' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mockCategory' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         id: 0,
38 |         description: "A Category.",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Tag.swift:43:23: warning: static property 'mockTag' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |         slug: "category"
42 |     )
43 |     public static var mockTag: Tag = .init(
   |                       |- warning: static property 'mockTag' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mockTag' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mockTag' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |         id: 0,
45 |         description: "A Tag.",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/User.swift:53:23: warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 |         #endif
52 |     }
53 |     public static var mock: User = .init()
   |                       |- warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mock' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mock' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | }
55 |
[15/21] Compiling SwiftUIWPArticleLoader URL+StaticString.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Article.swift:107:23: warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 |         tags = [.mockTag]
106 |     }
107 |     public static var mock: Self = .init()
    |                       |- warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'mock' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'mock' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | }
109 |
[16/21] Compiling SwiftUIWPArticleLoader Article.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Article.swift:107:23: warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 |         tags = [.mockTag]
106 |     }
107 |     public static var mock: Self = .init()
    |                       |- warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'mock' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'mock' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | }
109 |
[17/21] Compiling SwiftUIWPArticleLoader Date+WPFormat.swift
[18/21] Compiling SwiftUIWPArticleLoader ImageLoader.swift
[19/23] Compiling SwiftUIWPArticleLoader ArticleLoadingService.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Services/ArticleLoadingService.swift:20:25: warning: capture of 'promise' with non-sendable type '(Result<[Article], any Error>) -> Void' in a '@Sendable' closure
18 |                     do {
19 |                         let articles = try JSONDecoder().decode([ContentfulArticle].self, from: data)
20 |                         promise(.success(articles.map({ Article(from: $0) })))
   |                         |- warning: capture of 'promise' with non-sendable type '(Result<[Article], any Error>) -> Void' in a '@Sendable' closure
   |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |                     } catch {
22 |                         promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Services/ArticleLoadingService.swift:36:25: warning: capture of 'promise' with non-sendable type '(Result<[ContentfulArticle], any Error>) -> Void' in a '@Sendable' closure
34 |                     do {
35 |                         let articles = try JSONDecoder().decode([ContentfulArticle].self, from: data)
36 |                         promise(.success(articles))
   |                         |- warning: capture of 'promise' with non-sendable type '(Result<[ContentfulArticle], any Error>) -> Void' in a '@Sendable' closure
   |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
37 |                     } catch {
38 |                         promise(.failure(error))
[20/23] Compiling SwiftUIWPArticleLoader WPBlogLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Services/ArticleLoadingService.swift:20:25: warning: capture of 'promise' with non-sendable type '(Result<[Article], any Error>) -> Void' in a '@Sendable' closure
18 |                     do {
19 |                         let articles = try JSONDecoder().decode([ContentfulArticle].self, from: data)
20 |                         promise(.success(articles.map({ Article(from: $0) })))
   |                         |- warning: capture of 'promise' with non-sendable type '(Result<[Article], any Error>) -> Void' in a '@Sendable' closure
   |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |                     } catch {
22 |                         promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Services/ArticleLoadingService.swift:36:25: warning: capture of 'promise' with non-sendable type '(Result<[ContentfulArticle], any Error>) -> Void' in a '@Sendable' closure
34 |                     do {
35 |                         let articles = try JSONDecoder().decode([ContentfulArticle].self, from: data)
36 |                         promise(.success(articles))
   |                         |- warning: capture of 'promise' with non-sendable type '(Result<[ContentfulArticle], any Error>) -> Void' in a '@Sendable' closure
   |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
37 |                     } catch {
38 |                         promise(.failure(error))
[21/23] Compiling SwiftUIWPArticleLoader AsyncImage.swift
[22/23] Compiling SwiftUIWPArticleLoader Date+Local.swift
[23/23] Emitting module SwiftUIWPArticleLoader
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Article.swift:107:23: warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 |         tags = [.mockTag]
106 |     }
107 |     public static var mock: Self = .init()
    |                       |- warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'mock' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'mock' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | }
109 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Tag.swift:36:23: warning: static property 'mockCategory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |     //MARK: mock
36 |     public static var mockCategory: Tag = .init(
   |                       |- warning: static property 'mockCategory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mockCategory' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mockCategory' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         id: 0,
38 |         description: "A Category.",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/Tag.swift:43:23: warning: static property 'mockTag' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |         slug: "category"
42 |     )
43 |     public static var mockTag: Tag = .init(
   |                       |- warning: static property 'mockTag' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mockTag' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mockTag' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |         id: 0,
45 |         description: "A Tag.",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIWPArticleLoader/Models/User.swift:53:23: warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 |         #endif
52 |     }
53 |     public static var mock: User = .init()
   |                       |- warning: static property 'mock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'mock' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'mock' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | }
55 |
Build complete! (9.31s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUIWPArticleLoader",
  "name" : "SwiftUIWPArticleLoader",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIWPArticleLoader",
      "targets" : [
        "SwiftUIWPArticleLoader"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIWPArticleLoaderTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIWPArticleLoaderTests",
      "path" : "Tests/SwiftUIWPArticleLoaderTests",
      "sources" : [
        "JSON.swift",
        "SwiftUIWPArticleLoaderTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIWPArticleLoader"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIWPArticleLoader",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIWPArticleLoader",
      "path" : "Sources/SwiftUIWPArticleLoader",
      "product_memberships" : [
        "SwiftUIWPArticleLoader"
      ],
      "sources" : [
        "Helper/AsyncImage.swift",
        "Helper/Date+Local.swift",
        "Helper/Date+WPFormat.swift",
        "Helper/ImageLoader.swift",
        "Helper/URL+StaticString.swift",
        "Models/Article.swift",
        "Models/Contentful/ContentfulArticle.swift",
        "Models/Contentful/ContentfulAvatarURLs.swift",
        "Models/Contentful/ContentfulContent.swift",
        "Models/Contentful/ContentfulMedia.swift",
        "Models/Contentful/ContentfulTag.swift",
        "Models/Contentful/ContentfulUser.swift",
        "Models/CostumeError.swift",
        "Models/Format.swift",
        "Models/Status/PublishStatus.swift",
        "Models/Status/SecureStatus.swift",
        "Models/Tag.swift",
        "Models/User.swift",
        "Services/ArticleLoadingService.swift",
        "WPBlogLoader.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.