The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TextModeration, reference main (af3aee), with Swift 6.1 for Wasm on 20 Aug 2026 05:52:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NikolaiBorisov/TextModeration.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/NikolaiBorisov/TextModeration
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at af3aeee Add README badges
Cloned https://github.com/NikolaiBorisov/TextModeration.git
Revision (git rev-parse @):
af3aeee341a3a577fae971ec30381f26deae0575
SUCCESS checkout https://github.com/NikolaiBorisov/TextModeration.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/NikolaiBorisov/TextModeration.git
https://github.com/NikolaiBorisov/TextModeration.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling TextModeration TextLengthRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[4/15] Compiling TextModeration SpecialCharactersRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/15] Compiling TextModeration EmojiRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/15] Compiling TextModeration ExcessiveCapsRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/15] Emitting module TextModeration
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
[8/15] Compiling TextModeration LinkRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TextModeration/LinkRule.swift:30:29: error: cannot find 'NSDataDetector' in scope
28 |     /// Evaluates whether the text contains more URLs than allowed.
29 |     public func evaluate(_ text: String) -> ModerationIssue? {
30 |         let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue)
   |                             `- error: cannot find 'NSDataDetector' in scope
31 |         let range = NSRange(text.startIndex..<text.endIndex, in: text)
32 |
[9/15] Compiling TextModeration MentionRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TextModeration/LinkRule.swift:30:29: error: cannot find 'NSDataDetector' in scope
28 |     /// Evaluates whether the text contains more URLs than allowed.
29 |     public func evaluate(_ text: String) -> ModerationIssue? {
30 |         let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue)
   |                             `- error: cannot find 'NSDataDetector' in scope
31 |         let range = NSRange(text.startIndex..<text.endIndex, in: text)
32 |
[10/15] Compiling TextModeration RepeatedCharactersRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/15] Compiling TextModeration RepetitionRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/15] Compiling TextModeration SpamRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/15] Compiling TextModeration PersonalDataRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:44:35: warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
42 |
43 |         if detectsPhoneNumbers {
44 |             checkingTypes.insert(.phoneNumber)
   |                                   `- warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
45 |         }
46 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:48:35: warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
46 |
47 |         if detectsPostalAddresses {
48 |             checkingTypes.insert(.address)
   |                                   `- warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
49 |         }
50 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:53:16: error: cannot find 'NSDataDetector' in scope
51 |         self.dataDetector = checkingTypes.isEmpty
52 |         ? nil
53 |         : try? NSDataDetector(types: checkingTypes.rawValue)
   |                `- error: cannot find 'NSDataDetector' in scope
54 |     }
55 |
[14/15] Compiling TextModeration ProfanityRule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:44:35: warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
42 |
43 |         if detectsPhoneNumbers {
44 |             checkingTypes.insert(.phoneNumber)
   |                                   `- warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
45 |         }
46 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:48:35: warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
46 |
47 |         if detectsPostalAddresses {
48 |             checkingTypes.insert(.address)
   |                                   `- warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
49 |         }
50 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:53:16: error: cannot find 'NSDataDetector' in scope
51 |         self.dataDetector = checkingTypes.isEmpty
52 |         ? nil
53 |         : try? NSDataDetector(types: checkingTypes.rawValue)
   |                `- error: cannot find 'NSDataDetector' in scope
54 |     }
55 |
[15/15] Compiling TextModeration TextModeration.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/13] Compiling TextModeration TextLengthRule.swift
[3/14] Compiling TextModeration SpecialCharactersRule.swift
[4/14] Compiling TextModeration SpamRule.swift
[5/14] Compiling TextModeration RepeatedCharactersRule.swift
[6/14] Compiling TextModeration RepetitionRule.swift
[7/14] Compiling TextModeration PersonalDataRule.swift
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:44:35: warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
42 |
43 |         if detectsPhoneNumbers {
44 |             checkingTypes.insert(.phoneNumber)
   |                                   `- warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
45 |         }
46 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:48:35: warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
46 |
47 |         if detectsPostalAddresses {
48 |             checkingTypes.insert(.address)
   |                                   `- warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
49 |         }
50 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:53:16: error: cannot find 'NSDataDetector' in scope
51 |         self.dataDetector = checkingTypes.isEmpty
52 |         ? nil
53 |         : try? NSDataDetector(types: checkingTypes.rawValue)
   |                `- error: cannot find 'NSDataDetector' in scope
54 |     }
55 |
[8/14] Compiling TextModeration ProfanityRule.swift
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:44:35: warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
42 |
43 |         if detectsPhoneNumbers {
44 |             checkingTypes.insert(.phoneNumber)
   |                                   `- warning: 'phoneNumber' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
45 |         }
46 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:48:35: warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
46 |
47 |         if detectsPostalAddresses {
48 |             checkingTypes.insert(.address)
   |                                   `- warning: 'address' is deprecated: These types of result will not be returned by swift-corelibs-foundation API.
49 |         }
50 |
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:53:16: error: cannot find 'NSDataDetector' in scope
51 |         self.dataDetector = checkingTypes.isEmpty
52 |         ? nil
53 |         : try? NSDataDetector(types: checkingTypes.rawValue)
   |                `- error: cannot find 'NSDataDetector' in scope
54 |     }
55 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/14] Compiling TextModeration EmojiRule.swift
[10/14] Compiling TextModeration ExcessiveCapsRule.swift
[11/14] Emitting module TextModeration
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
[12/14] Compiling TextModeration LinkRule.swift
/host/spi-builder-workspace/Sources/TextModeration/LinkRule.swift:30:29: error: cannot find 'NSDataDetector' in scope
28 |     /// Evaluates whether the text contains more URLs than allowed.
29 |     public func evaluate(_ text: String) -> ModerationIssue? {
30 |         let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue)
   |                             `- error: cannot find 'NSDataDetector' in scope
31 |         let range = NSRange(text.startIndex..<text.endIndex, in: text)
32 |
[13/14] Compiling TextModeration MentionRule.swift
/host/spi-builder-workspace/Sources/TextModeration/LinkRule.swift:30:29: error: cannot find 'NSDataDetector' in scope
28 |     /// Evaluates whether the text contains more URLs than allowed.
29 |     public func evaluate(_ text: String) -> ModerationIssue? {
30 |         let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue)
   |                             `- error: cannot find 'NSDataDetector' in scope
31 |         let range = NSRange(text.startIndex..<text.endIndex, in: text)
32 |
[14/14] Compiling TextModeration TextModeration.swift
/host/spi-builder-workspace/Sources/TextModeration/PersonalDataRule.swift:14:31: error: cannot find type 'NSDataDetector' in scope
12 |     private let decision: ModerationDecision
13 |     private let emailExpression: NSRegularExpression
14 |     private let dataDetector: NSDataDetector?
   |                               `- error: cannot find type 'NSDataDetector' in scope
15 |
16 |     /// Creates a personal data rule.
BUILD FAILURE 6.1 wasm