Build Information
Successful build of Web3swift, reference 3.3.0 (119d17
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 05:28:56 UTC.
Swift 6 data race errors: 68
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
35 | self.web3 = web3
36 | self.provider = provider
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[288/312] Compiling web3swift Web3+ERC1643.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Tokens/ERC1376/Web3+ERC1376.swift:79:151: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
77 | public let contract: Web3.Contract
78 |
79 | public init(web3: Web3, provider: Web3Provider, address: EthereumAddress, abi: String = Web3.Utils.erc1376ABI, transaction: CodableTransaction = .emptyTransaction) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
80 | self.web3 = web3
81 | self.provider = provider
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Tokens/ERC20/ERC20BasePropertiesProvider.swift:18:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
16 |
17 | private let contract: Web3.Contract
18 | private (set) var hasReadProperties: Bool = false
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
19 | init(contract: Web3.Contract) {
20 | self.contract = contract
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Tokens/ERC1400/Web3+ERC1400.swift:76:151: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
74 | public let contract: Web3.Contract
75 |
76 | public init(web3: Web3, provider: Web3Provider, address: EthereumAddress, abi: String = Web3.Utils.erc1400ABI, transaction: CodableTransaction = .emptyTransaction) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
77 | self.web3 = web3
78 | self.provider = provider
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Tokens/ERC1410/Web3+ERC1410.swift:54:151: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
52 | public let contract: Web3.Contract
53 |
54 | public init(web3: Web3, provider: Web3Provider, address: EthereumAddress, abi: String = Web3.Utils.erc1410ABI, transaction: CodableTransaction = .emptyTransaction) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
55 | self.web3 = web3
56 | self.provider = provider
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Tokens/ERC1594/Web3+ERC1594.swift:44:151: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 | public let contract: Web3.Contract
43 |
44 | public init(web3: Web3, provider: Web3Provider, address: EthereumAddress, abi: String = Web3.Utils.erc1594ABI, transaction: CodableTransaction = .emptyTransaction) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
45 | self.web3 = web3
46 | self.provider = provider
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Tokens/ERC1633/Web3+ERC1633.swift:31:151: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 | public let contract: Web3.Contract
30 |
31 | public init(web3: Web3, provider: Web3Provider, address: EthereumAddress, abi: String = Web3.Utils.erc1633ABI, transaction: CodableTransaction = .emptyTransaction) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
32 | self.web3 = web3
33 | self.provider = provider
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Tokens/ERC1643/Web3+ERC1643.swift:34:151: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
32 | public let contract: Web3.Contract
33 |
34 | public init(web3: Web3, provider: Web3Provider, address: EthereumAddress, abi: String = Web3.Utils.erc1643ABI, transaction: CodableTransaction = .emptyTransaction) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 | self.web3 = web3
36 | self.provider = provider
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[289/312] Compiling web3swift TransactionPollingTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP4361.swift:125:24: warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | private static let eip4361Pattern = "(?<\(EIP4361Field.domain.rawValue)>\(domain)) wants you to sign in with your Ethereum account:\\n(?<\(EIP4361Field.address.rawValue)>\(address))\\n\\n((?<\(EIP4361Field.statement.rawValue)>\(statement))\\n)?\\nURI: (?<\(EIP4361Field.uri.rawValue)>\(uri))\\nVersion: (?<\(EIP4361Field.version.rawValue)>\(version))\\nChain ID: (?<\(EIP4361Field.chainId.rawValue)>\(chainId))\\nNonce: (?<\(EIP4361Field.nonce.rawValue)>\(nonce))\\nIssued At: (?<\(EIP4361Field.issuedAt.rawValue)>\(issuedAt))(\\nExpiration Time: (?<\(EIP4361Field.expirationTime.rawValue)>\(expirationTime)))?(\\nNot Before: (?<\(EIP4361Field.notBefore.rawValue)>\(notBefore)))?(\\nRequest ID: (?<\(EIP4361Field.requestId.rawValue)>\(requestId)))?(\\nResources:(?<\(EIP4361Field.resources.rawValue)>\(resources)))?"
124 |
125 | private static var _eip4361OptionalPattern: String?
| |- warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_eip4361OptionalPattern' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_eip4361OptionalPattern' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | private static var eip4361OptionalPattern: String {
127 | if let _eip4361OptionalPattern = _eip4361OptionalPattern { return _eip4361OptionalPattern }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:234:20: warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
232 | public struct EIP681CodeParser {
233 | // static var addressRegex = "^(pay-)?([0-9a-zA-Z]+)(@[0-9]+)?"
234 | static var addressRegex = "^(pay-)?([0-9a-zA-Z.]+)(@[0-9]+)?\\/?(.*)?$"
| |- warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addressRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'addressRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |
236 | public static func parse(_ data: Data) async -> EIP681Code? {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:369:56: warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
367 | guard let chainID = chainID else { return nil }
368 | do {
369 | let web = await Web3(provider: InfuraProvider(.fromInt(UInt(chainID)))!)
| `- warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
370 | let ensModel = ENS(web3: web)
371 | try await ensModel?.setENSResolver(withDomain: ens)
[290/312] Compiling web3swift EIP4361.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP4361.swift:125:24: warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | private static let eip4361Pattern = "(?<\(EIP4361Field.domain.rawValue)>\(domain)) wants you to sign in with your Ethereum account:\\n(?<\(EIP4361Field.address.rawValue)>\(address))\\n\\n((?<\(EIP4361Field.statement.rawValue)>\(statement))\\n)?\\nURI: (?<\(EIP4361Field.uri.rawValue)>\(uri))\\nVersion: (?<\(EIP4361Field.version.rawValue)>\(version))\\nChain ID: (?<\(EIP4361Field.chainId.rawValue)>\(chainId))\\nNonce: (?<\(EIP4361Field.nonce.rawValue)>\(nonce))\\nIssued At: (?<\(EIP4361Field.issuedAt.rawValue)>\(issuedAt))(\\nExpiration Time: (?<\(EIP4361Field.expirationTime.rawValue)>\(expirationTime)))?(\\nNot Before: (?<\(EIP4361Field.notBefore.rawValue)>\(notBefore)))?(\\nRequest ID: (?<\(EIP4361Field.requestId.rawValue)>\(requestId)))?(\\nResources:(?<\(EIP4361Field.resources.rawValue)>\(resources)))?"
124 |
125 | private static var _eip4361OptionalPattern: String?
| |- warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_eip4361OptionalPattern' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_eip4361OptionalPattern' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | private static var eip4361OptionalPattern: String {
127 | if let _eip4361OptionalPattern = _eip4361OptionalPattern { return _eip4361OptionalPattern }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:234:20: warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
232 | public struct EIP681CodeParser {
233 | // static var addressRegex = "^(pay-)?([0-9a-zA-Z]+)(@[0-9]+)?"
234 | static var addressRegex = "^(pay-)?([0-9a-zA-Z.]+)(@[0-9]+)?\\/?(.*)?$"
| |- warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addressRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'addressRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |
236 | public static func parse(_ data: Data) async -> EIP681Code? {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:369:56: warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
367 | guard let chainID = chainID else { return nil }
368 | do {
369 | let web = await Web3(provider: InfuraProvider(.fromInt(UInt(chainID)))!)
| `- warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
370 | let ensModel = ENS(web3: web)
371 | try await ensModel?.setENSResolver(withDomain: ens)
[291/312] Compiling web3swift EIP67Code.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP4361.swift:125:24: warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | private static let eip4361Pattern = "(?<\(EIP4361Field.domain.rawValue)>\(domain)) wants you to sign in with your Ethereum account:\\n(?<\(EIP4361Field.address.rawValue)>\(address))\\n\\n((?<\(EIP4361Field.statement.rawValue)>\(statement))\\n)?\\nURI: (?<\(EIP4361Field.uri.rawValue)>\(uri))\\nVersion: (?<\(EIP4361Field.version.rawValue)>\(version))\\nChain ID: (?<\(EIP4361Field.chainId.rawValue)>\(chainId))\\nNonce: (?<\(EIP4361Field.nonce.rawValue)>\(nonce))\\nIssued At: (?<\(EIP4361Field.issuedAt.rawValue)>\(issuedAt))(\\nExpiration Time: (?<\(EIP4361Field.expirationTime.rawValue)>\(expirationTime)))?(\\nNot Before: (?<\(EIP4361Field.notBefore.rawValue)>\(notBefore)))?(\\nRequest ID: (?<\(EIP4361Field.requestId.rawValue)>\(requestId)))?(\\nResources:(?<\(EIP4361Field.resources.rawValue)>\(resources)))?"
124 |
125 | private static var _eip4361OptionalPattern: String?
| |- warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_eip4361OptionalPattern' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_eip4361OptionalPattern' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | private static var eip4361OptionalPattern: String {
127 | if let _eip4361OptionalPattern = _eip4361OptionalPattern { return _eip4361OptionalPattern }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:234:20: warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
232 | public struct EIP681CodeParser {
233 | // static var addressRegex = "^(pay-)?([0-9a-zA-Z]+)(@[0-9]+)?"
234 | static var addressRegex = "^(pay-)?([0-9a-zA-Z.]+)(@[0-9]+)?\\/?(.*)?$"
| |- warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addressRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'addressRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |
236 | public static func parse(_ data: Data) async -> EIP681Code? {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:369:56: warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
367 | guard let chainID = chainID else { return nil }
368 | do {
369 | let web = await Web3(provider: InfuraProvider(.fromInt(UInt(chainID)))!)
| `- warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
370 | let ensModel = ENS(web3: web)
371 | try await ensModel?.setENSResolver(withDomain: ens)
[292/312] Compiling web3swift EIP681.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP4361.swift:125:24: warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | private static let eip4361Pattern = "(?<\(EIP4361Field.domain.rawValue)>\(domain)) wants you to sign in with your Ethereum account:\\n(?<\(EIP4361Field.address.rawValue)>\(address))\\n\\n((?<\(EIP4361Field.statement.rawValue)>\(statement))\\n)?\\nURI: (?<\(EIP4361Field.uri.rawValue)>\(uri))\\nVersion: (?<\(EIP4361Field.version.rawValue)>\(version))\\nChain ID: (?<\(EIP4361Field.chainId.rawValue)>\(chainId))\\nNonce: (?<\(EIP4361Field.nonce.rawValue)>\(nonce))\\nIssued At: (?<\(EIP4361Field.issuedAt.rawValue)>\(issuedAt))(\\nExpiration Time: (?<\(EIP4361Field.expirationTime.rawValue)>\(expirationTime)))?(\\nNot Before: (?<\(EIP4361Field.notBefore.rawValue)>\(notBefore)))?(\\nRequest ID: (?<\(EIP4361Field.requestId.rawValue)>\(requestId)))?(\\nResources:(?<\(EIP4361Field.resources.rawValue)>\(resources)))?"
124 |
125 | private static var _eip4361OptionalPattern: String?
| |- warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_eip4361OptionalPattern' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_eip4361OptionalPattern' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | private static var eip4361OptionalPattern: String {
127 | if let _eip4361OptionalPattern = _eip4361OptionalPattern { return _eip4361OptionalPattern }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:234:20: warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
232 | public struct EIP681CodeParser {
233 | // static var addressRegex = "^(pay-)?([0-9a-zA-Z]+)(@[0-9]+)?"
234 | static var addressRegex = "^(pay-)?([0-9a-zA-Z.]+)(@[0-9]+)?\\/?(.*)?$"
| |- warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addressRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'addressRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |
236 | public static func parse(_ data: Data) async -> EIP681Code? {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:369:56: warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
367 | guard let chainID = chainID else { return nil }
368 | do {
369 | let web = await Web3(provider: InfuraProvider(.fromInt(UInt(chainID)))!)
| `- warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
370 | let ensModel = ENS(web3: web)
371 | try await ensModel?.setENSResolver(withDomain: ens)
[293/312] Compiling web3swift EIP712.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP4361.swift:125:24: warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | private static let eip4361Pattern = "(?<\(EIP4361Field.domain.rawValue)>\(domain)) wants you to sign in with your Ethereum account:\\n(?<\(EIP4361Field.address.rawValue)>\(address))\\n\\n((?<\(EIP4361Field.statement.rawValue)>\(statement))\\n)?\\nURI: (?<\(EIP4361Field.uri.rawValue)>\(uri))\\nVersion: (?<\(EIP4361Field.version.rawValue)>\(version))\\nChain ID: (?<\(EIP4361Field.chainId.rawValue)>\(chainId))\\nNonce: (?<\(EIP4361Field.nonce.rawValue)>\(nonce))\\nIssued At: (?<\(EIP4361Field.issuedAt.rawValue)>\(issuedAt))(\\nExpiration Time: (?<\(EIP4361Field.expirationTime.rawValue)>\(expirationTime)))?(\\nNot Before: (?<\(EIP4361Field.notBefore.rawValue)>\(notBefore)))?(\\nRequest ID: (?<\(EIP4361Field.requestId.rawValue)>\(requestId)))?(\\nResources:(?<\(EIP4361Field.resources.rawValue)>\(resources)))?"
124 |
125 | private static var _eip4361OptionalPattern: String?
| |- warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_eip4361OptionalPattern' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_eip4361OptionalPattern' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | private static var eip4361OptionalPattern: String {
127 | if let _eip4361OptionalPattern = _eip4361OptionalPattern { return _eip4361OptionalPattern }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:234:20: warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
232 | public struct EIP681CodeParser {
233 | // static var addressRegex = "^(pay-)?([0-9a-zA-Z]+)(@[0-9]+)?"
234 | static var addressRegex = "^(pay-)?([0-9a-zA-Z.]+)(@[0-9]+)?\\/?(.*)?$"
| |- warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addressRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'addressRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |
236 | public static func parse(_ data: Data) async -> EIP681Code? {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:369:56: warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
367 | guard let chainID = chainID else { return nil }
368 | do {
369 | let web = await Web3(provider: InfuraProvider(.fromInt(UInt(chainID)))!)
| `- warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
370 | let ensModel = ENS(web3: web)
371 | try await ensModel?.setENSResolver(withDomain: ens)
[294/312] Compiling web3swift EIP712Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP4361.swift:125:24: warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | private static let eip4361Pattern = "(?<\(EIP4361Field.domain.rawValue)>\(domain)) wants you to sign in with your Ethereum account:\\n(?<\(EIP4361Field.address.rawValue)>\(address))\\n\\n((?<\(EIP4361Field.statement.rawValue)>\(statement))\\n)?\\nURI: (?<\(EIP4361Field.uri.rawValue)>\(uri))\\nVersion: (?<\(EIP4361Field.version.rawValue)>\(version))\\nChain ID: (?<\(EIP4361Field.chainId.rawValue)>\(chainId))\\nNonce: (?<\(EIP4361Field.nonce.rawValue)>\(nonce))\\nIssued At: (?<\(EIP4361Field.issuedAt.rawValue)>\(issuedAt))(\\nExpiration Time: (?<\(EIP4361Field.expirationTime.rawValue)>\(expirationTime)))?(\\nNot Before: (?<\(EIP4361Field.notBefore.rawValue)>\(notBefore)))?(\\nRequest ID: (?<\(EIP4361Field.requestId.rawValue)>\(requestId)))?(\\nResources:(?<\(EIP4361Field.resources.rawValue)>\(resources)))?"
124 |
125 | private static var _eip4361OptionalPattern: String?
| |- warning: static property '_eip4361OptionalPattern' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_eip4361OptionalPattern' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_eip4361OptionalPattern' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | private static var eip4361OptionalPattern: String {
127 | if let _eip4361OptionalPattern = _eip4361OptionalPattern { return _eip4361OptionalPattern }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:234:20: warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
232 | public struct EIP681CodeParser {
233 | // static var addressRegex = "^(pay-)?([0-9a-zA-Z]+)(@[0-9]+)?"
234 | static var addressRegex = "^(pay-)?([0-9a-zA-Z.]+)(@[0-9]+)?\\/?(.*)?$"
| |- warning: static property 'addressRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addressRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'addressRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |
236 | public static func parse(_ data: Data) async -> EIP681Code? {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Utils/EIP/EIP681.swift:369:56: warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
367 | guard let chainID = chainID else { return nil }
368 | do {
369 | let web = await Web3(provider: InfuraProvider(.fromInt(UInt(chainID)))!)
| `- warning: 'init(_:accessToken:keystoreManager:)' is deprecated: Will be removed in Web3Swift v4. Please use `init(net: Networks, accessToken: String?, keystoreManager: KeystoreManager?)` instead as it will throw an error instead of returning `nil`.
370 | let ensModel = ENS(web3: web)
371 | try await ensModel?.setENSResolver(withDomain: ens)
[295/312] Compiling web3swift NameHash.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:22:53: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public let contract: EthereumContract
21 | public let web3: Web3
22 | public var transaction = CodableTransaction.emptyTransaction
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | // FIXME: Rewrite this to CodableTransaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:28:129: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 | /// options for further function calls. By default the contract inherits options from the web3 object. Additionally supplied "options"
27 | /// do override inherited ones.
28 | public init?(web3 web3Instance: Web3, abiString: String, at: EthereumAddress? = nil, transaction: CodableTransaction = .emptyTransaction, abiVersion: Int = 2) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 | self.web3 = web3Instance
30 | self.transaction = transaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[296/312] Compiling web3swift PublicKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:22:53: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public let contract: EthereumContract
21 | public let web3: Web3
22 | public var transaction = CodableTransaction.emptyTransaction
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | // FIXME: Rewrite this to CodableTransaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:28:129: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 | /// options for further function calls. By default the contract inherits options from the web3 object. Additionally supplied "options"
27 | /// do override inherited ones.
28 | public init?(web3 web3Instance: Web3, abiString: String, at: EthereumAddress? = nil, transaction: CodableTransaction = .emptyTransaction, abiVersion: Int = 2) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 | self.web3 = web3Instance
30 | self.transaction = transaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[297/312] Compiling web3swift Data+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:22:53: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public let contract: EthereumContract
21 | public let web3: Web3
22 | public var transaction = CodableTransaction.emptyTransaction
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | // FIXME: Rewrite this to CodableTransaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:28:129: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 | /// options for further function calls. By default the contract inherits options from the web3 object. Additionally supplied "options"
27 | /// do override inherited ones.
28 | public init?(web3 web3Instance: Web3, abiString: String, at: EthereumAddress? = nil, transaction: CodableTransaction = .emptyTransaction, abiVersion: Int = 2) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 | self.web3 = web3Instance
30 | self.transaction = transaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[298/312] Compiling web3swift String+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:22:53: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public let contract: EthereumContract
21 | public let web3: Web3
22 | public var transaction = CodableTransaction.emptyTransaction
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | // FIXME: Rewrite this to CodableTransaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:28:129: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 | /// options for further function calls. By default the contract inherits options from the web3 object. Additionally supplied "options"
27 | /// do override inherited ones.
28 | public init?(web3 web3Instance: Web3, abiString: String, at: EthereumAddress? = nil, transaction: CodableTransaction = .emptyTransaction, abiVersion: Int = 2) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 | self.web3 = web3Instance
30 | self.transaction = transaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[299/312] Compiling web3swift Web3+Constants.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:22:53: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public let contract: EthereumContract
21 | public let web3: Web3
22 | public var transaction = CodableTransaction.emptyTransaction
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | // FIXME: Rewrite this to CodableTransaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:28:129: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 | /// options for further function calls. By default the contract inherits options from the web3 object. Additionally supplied "options"
27 | /// do override inherited ones.
28 | public init?(web3 web3Instance: Web3, abiString: String, at: EthereumAddress? = nil, transaction: CodableTransaction = .emptyTransaction, abiVersion: Int = 2) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 | self.web3 = web3Instance
30 | self.transaction = transaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[300/312] Compiling web3swift Web3+Contract.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:22:53: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public let contract: EthereumContract
21 | public let web3: Web3
22 | public var transaction = CodableTransaction.emptyTransaction
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | // FIXME: Rewrite this to CodableTransaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Contract.swift:28:129: warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 | /// options for further function calls. By default the contract inherits options from the web3 object. Additionally supplied "options"
27 | /// do override inherited ones.
28 | public init?(web3 web3Instance: Web3, abiString: String, at: EthereumAddress? = nil, transaction: CodableTransaction = .emptyTransaction, abiVersion: Int = 2) {
| `- warning: reference to static property 'emptyTransaction' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 | self.web3 = web3Instance
30 | self.transaction = transaction
/Users/admin/builder/spi-builder-workspace/Sources/Web3Core/Transaction/CodableTransaction.swift:191:23: note: static property declared here
189 | }
190 |
191 | public static var emptyTransaction = CodableTransaction(to: EthereumAddress.contractDeploymentAddress())
| `- note: static property declared here
192 | }
193 |
[301/312] Compiling web3swift Bridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:192:32: warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private struct STPrivateStatic {
192 | fileprivate static var bridgeKey = "STPrivateStatic.bridgeKey"
| |- warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bridgeKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bridgeKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:71:88: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
69 |
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:45: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:77:38: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | fileprivate init(webView: WKWebView) {
76 | self.webView = webView
77 | self.configuration = webView.configuration
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:79:85: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
77 | self.configuration = webView.configuration
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
80 | configuration.userContentController.add(self, name: Bridge.name)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:45: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | /// window.bridge.on('login', (parameters)=> {console.log('User Did Login')})
112 | /// ```
113 | public func post(action: String, parameters: [String: Any]?) {
| `- note: add '@MainActor' to make instance method 'post(action:parameters:)' part of global actor 'MainActor'
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| `- warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
:
215 | fileprivate extension WKWebView {
216 |
217 | func st_dispatchBridgeEvent(_ eventName: String,
| `- note: calls to instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' from outside of its actor context are implicitly asynchronous
218 | parameters: [String: Any],
219 | results: Bridge.Results,
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:73: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completion' is implicitly non-sendable
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:17: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: add '@MainActor' to make instance method 'evaluate(_:completion:)' part of global actor 'MainActor'
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:127:137: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
125 |
126 | open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
127 | if let obj = object as? WKWebViewConfiguration, let kp = keyPath, obj == configuration && kp == #keyPath(WKWebViewConfiguration.userContentController) {
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:130:42: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
130 | oldContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:133:42: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
133 | newContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | }
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:245:57: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
218 | parameters: [String: Any],
219 | results: Bridge.Results,
220 | completionHandler: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
221 |
222 | var eventDetail: [String: Any] = parameters
:
243 | }
244 | }
245 | evaluateJavaScript(jsString, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/EthereumAPICalls/Personal/Personal+UnlockAccount.swift:26:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 |
26 | extension Bool: APIResultType { }
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:197:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
195 | /// Bridge for WKWebView and JavaScript. Initialize `lazy`
196 | var bridge: Bridge {
197 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
198 | return bridge
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:201:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
199 | }
200 | let bridge = Bridge(webView: self)
201 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, bridge, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
202 | return bridge
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:207:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
205 | /// Remove Bridge And Reset, All the handlers will be removed
206 | func removeBridge() {
207 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
208 | let userContentController = bridge.configuration.userContentController
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:211:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
210 | }
211 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, nil, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
113 | public func post(action: String, parameters: [String: Any]?) {
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| |- warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parameters.success' to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[302/312] Compiling web3swift IEth+Defaults.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:192:32: warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private struct STPrivateStatic {
192 | fileprivate static var bridgeKey = "STPrivateStatic.bridgeKey"
| |- warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bridgeKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bridgeKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:71:88: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
69 |
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:45: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:77:38: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | fileprivate init(webView: WKWebView) {
76 | self.webView = webView
77 | self.configuration = webView.configuration
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:79:85: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
77 | self.configuration = webView.configuration
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
80 | configuration.userContentController.add(self, name: Bridge.name)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:45: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | /// window.bridge.on('login', (parameters)=> {console.log('User Did Login')})
112 | /// ```
113 | public func post(action: String, parameters: [String: Any]?) {
| `- note: add '@MainActor' to make instance method 'post(action:parameters:)' part of global actor 'MainActor'
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| `- warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
:
215 | fileprivate extension WKWebView {
216 |
217 | func st_dispatchBridgeEvent(_ eventName: String,
| `- note: calls to instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' from outside of its actor context are implicitly asynchronous
218 | parameters: [String: Any],
219 | results: Bridge.Results,
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:73: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completion' is implicitly non-sendable
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:17: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: add '@MainActor' to make instance method 'evaluate(_:completion:)' part of global actor 'MainActor'
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:127:137: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
125 |
126 | open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
127 | if let obj = object as? WKWebViewConfiguration, let kp = keyPath, obj == configuration && kp == #keyPath(WKWebViewConfiguration.userContentController) {
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:130:42: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
130 | oldContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:133:42: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
133 | newContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | }
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:245:57: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
218 | parameters: [String: Any],
219 | results: Bridge.Results,
220 | completionHandler: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
221 |
222 | var eventDetail: [String: Any] = parameters
:
243 | }
244 | }
245 | evaluateJavaScript(jsString, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/EthereumAPICalls/Personal/Personal+UnlockAccount.swift:26:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 |
26 | extension Bool: APIResultType { }
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:197:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
195 | /// Bridge for WKWebView and JavaScript. Initialize `lazy`
196 | var bridge: Bridge {
197 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
198 | return bridge
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:201:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
199 | }
200 | let bridge = Bridge(webView: self)
201 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, bridge, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
202 | return bridge
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:207:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
205 | /// Remove Bridge And Reset, All the handlers will be removed
206 | func removeBridge() {
207 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
208 | let userContentController = bridge.configuration.userContentController
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:211:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
210 | }
211 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, nil, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
113 | public func post(action: String, parameters: [String: Any]?) {
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| |- warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parameters.success' to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[303/312] Compiling web3swift IEth.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:192:32: warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private struct STPrivateStatic {
192 | fileprivate static var bridgeKey = "STPrivateStatic.bridgeKey"
| |- warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bridgeKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bridgeKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:71:88: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
69 |
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:45: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:77:38: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | fileprivate init(webView: WKWebView) {
76 | self.webView = webView
77 | self.configuration = webView.configuration
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:79:85: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
77 | self.configuration = webView.configuration
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
80 | configuration.userContentController.add(self, name: Bridge.name)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:45: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | /// window.bridge.on('login', (parameters)=> {console.log('User Did Login')})
112 | /// ```
113 | public func post(action: String, parameters: [String: Any]?) {
| `- note: add '@MainActor' to make instance method 'post(action:parameters:)' part of global actor 'MainActor'
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| `- warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
:
215 | fileprivate extension WKWebView {
216 |
217 | func st_dispatchBridgeEvent(_ eventName: String,
| `- note: calls to instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' from outside of its actor context are implicitly asynchronous
218 | parameters: [String: Any],
219 | results: Bridge.Results,
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:73: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completion' is implicitly non-sendable
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:17: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: add '@MainActor' to make instance method 'evaluate(_:completion:)' part of global actor 'MainActor'
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:127:137: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
125 |
126 | open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
127 | if let obj = object as? WKWebViewConfiguration, let kp = keyPath, obj == configuration && kp == #keyPath(WKWebViewConfiguration.userContentController) {
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:130:42: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
130 | oldContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:133:42: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
133 | newContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | }
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:245:57: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
218 | parameters: [String: Any],
219 | results: Bridge.Results,
220 | completionHandler: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
221 |
222 | var eventDetail: [String: Any] = parameters
:
243 | }
244 | }
245 | evaluateJavaScript(jsString, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/EthereumAPICalls/Personal/Personal+UnlockAccount.swift:26:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 |
26 | extension Bool: APIResultType { }
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:197:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
195 | /// Bridge for WKWebView and JavaScript. Initialize `lazy`
196 | var bridge: Bridge {
197 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
198 | return bridge
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:201:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
199 | }
200 | let bridge = Bridge(webView: self)
201 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, bridge, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
202 | return bridge
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:207:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
205 | /// Remove Bridge And Reset, All the handlers will be removed
206 | func removeBridge() {
207 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
208 | let userContentController = bridge.configuration.userContentController
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:211:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
210 | }
211 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, nil, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
113 | public func post(action: String, parameters: [String: Any]?) {
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| |- warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parameters.success' to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[304/312] Compiling web3swift Personal+CreateAccount.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:192:32: warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private struct STPrivateStatic {
192 | fileprivate static var bridgeKey = "STPrivateStatic.bridgeKey"
| |- warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bridgeKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bridgeKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:71:88: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
69 |
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:45: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:77:38: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | fileprivate init(webView: WKWebView) {
76 | self.webView = webView
77 | self.configuration = webView.configuration
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:79:85: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
77 | self.configuration = webView.configuration
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
80 | configuration.userContentController.add(self, name: Bridge.name)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:45: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | /// window.bridge.on('login', (parameters)=> {console.log('User Did Login')})
112 | /// ```
113 | public func post(action: String, parameters: [String: Any]?) {
| `- note: add '@MainActor' to make instance method 'post(action:parameters:)' part of global actor 'MainActor'
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| `- warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
:
215 | fileprivate extension WKWebView {
216 |
217 | func st_dispatchBridgeEvent(_ eventName: String,
| `- note: calls to instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' from outside of its actor context are implicitly asynchronous
218 | parameters: [String: Any],
219 | results: Bridge.Results,
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:73: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completion' is implicitly non-sendable
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:17: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: add '@MainActor' to make instance method 'evaluate(_:completion:)' part of global actor 'MainActor'
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:127:137: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
125 |
126 | open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
127 | if let obj = object as? WKWebViewConfiguration, let kp = keyPath, obj == configuration && kp == #keyPath(WKWebViewConfiguration.userContentController) {
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:130:42: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
130 | oldContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:133:42: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
133 | newContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | }
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:245:57: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
218 | parameters: [String: Any],
219 | results: Bridge.Results,
220 | completionHandler: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
221 |
222 | var eventDetail: [String: Any] = parameters
:
243 | }
244 | }
245 | evaluateJavaScript(jsString, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/EthereumAPICalls/Personal/Personal+UnlockAccount.swift:26:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 |
26 | extension Bool: APIResultType { }
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:197:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
195 | /// Bridge for WKWebView and JavaScript. Initialize `lazy`
196 | var bridge: Bridge {
197 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
198 | return bridge
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:201:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
199 | }
200 | let bridge = Bridge(webView: self)
201 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, bridge, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
202 | return bridge
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:207:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
205 | /// Remove Bridge And Reset, All the handlers will be removed
206 | func removeBridge() {
207 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
208 | let userContentController = bridge.configuration.userContentController
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:211:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
210 | }
211 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, nil, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
113 | public func post(action: String, parameters: [String: Any]?) {
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| |- warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parameters.success' to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[305/312] Compiling web3swift Personal+Sign.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:192:32: warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private struct STPrivateStatic {
192 | fileprivate static var bridgeKey = "STPrivateStatic.bridgeKey"
| |- warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bridgeKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bridgeKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:71:88: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
69 |
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:45: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:77:38: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | fileprivate init(webView: WKWebView) {
76 | self.webView = webView
77 | self.configuration = webView.configuration
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:79:85: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
77 | self.configuration = webView.configuration
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
80 | configuration.userContentController.add(self, name: Bridge.name)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:45: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | /// window.bridge.on('login', (parameters)=> {console.log('User Did Login')})
112 | /// ```
113 | public func post(action: String, parameters: [String: Any]?) {
| `- note: add '@MainActor' to make instance method 'post(action:parameters:)' part of global actor 'MainActor'
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| `- warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
:
215 | fileprivate extension WKWebView {
216 |
217 | func st_dispatchBridgeEvent(_ eventName: String,
| `- note: calls to instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' from outside of its actor context are implicitly asynchronous
218 | parameters: [String: Any],
219 | results: Bridge.Results,
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:73: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completion' is implicitly non-sendable
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:17: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: add '@MainActor' to make instance method 'evaluate(_:completion:)' part of global actor 'MainActor'
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:127:137: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
125 |
126 | open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
127 | if let obj = object as? WKWebViewConfiguration, let kp = keyPath, obj == configuration && kp == #keyPath(WKWebViewConfiguration.userContentController) {
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:130:42: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
130 | oldContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:133:42: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
133 | newContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | }
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:245:57: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
218 | parameters: [String: Any],
219 | results: Bridge.Results,
220 | completionHandler: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
221 |
222 | var eventDetail: [String: Any] = parameters
:
243 | }
244 | }
245 | evaluateJavaScript(jsString, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/EthereumAPICalls/Personal/Personal+UnlockAccount.swift:26:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 |
26 | extension Bool: APIResultType { }
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:197:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
195 | /// Bridge for WKWebView and JavaScript. Initialize `lazy`
196 | var bridge: Bridge {
197 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
198 | return bridge
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:201:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
199 | }
200 | let bridge = Bridge(webView: self)
201 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, bridge, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
202 | return bridge
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:207:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
205 | /// Remove Bridge And Reset, All the handlers will be removed
206 | func removeBridge() {
207 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
208 | let userContentController = bridge.configuration.userContentController
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:211:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
210 | }
211 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, nil, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
113 | public func post(action: String, parameters: [String: Any]?) {
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| |- warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parameters.success' to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[306/312] Compiling web3swift Personal+UnlockAccount.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:192:32: warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | private struct STPrivateStatic {
192 | fileprivate static var bridgeKey = "STPrivateStatic.bridgeKey"
| |- warning: static property 'bridgeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bridgeKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bridgeKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:71:88: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
69 |
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:45: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:72:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | deinit {
71 | configuration.removeObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController))
72 | configuration.userContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
73 | }
74 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:77:38: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | fileprivate init(webView: WKWebView) {
76 | self.webView = webView
77 | self.configuration = webView.configuration
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h:91:63: note: property declared here
89 | /*! @abstract A copy of the configuration with which the web view was
90 | initialized. */
91 | @property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration;
| `- note: property declared here
92 |
93 | /*! @abstract The web view's navigation delegate. */
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:79:85: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
77 | self.configuration = webView.configuration
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
80 | configuration.userContentController.add(self, name: Bridge.name)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:45: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:80:23: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
78 | super.init()
79 | configuration.addObserver(self, forKeyPath: #keyPath(WKWebViewConfiguration.userContentController), options: [.new, .old], context: nil)
80 | configuration.userContentController.add(self, name: Bridge.name)
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:118:56: note: property declared here
116 | /*! @abstract The user content controller to associate with the web view.
117 | */
118 | @property (nonatomic, strong) WKUserContentController *userContentController;
| `- note: property declared here
119 |
120 | /*! @abstract The web extension controller to associate with the web view.
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | /// window.bridge.on('login', (parameters)=> {console.log('User Did Login')})
112 | /// ```
113 | public func post(action: String, parameters: [String: Any]?) {
| `- note: add '@MainActor' to make instance method 'post(action:parameters:)' part of global actor 'MainActor'
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| `- warning: call to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
:
215 | fileprivate extension WKWebView {
216 |
217 | func st_dispatchBridgeEvent(_ eventName: String,
| `- note: calls to instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' from outside of its actor context are implicitly asynchronous
218 | parameters: [String: Any],
219 | results: Bridge.Results,
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:73: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completion' is implicitly non-sendable
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:123:17: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
119 | /// - Parameter javaScriptString: The JavaScript string to evaluate.
120 | /// - Parameter completion: A block to invoke when script evaluation completes or fails.
121 | public func evaluate(_ javaScriptString: String, completion: ((Any?, Error?) -> Void)? = nil) {
| `- note: add '@MainActor' to make instance method 'evaluate(_:completion:)' part of global actor 'MainActor'
122 | guard let webView = webView else { return }
123 | webView.evaluateJavaScript(javaScriptString, completionHandler: completion)
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
WebKit.WKWebView.evaluateJavaScript:2:22: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
1 | class WKWebView {
2 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)}
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:127:137: warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
125 |
126 | open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
127 | if let obj = object as? WKWebViewConfiguration, let kp = keyPath, obj == configuration && kp == #keyPath(WKWebViewConfiguration.userContentController) {
| `- warning: cannot form key path to main actor-isolated property 'userContentController'; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:130:42: warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
128 | if let change = change {
129 | if let oldContentController = change[.oldKey] as? WKUserContentController {
130 | oldContentController.removeScriptMessageHandler(forName: Bridge.name)
| `- warning: call to main actor-isolated instance method 'removeScriptMessageHandler(forName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
WebKit.WKUserContentController.removeScriptMessageHandler:2:22: note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func removeScriptMessageHandler(forName name: String)}
| `- note: calls to instance method 'removeScriptMessageHandler(forName:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:133:42: warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | }
132 | if let newContentController = change[.newKey] as? WKUserContentController {
133 | newContentController.add(self, name: Bridge.name)
| `- warning: call to main actor-isolated instance method 'add(_:name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | }
WebKit.WKUserContentController.add:2:22: note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
1 | class WKUserContentController {
2 | @MainActor open func add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)}
| `- note: calls to instance method 'add(_:name:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:245:57: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
218 | parameters: [String: Any],
219 | results: Bridge.Results,
220 | completionHandler: ((Any?, Error?) -> Void)? = nil) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
221 |
222 | var eventDetail: [String: Any] = parameters
:
243 | }
244 | }
245 | evaluateJavaScript(jsString, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/EthereumAPICalls/Personal/Personal+UnlockAccount.swift:26:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 |
26 | extension Bool: APIResultType { }
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'APIResultType'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 |
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:197:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
195 | /// Bridge for WKWebView and JavaScript. Initialize `lazy`
196 | var bridge: Bridge {
197 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
198 | return bridge
199 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:201:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
199 | }
200 | let bridge = Bridge(webView: self)
201 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, bridge, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
202 | return bridge
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:207:56: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
205 | /// Remove Bridge And Reset, All the handlers will be removed
206 | func removeBridge() {
207 | if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
208 | let userContentController = bridge.configuration.userContentController
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:211:40: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
209 | userContentController.removeScriptMessageHandler(forName: Bridge.name)
210 | }
211 | objc_setAssociatedObject(self, &STPrivateStatic.bridgeKey, nil, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/Bridge.swift:115:17: warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
113 | public func post(action: String, parameters: [String: Any]?) {
114 | guard let webView = webView else { return }
115 | webView.st_dispatchBridgeEvent(Bridge.postEventName, parameters: ["name": action], results: .success(parameters), completionHandler: nil)
| |- warning: sending 'parameters.success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'parameters.success' to main actor-isolated instance method 'st_dispatchBridgeEvent(_:parameters:results:completionHandler:)' risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[307/312] Compiling web3swift Web3+EIP1559.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:27:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
25 |
26 | let function = prop.calledFunction
27 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | await function(self.web3)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:33:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 | for prop in self.monitoredUserFunctions {
33 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | await prop.functionToRun()
| `- note: closure captures 'prop' which is accessible to code in the current task
35 | }
36 | }
[308/312] Compiling web3swift Web3+EventParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:27:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
25 |
26 | let function = prop.calledFunction
27 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | await function(self.web3)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:33:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 | for prop in self.monitoredUserFunctions {
33 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | await prop.functionToRun()
| `- note: closure captures 'prop' which is accessible to code in the current task
35 | }
36 | }
[309/312] Compiling web3swift Web3+Eventloop.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:27:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
25 |
26 | let function = prop.calledFunction
27 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | await function(self.web3)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:33:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 | for prop in self.monitoredUserFunctions {
33 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | await prop.functionToRun()
| `- note: closure captures 'prop' which is accessible to code in the current task
35 | }
36 | }
[310/312] Compiling web3swift Web3+HttpProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:27:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
25 |
26 | let function = prop.calledFunction
27 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | await function(self.web3)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:33:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 | for prop in self.monitoredUserFunctions {
33 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | await prop.functionToRun()
| `- note: closure captures 'prop' which is accessible to code in the current task
35 | }
36 | }
[311/312] Compiling web3swift Web3+InfuraProviders.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:27:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
25 |
26 | let function = prop.calledFunction
27 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | await function(self.web3)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:33:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 | for prop in self.monitoredUserFunctions {
33 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | await prop.functionToRun()
| `- note: closure captures 'prop' which is accessible to code in the current task
35 | }
36 | }
[312/312] Compiling web3swift Web3+Instance.swift
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:27:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
25 |
26 | let function = prop.calledFunction
27 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | await function(self.web3)
| `- note: closure captures 'self' which is accessible to code in the current task
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Web3/Web3+Eventloop.swift:33:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 | for prop in self.monitoredUserFunctions {
33 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | await prop.functionToRun()
| `- note: closure captures 'prop' which is accessible to code in the current task
35 | }
36 | }
Build complete! (30.69s)
Fetching https://github.com/attaswift/BigInt.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/GigaBitcoin/secp256k1.swift
[1/4771] Fetching bigint
[97/17705] Fetching bigint, cryptoswift
[336/22452] Fetching bigint, cryptoswift, secp256k1.swift
Fetched https://github.com/GigaBitcoin/secp256k1.swift from cache (1.70s)
Fetched https://github.com/attaswift/BigInt.git from cache (1.70s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.70s)
Computing version for https://github.com/GigaBitcoin/secp256k1.swift
Computed https://github.com/GigaBitcoin/secp256k1.swift at 0.10.0 (2.31s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.4.1 (0.44s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (0.53s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.4
Creating working copy for https://github.com/GigaBitcoin/secp256k1.swift
Working copy of https://github.com/GigaBitcoin/secp256k1.swift resolved at 0.10.0
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.4.1
Build complete.
{
"dependencies" : [
{
"identity" : "bigint",
"requirement" : {
"range" : [
{
"lower_bound" : "5.4.0",
"upper_bound" : "5.5.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/attaswift/BigInt.git"
},
{
"identity" : "cryptoswift",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/krzyzanowskim/CryptoSwift.git"
},
{
"identity" : "secp256k1.swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.10.0",
"upper_bound" : "0.11.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/GigaBitcoin/secp256k1.swift"
}
],
"manifest_display_name" : "Web3swift",
"name" : "Web3swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "web3swift",
"targets" : [
"web3swift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "web3swift",
"module_type" : "SwiftTarget",
"name" : "web3swift",
"path" : "Sources/web3swift",
"product_dependencies" : [
"BigInt",
"secp256k1"
],
"product_memberships" : [
"web3swift"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/browser.js",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/browser.min.js",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/web3swift/Browser/wk.bridge.min.js",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Browser/Bridge.swift",
"EthereumAPICalls/Ethereum/IEth+Defaults.swift",
"EthereumAPICalls/Ethereum/IEth.swift",
"EthereumAPICalls/Personal/Personal+CreateAccount.swift",
"EthereumAPICalls/Personal/Personal+Sign.swift",
"EthereumAPICalls/Personal/Personal+UnlockAccount.swift",
"EthereumAPICalls/TxPool.swift",
"HookedFunctions/Web3+BrowserFunctions.swift",
"HookedFunctions/Web3+Wallet.swift",
"Operations/ReadOperation.swift",
"Operations/WriteOperation.swift",
"Tokens/ERC1155/Web3+ERC1155.swift",
"Tokens/ERC1376/Web3+ERC1376.swift",
"Tokens/ERC1400/Web3+ERC1400.swift",
"Tokens/ERC1410/Web3+ERC1410.swift",
"Tokens/ERC1594/Web3+ERC1594.swift",
"Tokens/ERC1633/Web3+ERC1633.swift",
"Tokens/ERC1643/Web3+ERC1643.swift",
"Tokens/ERC1644/Web3+ERC1644.swift",
"Tokens/ERC165/Web3+ERC165.swift",
"Tokens/ERC20/ERC20BaseProperties.swift",
"Tokens/ERC20/ERC20BasePropertiesProvider.swift",
"Tokens/ERC20/Web3+ERC20.swift",
"Tokens/ERC721/Web3+ERC721.swift",
"Tokens/ERC721x/Web3+ERC721x.swift",
"Tokens/ERC777/Web3+ERC777.swift",
"Tokens/ERC820/Web3+ERC820.swift",
"Tokens/ERC888/Web3+ERC888.swift",
"Tokens/ST20/Web3+ST20.swift",
"Tokens/ST20/Web3+SecurityToken.swift",
"Transaction/TransactionPollingTask.swift",
"Utils/EIP/EIP4361.swift",
"Utils/EIP/EIP67Code.swift",
"Utils/EIP/EIP681.swift",
"Utils/EIP/EIP712/EIP712.swift",
"Utils/EIP/EIP712/EIP712Parser.swift",
"Utils/ENS/ENS.swift",
"Utils/ENS/ENSBaseRegistrar.swift",
"Utils/ENS/ENSRegistry.swift",
"Utils/ENS/ENSResolver.swift",
"Utils/ENS/ENSReverseRegistrar.swift",
"Utils/ENS/ETHRegistrarController.swift",
"Utils/ENS/NameHash.swift",
"Utils/ENS/PublicKey.swift",
"Utils/Extensions/Data+Extension.swift",
"Utils/Extensions/String+Extension.swift",
"Web3/Web3+Constants.swift",
"Web3/Web3+Contract.swift",
"Web3/Web3+EIP1559.swift",
"Web3/Web3+EventParser.swift",
"Web3/Web3+Eventloop.swift",
"Web3/Web3+HttpProvider.swift",
"Web3/Web3+InfuraProviders.swift",
"Web3/Web3+Instance.swift",
"Web3/Web3+Personal.swift",
"Web3/Web3+Resolver.swift",
"Web3/Web3+Signing.swift",
"Web3/Web3+Utils.swift",
"Web3/Web3.swift"
],
"target_dependencies" : [
"Web3Core"
],
"type" : "library"
},
{
"c99name" : "remoteTests",
"module_type" : "SwiftTarget",
"name" : "remoteTests",
"path" : "Tests/web3swiftTests/remoteTests",
"sources" : [
"DecodeRemoteErrorTests.swift",
"EIP1559Tests.swift",
"ENSTests.swift",
"EtherscanTransactionCheckerTests.swift",
"EventFilterTests.swift",
"GasOracleTests.swift",
"InfuraTests.swift",
"PolicyResolverTests.swift",
"RemoteParsingTests.swift",
"TransactionPollingTaskRemoteTest.swift",
"Web3HttpProviderTests.swift"
],
"target_dependencies" : [
"web3swift"
],
"type" : "test"
},
{
"c99name" : "localTests",
"module_type" : "SwiftTarget",
"name" : "localTests",
"path" : "Tests/web3swiftTests/localTests",
"sources" : [
"ABIDecoderSliceTests.swift",
"ABIElementErrorDecodingTest.swift",
"ABIElementsTests.swift",
"ABIEncoderTest.swift",
"AdvancedABIv2Tests.swift",
"BIP32KeystoreTests.swift",
"BIP32MnemonicPhraseStringArrayTests.swift",
"BIP32MnemonicPhraseStringTests.swift",
"BIP39Tests.swift",
"BIP44Tests.swift",
"BasicLocalNodeTests.swift",
"DataConversionTests.swift",
"DecodeSolidityErrorType.swift",
"EIP1559BlockTests.swift",
"EIP4361Test.swift",
"EIP67Tests.swift",
"EIP681Tests.swift",
"EIP712TestData.swift",
"EIP712Tests.swift",
"EIP712TypedDataPayloadTests.swift",
"ERC20ClassTests.swift",
"ERC20Tests.swift",
"EthereumAddressTest.swift",
"EthereumContractTest.swift",
"EventTests.swift",
"EventloopTests.swift",
"HDversionTest.swift",
"KeystoresTests.swift",
"LocalTestCase.swift",
"Mocks.swift",
"NSRegularExpressionTest.swift",
"NumberFormattingUtilTests.swift",
"PersonalSignatureTests.swift",
"PromisesTests.swift",
"RLPTests.swift",
"ST20AndSecurityTokenTests.swift",
"String+ExtensionTests.swift.swift",
"StringBIP44Tests.swift",
"TestHelpers.swift",
"TransactionPollingTaskTest.swift",
"TransactionReceiptTests.swift",
"TransactionsTests.swift",
"UncategorizedTests.swift",
"UserCases.swift",
"UtilitiesTests.swift",
"Web3ErrorTests.swift"
],
"target_dependencies" : [
"web3swift"
],
"type" : "test"
},
{
"c99name" : "Web3Core",
"module_type" : "SwiftTarget",
"name" : "Web3Core",
"path" : "Sources/Web3Core",
"product_dependencies" : [
"BigInt",
"secp256k1",
"CryptoSwift"
],
"product_memberships" : [
"web3swift"
],
"sources" : [
"Contract/ContractProtocol.swift",
"Contract/EthereumContract.swift",
"EthereumABI/ABI.swift",
"EthereumABI/ABIDecoding.swift",
"EthereumABI/ABIElements.swift",
"EthereumABI/ABIEncoding.swift",
"EthereumABI/ABIError.swift",
"EthereumABI/ABIParameterTypes.swift",
"EthereumABI/ABIParsing.swift",
"EthereumABI/ABITypeParser.swift",
"EthereumABI/Sequence+ABIExtension.swift",
"EthereumAddress/EthereumAddress.swift",
"EthereumNetwork/Request/APIRequest+ComputedProperties.swift",
"EthereumNetwork/Request/APIRequest+Methods.swift",
"EthereumNetwork/Request/APIRequest+UtilityTypes.swift",
"EthereumNetwork/Request/APIRequest.swift",
"EthereumNetwork/RequestParameter/APIRequestParameterType.swift",
"EthereumNetwork/RequestParameter/RequestParameter+Encodable.swift",
"EthereumNetwork/RequestParameter/RequestParameter+RawRepresentable.swift",
"EthereumNetwork/RequestParameter/RequestParameter.swift",
"EthereumNetwork/Utility/Async+BackwardCapability.swift",
"EthereumNetwork/Utility/HexDecodable+Extensions.swift",
"EthereumNetwork/Utility/HexDecodableProtocols.swift",
"EthereumNetwork/Utility/IntegerInitableWithRadix.swift",
"KeystoreManager/AbstractKeystore.swift",
"KeystoreManager/BIP32HDNode.swift",
"KeystoreManager/BIP32Keystore.swift",
"KeystoreManager/BIP39+WordLists.swift",
"KeystoreManager/BIP39.swift",
"KeystoreManager/BIP44.swift",
"KeystoreManager/EthereumKeystoreV3.swift",
"KeystoreManager/EtherscanTransactionChecker.swift",
"KeystoreManager/IBAN.swift",
"KeystoreManager/KeystoreManager.swift",
"KeystoreManager/KeystoreParams.swift",
"KeystoreManager/PathAddressStorage.swift",
"KeystoreManager/PlainKeystore.swift",
"Oracle/GasOracle.swift",
"RLP/RLP.swift",
"Structure/Base58.swift",
"Structure/Block/Block.swift",
"Structure/Block/BlockNumber.swift",
"Structure/Event+Protocol.swift",
"Structure/EventLog/EventLog.swift",
"Structure/SECP256k1.swift",
"Structure/Transaction/TransactionDetails.swift",
"Structure/Transaction/TransactionInBlock.swift",
"Structure/Transaction/TransactionReceipt.swift",
"Structure/TxPool/TxPoolContent.swift",
"Structure/TxPool/TxPoolStatus.swift",
"Structure/Web3ProviderProtocol.swift",
"Transaction/CodableTransaction.swift",
"Transaction/Envelope/AbstractEnvelope.swift",
"Transaction/Envelope/EIP1559Envelope.swift",
"Transaction/Envelope/EIP2718Envelope.swift",
"Transaction/Envelope/EIP2930Envelope.swift",
"Transaction/Envelope/EnvelopeFactory.swift",
"Transaction/Envelope/LegacyEnvelope.swift",
"Transaction/Envelope/Protocols/EIP2930Compatible.swift",
"Transaction/EthereumBloomFilter.swift",
"Transaction/EventfilterParameters.swift",
"Transaction/Policies.swift",
"Transaction/TransactionMetadata.swift",
"Utility/Array+Extension.swift",
"Utility/BigUInt+Extension.swift",
"Utility/CryptoExtension.swift",
"Utility/Data+Extension.swift",
"Utility/Decodable+Extensions.swift",
"Utility/Dictionary+Extension.swift",
"Utility/Encodable+Extensions.swift",
"Utility/NSRegularExpression+Extension.swift",
"Utility/NativeTypesEncoding+Extension.swift",
"Utility/RIPEMD160+StackOveflow.swift",
"Utility/String+Extension.swift",
"Utility/Utilities.swift",
"Web3Error/Web3Error.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.