Build Information
Successful build of youtube-metadata-swift, reference main (d79b32
), with Swift 6.0 (beta) for macOS (SPM) on 16 Sep 2024 09:45:59 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ezefranca/youtube-metadata-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ezefranca/youtube-metadata-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d79b32c Update README.md
Cloned https://github.com/ezefranca/youtube-metadata-swift.git
Revision (git rev-parse @):
d79b32cfcc1298809ef2605f6f20d622eba626f7
SUCCESS checkout https://github.com/ezefranca/youtube-metadata-swift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ezefranca/youtube-metadata-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write ytmeta-entitlement.plist
[3/7] Write swift-version-117DEE11B69C53C9.txt
[5/9] Compiling YTMetadataRequesterLib YTMetadataRequester.swift
[6/9] Emitting module YTMetadataRequesterLib
[7/11] Compiling ytmeta main.swift
/Users/admin/builder/spi-builder-workspace/Sources/ytmeta/main.swift:40:44: warning: non-sendable type 'YTMetadataRequester.Metadata' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
38 | Task {
39 | do {
40 | let metadata = try await requester.getMetadata(for: videoURL)
| `- warning: non-sendable type 'YTMetadataRequester.Metadata' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
41 | if let prettyMetadata = metadata.prettyPrinted() {
42 | print(prettyMetadata)
/Users/admin/builder/spi-builder-workspace/Sources/YTMetadataRequesterLib/YTMetadataRequester.swift:7:19: note: struct 'Metadata' does not conform to the 'Sendable' protocol
5 |
6 | /// A struct representing the metadata of a YouTube video.
7 | public struct Metadata: Codable {
| `- note: struct 'Metadata' does not conform to the 'Sendable' protocol
8 | /// The name of the author of the video.
9 | public let authorName: String
/Users/admin/builder/spi-builder-workspace/Sources/ytmeta/main.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'YTMetadataRequesterLib'
1 | import Foundation
2 | import YTMetadataRequesterLib
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'YTMetadataRequesterLib'
3 |
4 | func printHelp() {
/Users/admin/builder/spi-builder-workspace/Sources/ytmeta/main.swift:40:44: warning: sending 'requester' risks causing data races; this is an error in the Swift 6 language mode
38 | Task {
39 | do {
40 | let metadata = try await requester.getMetadata(for: videoURL)
| |- warning: sending 'requester' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'requester' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
41 | if let prettyMetadata = metadata.prettyPrinted() {
42 | print(prettyMetadata)
[8/11] Emitting module ytmeta
/Users/admin/builder/spi-builder-workspace/Sources/ytmeta/main.swift:40:44: warning: non-sendable type 'YTMetadataRequester.Metadata' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
38 | Task {
39 | do {
40 | let metadata = try await requester.getMetadata(for: videoURL)
| `- warning: non-sendable type 'YTMetadataRequester.Metadata' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
41 | if let prettyMetadata = metadata.prettyPrinted() {
42 | print(prettyMetadata)
/Users/admin/builder/spi-builder-workspace/Sources/YTMetadataRequesterLib/YTMetadataRequester.swift:7:19: note: struct 'Metadata' does not conform to the 'Sendable' protocol
5 |
6 | /// A struct representing the metadata of a YouTube video.
7 | public struct Metadata: Codable {
| `- note: struct 'Metadata' does not conform to the 'Sendable' protocol
8 | /// The name of the author of the video.
9 | public let authorName: String
/Users/admin/builder/spi-builder-workspace/Sources/ytmeta/main.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'YTMetadataRequesterLib'
1 | import Foundation
2 | import YTMetadataRequesterLib
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'YTMetadataRequesterLib'
3 |
4 | func printHelp() {
/Users/admin/builder/spi-builder-workspace/Sources/ytmeta/main.swift:40:44: warning: sending 'requester' risks causing data races; this is an error in the Swift 6 language mode
38 | Task {
39 | do {
40 | let metadata = try await requester.getMetadata(for: videoURL)
| |- warning: sending 'requester' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'requester' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
41 | if let prettyMetadata = metadata.prettyPrinted() {
42 | print(prettyMetadata)
[8/11] Write Objects.LinkFileList
[9/11] Linking ytmeta
[10/11] Applying ytmeta
Build complete! (6.96s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "youtube-metadata-swift",
"name" : "youtube-metadata-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "ytmeta",
"targets" : [
"ytmeta"
],
"type" : {
"executable" : null
}
},
{
"name" : "YTMetadataRequesterLib",
"targets" : [
"YTMetadataRequesterLib"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ytmeta",
"module_type" : "SwiftTarget",
"name" : "ytmeta",
"path" : "Sources/ytmeta",
"product_memberships" : [
"ytmeta"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"YTMetadataRequesterLib"
],
"type" : "executable"
},
{
"c99name" : "YTMetadataRequesterTests",
"module_type" : "SwiftTarget",
"name" : "YTMetadataRequesterTests",
"path" : "Tests/YTMetadataRequesterTests",
"sources" : [
"YTMetadataRequesterTests.swift"
],
"target_dependencies" : [
"YTMetadataRequesterLib"
],
"type" : "test"
},
{
"c99name" : "YTMetadataRequesterLib",
"module_type" : "SwiftTarget",
"name" : "YTMetadataRequesterLib",
"path" : "Sources/YTMetadataRequesterLib",
"product_memberships" : [
"ytmeta",
"YTMetadataRequesterLib"
],
"sources" : [
"YTMetadataRequester.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.