Build Information
Successful build of GoogleScholarSwift, reference main (3c7b00
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 18:06:28 UTC.
Swift 6 data race errors: 2
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/ezefranca/GoogleScholarSwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ezefranca/GoogleScholarSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3c7b005 Adjustments to V1.2
Cloned https://github.com/ezefranca/GoogleScholarSwift.git
Revision (git rev-parse @):
3c7b0054008736eaa287bcba776c4acedb12f89c
SUCCESS checkout https://github.com/ezefranca/GoogleScholarSwift.git at main
Fetching https://github.com/apple/swift-docc-plugin.git
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/scinfu/SwiftSoup.git
[1/3197] Fetching swiftsoup
[353/5235] Fetching swiftsoup, swift-docc-plugin
[1026/8388] Fetching swiftsoup, swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.35s)
Fetched https://github.com/scinfu/SwiftSoup.git from cache (1.35s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.35s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.3.0 (3.25s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.2 (0.68s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.69s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.2
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
========================================
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": "googlescholarswift",
"name": "GoogleScholarSwift",
"url": "https://github.com/ezefranca/GoogleScholarSwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GoogleScholarSwift",
"dependencies": [
{
"identity": "swiftsoup",
"name": "SwiftSoup",
"url": "https://github.com/scinfu/SwiftSoup.git",
"version": "2.7.6",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSoup",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/ezefranca/GoogleScholarSwift.git
[1/373] Fetching googlescholarswift
Fetched https://github.com/ezefranca/GoogleScholarSwift.git from cache (0.95s)
Fetching https://github.com/scinfu/SwiftSoup.git from cache
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.53s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.6 (0.68s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.6
Creating working copy for https://github.com/ezefranca/GoogleScholarSwift.git
Working copy of https://github.com/ezefranca/GoogleScholarSwift.git resolved at main (3c7b005)
warning: '.resolve-product-dependencies': dependency 'googlescholarswift' is not used by any target
Found 1 product dependencies
- SwiftSoup
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ezefranca/GoogleScholarSwift.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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/6] Write sources
[4/6] Copying PrivacyInfo.xcprivacy
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/61] Emitting module SwiftSoup
[8/66] Compiling SwiftSoup ArrayExt.swift
[9/66] Compiling SwiftSoup Attribute.swift
[10/66] Compiling SwiftSoup Attributes.swift
[11/66] Compiling SwiftSoup BinarySearch.swift
[12/66] Compiling SwiftSoup BooleanAttribute.swift
[13/66] Compiling SwiftSoup CharacterExt.swift
[14/66] Compiling SwiftSoup QueryParser.swift
[15/66] Compiling SwiftSoup SerializationException.swift
[16/66] Compiling SwiftSoup SimpleDictionary.swift
[17/66] Compiling SwiftSoup StreamReader.swift
[18/66] Compiling SwiftSoup String.swift
[19/66] Compiling SwiftSoup StringBuilder.swift
[20/66] Compiling SwiftSoup CharacterReader.swift
[21/66] Compiling SwiftSoup Cleaner.swift
[22/66] Compiling SwiftSoup Collector.swift
[23/66] Compiling SwiftSoup CombiningEvaluator.swift
[24/66] Compiling SwiftSoup Comment.swift
[25/66] Compiling SwiftSoup Connection.swift
[26/66] Compiling SwiftSoup OrderedSet.swift
[27/66] Compiling SwiftSoup ParseError.swift
[28/66] Compiling SwiftSoup ParseErrorList.swift
[29/66] Compiling SwiftSoup ParseSettings.swift
[30/66] Compiling SwiftSoup Parser.swift
[31/66] Compiling SwiftSoup Pattern.swift
[32/66] Compiling SwiftSoup StringUtil.swift
[33/66] Compiling SwiftSoup StructuralEvaluator.swift
[34/66] Compiling SwiftSoup SwiftSoup.swift
[35/66] Compiling SwiftSoup Tag.swift
[36/66] Compiling SwiftSoup TextNode.swift
[37/66] Compiling SwiftSoup Token.swift
[38/66] Compiling SwiftSoup Validate.swift
[39/66] Compiling SwiftSoup Whitelist.swift
[40/66] Compiling SwiftSoup XmlDeclaration.swift
[41/66] Compiling SwiftSoup XmlTreeBuilder.swift
[42/66] Compiling SwiftSoup resource_bundle_accessor.swift
[43/66] Compiling SwiftSoup TokenQueue.swift
[44/66] Compiling SwiftSoup Tokeniser.swift
[45/66] Compiling SwiftSoup TokeniserState.swift
[46/66] Compiling SwiftSoup TreeBuilder.swift
[47/66] Compiling SwiftSoup UnfairLock.swift
[48/66] Compiling SwiftSoup UnicodeScalar.swift
[49/66] Compiling SwiftSoup CssSelector.swift
[50/66] Compiling SwiftSoup DataNode.swift
[51/66] Compiling SwiftSoup DataUtil.swift
[52/66] Compiling SwiftSoup Document.swift
[53/66] Compiling SwiftSoup DocumentType.swift
[54/66] Compiling SwiftSoup Element.swift
[55/66] Compiling SwiftSoup Elements.swift
[56/66] Compiling SwiftSoup Entities.swift
[57/66] Compiling SwiftSoup Evaluator.swift
[58/66] Compiling SwiftSoup Exception.swift
[59/66] Compiling SwiftSoup FormElement.swift
[60/66] Compiling SwiftSoup HtmlTreeBuilder.swift
[61/66] Compiling SwiftSoup HtmlTreeBuilderState.swift
[62/66] Compiling SwiftSoup HttpStatusException.swift
[63/66] Compiling SwiftSoup Mutex.swift
[64/66] Compiling SwiftSoup Node.swift
[65/66] Compiling SwiftSoup NodeTraversor.swift
[66/66] Compiling SwiftSoup NodeVisitor.swift
[67/82] Compiling GoogleScholarSwift GoogleScholarID.swift
[68/83] Compiling GoogleScholarSwift GoogleScholarCacheConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
5 | public struct GoogleScholarCacheConfig {
| `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
6 | public let publicationCountLimit: Int
7 | public let publicationTotalCostLimit: Int
:
12 |
13 | /// Default cache configuration.
14 | public static let `default` = GoogleScholarCacheConfig(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
15 | publicationCountLimit: 10000,
16 | publicationTotalCostLimit: 1024 * 1024 * 10,
[69/83] Compiling GoogleScholarSwift CoAuthor.swift
[70/83] Compiling GoogleScholarSwift ArticleLink.swift
[71/83] Compiling GoogleScholarSwift Author.swift
[72/83] Compiling GoogleScholarSwift NetworkService.swift
[73/83] Compiling GoogleScholarSwift Article.swift
[74/83] Compiling GoogleScholarSwift AuthorMetrics.swift
[75/83] Compiling GoogleScholarSwift CitationMetrics.swift
[76/83] Compiling GoogleScholarSwift Publication.swift
[77/83] Compiling GoogleScholarSwift SortBy.swift
[78/83] Compiling GoogleScholarSwift CacheService.swift
[79/83] Compiling GoogleScholarSwift Constants.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | ]
26 |
27 | public static var cookies: [String: String] = [
| |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cookies' 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
28 | "CONSENT": "PENDING+300"
29 | ]
[80/83] Compiling GoogleScholarSwift FetchQuantity.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | ]
26 |
27 | public static var cookies: [String: String] = [
| |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cookies' 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
28 | "CONSENT": "PENDING+300"
29 | ]
[81/83] Emitting module GoogleScholarSwift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | ]
26 |
27 | public static var cookies: [String: String] = [
| |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'cookies' 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
28 | "CONSENT": "PENDING+300"
29 | ]
/Users/admin/builder/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
5 | public struct GoogleScholarCacheConfig {
| `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
6 | public let publicationCountLimit: Int
7 | public let publicationTotalCostLimit: Int
:
12 |
13 | /// Default cache configuration.
14 | public static let `default` = GoogleScholarCacheConfig(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
15 | publicationCountLimit: 10000,
16 | publicationTotalCostLimit: 1024 * 1024 * 10,
[82/83] Compiling GoogleScholarSwift GoogleScholarFetcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/HTMLParser.swift:67:19: warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
65 |
66 | guard let totalCitationsElement = try? doc.select("#gsc_rsb_st td.gsc_rsb_std").first()?.text(),
67 | let totalPublications = try? doc.select(".gsc_a_tr").count else {
| `- warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
68 | throw NSError(domain: "Parsing Error", code: 0, userInfo: nil)
69 | }
[83/83] Compiling GoogleScholarSwift HTMLParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/HTMLParser.swift:67:19: warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
65 |
66 | guard let totalCitationsElement = try? doc.select("#gsc_rsb_st td.gsc_rsb_std").first()?.text(),
67 | let totalPublications = try? doc.select(".gsc_a_tr").count else {
| `- warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
68 | throw NSError(domain: "Parsing Error", code: 0, userInfo: nil)
69 | }
Build complete! (37.86s)
warning: 'swiftsoup': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoWatchOS.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfotvOS.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Info.plist
Build complete.
{
"dependencies" : [
{
"identity" : "swiftsoup",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/scinfu/SwiftSoup.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin.git"
}
],
"manifest_display_name" : "GoogleScholarSwift",
"name" : "GoogleScholarSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "GoogleScholarSwift",
"targets" : [
"GoogleScholarSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GoogleScholarSwiftTests",
"module_type" : "SwiftTarget",
"name" : "GoogleScholarSwiftTests",
"path" : "Tests",
"sources" : [
"GoogleScholarFetcherTests/GoogleScholarSwiftTests.swift"
],
"target_dependencies" : [
"GoogleScholarSwift"
],
"type" : "test"
},
{
"c99name" : "GoogleScholarSwift",
"module_type" : "SwiftTarget",
"name" : "GoogleScholarSwift",
"path" : "Sources/GoogleScholarSwift",
"product_dependencies" : [
"SwiftSoup"
],
"product_memberships" : [
"GoogleScholarSwift"
],
"sources" : [
"Constants/Constants.swift",
"Enums/FetchQuantity.swift",
"Enums/SortBy.swift",
"Impl/CacheService.swift",
"Impl/GoogleScholarFetcher.swift",
"Impl/HTMLParser.swift",
"Impl/NetworkService.swift",
"Models/Article.swift",
"Models/ArticleLink.swift",
"Models/Author.swift",
"Models/AuthorMetrics.swift",
"Models/CitationMetrics.swift",
"Models/CoAuthor.swift",
"Models/GoogleScholarCacheConfig.swift",
"Models/GoogleScholarID.swift",
"Models/Publication.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.