Build Information
Successful build of SwiftUIWPArticleLoader, reference 1.3.3 (85ec6b
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 18:25:07 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
Reference: 1.3.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tkoehlerlg/SwiftUIWPArticleLoader
* tag 1.3.3 -> FETCH_HEAD
HEAD is now at 85ec6b5 bug fix title of ContentfulArticle
Cloned https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
Revision (git rev-parse @):
85ec6b5bbd9790cd21249c4a525376158ad7c881
SUCCESS checkout https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git at 1.3.3
========================================
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.77s)
Creating working copy for https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
Working copy of https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git resolved at 1.3.3 (85ec6b5)
warning: '.resolve-product-dependencies': dependency 'swiftuiwparticleloader' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/tkoehlerlg/SwiftUIWPArticleLoader.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.txt
[3/21] 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: annotate 'mock' 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
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: annotate 'mockCategory' 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
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: annotate 'mockTag' 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
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: annotate 'mock' 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
54 | }
55 |
[4/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: annotate 'mock' 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
108 | }
109 |
/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: annotate 'mock' 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
54 | }
55 |
/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: annotate 'mockCategory' 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
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: annotate 'mockTag' 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
44 | id: 0,
45 | description: "A Tag.",
[5/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: annotate 'mock' 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
108 | }
109 |
/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: annotate 'mock' 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
54 | }
55 |
/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: annotate 'mockCategory' 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
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: annotate 'mockTag' 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
44 | id: 0,
45 | description: "A Tag.",
[6/23] Compiling SwiftUIWPArticleLoader ContentfulTag.swift
[7/23] Compiling SwiftUIWPArticleLoader ContentfulUser.swift
[8/23] 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: annotate 'mockCategory' 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
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: annotate 'mockTag' 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
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: annotate 'mock' 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
54 | }
55 |
[9/23] 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: annotate 'mockCategory' 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
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: annotate 'mockTag' 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
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: annotate 'mock' 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
54 | }
55 |
[10/23] Compiling SwiftUIWPArticleLoader PublishStatus.swift
[11/23] Compiling SwiftUIWPArticleLoader SecureStatus.swift
[12/23] Compiling SwiftUIWPArticleLoader CostumeError.swift
[13/23] Compiling SwiftUIWPArticleLoader Format.swift
[14/23] Compiling SwiftUIWPArticleLoader Date+WPFormat.swift
[15/23] Compiling SwiftUIWPArticleLoader ImageLoader.swift
[16/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
37 | } catch {
38 | promise(.failure(error))
[17/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
37 | } catch {
38 | promise(.failure(error))
[18/23] Compiling SwiftUIWPArticleLoader ContentfulArticle.swift
[19/23] Compiling SwiftUIWPArticleLoader ContentfulAvatarURLs.swift
[20/23] Compiling SwiftUIWPArticleLoader ContentfulContent.swift
[21/23] Compiling SwiftUIWPArticleLoader ContentfulMedia.swift
[22/23] Compiling SwiftUIWPArticleLoader AsyncImage.swift
[23/23] Compiling SwiftUIWPArticleLoader Date+Local.swift
Build complete! (21.13s)
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.