Build Information
Successful build of Mecab-Swift, reference master (1f0964
), with Swift 6.0 for macOS (SPM) on 31 Mar 2025 09:23:29 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shinjukunian/Mecab-Swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/shinjukunian/Mecab-Swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1f09649 fixed test
Submodule path 'Sources/mecab': checked out 'aa318f82798d72e5cb52ba5f6b10f0b780b30d05'
Submodule 'Sources/mecab' (https://github.com/shinjukunian/mecab.git) registered for path 'Sources/mecab'
Cloning into '/Users/admin/builder/spi-builder-workspace/Sources/mecab'...
Cloned https://github.com/shinjukunian/Mecab-Swift.git
Revision (git rev-parse @):
1f096492e37fc05fc2e7304091f54889974c5368
SUCCESS checkout https://github.com/shinjukunian/Mecab-Swift.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "mecab-swift",
"name": "Mecab-Swift",
"url": "https://github.com/shinjukunian/Mecab-Swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Mecab-Swift",
"dependencies": [
]
}
]
}
Fetching https://github.com/shinjukunian/Mecab-Swift.git
[1/697] Fetching mecab-swift
Fetched https://github.com/shinjukunian/Mecab-Swift.git from cache (3.84s)
Creating working copy for https://github.com/shinjukunian/Mecab-Swift.git
Working copy of https://github.com/shinjukunian/Mecab-Swift.git resolved at master (1f09649)
warning: '.resolve-product-dependencies': dependency 'mecab-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/shinjukunian/Mecab-Swift.git
https://github.com/shinjukunian/Mecab-Swift.git
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "Mecab-Swift",
"name" : "Mecab-Swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "Mecab-Swift",
"targets" : [
"Mecab-Swift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "IPADic",
"targets" : [
"IPADic"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CharacterFilter",
"targets" : [
"CharacterFilter"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StringTools",
"targets" : [
"StringTools"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "mecab",
"module_type" : "ClangTarget",
"name" : "mecab",
"path" : "Sources/mecab/mecab",
"product_memberships" : [
"Mecab-Swift"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/mecab/mecab/BSD",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/mecab/mecab/COPYING",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"src/char_property.cpp",
"src/connector.cpp",
"src/context_id.cpp",
"src/dictionary.cpp",
"src/dictionary_compiler.cpp",
"src/dictionary_generator.cpp",
"src/dictionary_rewriter.cpp",
"src/eval.cpp",
"src/feature_index.cpp",
"src/iconv_utils.cpp",
"src/lbfgs.cpp",
"src/learner.cpp",
"src/learner_tagger.cpp",
"src/libmecab.cpp",
"src/nbest_generator.cpp",
"src/param.cpp",
"src/string_buffer.cpp",
"src/tagger.cpp",
"src/tokenizer.cpp",
"src/utils.cpp",
"src/viterbi.cpp",
"src/writer.cpp"
],
"type" : "library"
},
{
"c99name" : "StringToolsTests",
"module_type" : "SwiftTarget",
"name" : "StringToolsTests",
"path" : "Tests/StringToolsTests",
"sources" : [
"StringToolsTests.swift"
],
"target_dependencies" : [
"StringTools"
],
"type" : "test"
},
{
"c99name" : "StringTools",
"module_type" : "SwiftTarget",
"name" : "StringTools",
"path" : "Sources/StringTools",
"product_memberships" : [
"Mecab-Swift",
"StringTools"
],
"sources" : [
"FuriganaAnnotating.swift",
"FuriganaAnnotation.swift",
"String+ScriptType.swift",
"String+SystemTokenizer.swift",
"String+Transliteration.swift"
],
"type" : "library"
},
{
"c99name" : "Mecab_SwiftTests",
"module_type" : "SwiftTarget",
"name" : "Mecab-SwiftTests",
"path" : "Tests/Mecab-SwiftTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Mecab-SwiftTests/Resources/helicobacter.html",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Mecab_SwiftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Mecab-Swift",
"CharacterFilter",
"IPADic"
],
"type" : "test"
},
{
"c99name" : "Mecab_Swift",
"module_type" : "SwiftTarget",
"name" : "Mecab-Swift",
"path" : "Sources/Mecab-Swift",
"product_memberships" : [
"Mecab-Swift"
],
"sources" : [
"Annotation.swift",
"AnnotationOptions.swift",
"SystemDictionary.swift",
"Token.swift",
"Tokenizer+SystemTokenizer.swift",
"Tokenizer.swift"
],
"target_dependencies" : [
"mecab",
"StringTools",
"Dictionary"
],
"type" : "library"
},
{
"c99name" : "IPADic",
"module_type" : "SwiftTarget",
"name" : "IPADic",
"path" : "Sources/IPADic",
"product_memberships" : [
"IPADic"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/IPADic/ipadic dictionary",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"IPADic.swift"
],
"target_dependencies" : [
"Dictionary"
],
"type" : "library"
},
{
"c99name" : "Dictionary",
"module_type" : "SwiftTarget",
"name" : "Dictionary",
"path" : "Sources/Dictionary",
"product_memberships" : [
"Mecab-Swift",
"IPADic"
],
"sources" : [
"Dictionary.swift",
"PartOfSpeech.swift"
],
"type" : "library"
},
{
"c99name" : "CharacterFilter",
"module_type" : "SwiftTarget",
"name" : "CharacterFilter",
"path" : "Sources/CharacterFilter",
"product_memberships" : [
"CharacterFilter"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/Base.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "Base"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/de.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/ja.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
}
],
"sources" : [
"CharacterFilter.swift",
"JPLTCharacters.swift",
"SchoolYearCharacters.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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
Building for debugging...
[0/38] Write sources
[2/38] Copying Localizable.strings
[2/38] Copying BSD
[2/38] Copying Info.plist
[3/38] Copying COPYING
[3/38] Copying Info.plist
[5/38] Copying Localizable.strings
[9/38] Copying Info.plist
[10/38] Write sources
[13/38] Copying Localizable.strings
[14/38] Copying ipadic dictionary
[15/38] Write swift-version-5BDAB9E9C0126B9D.txt
/Users/admin/builder/spi-builder-workspace/Sources/mecab/mecab/src/writer.cpp:253:61: warning: adding 'const char' to a string does not append to the string [-Wstring-plus-int]
253 | const std::string error = "unknown meta char: " + *p;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
/Users/admin/builder/spi-builder-workspace/Sources/mecab/mecab/src/writer.cpp:253:61: note: use array indexing to silence this warning
253 | const std::string error = "unknown meta char: " + *p;
| ^
| & [ ]
1 warning generated.
[16/38] Compiling writer.cpp
[16/38] Compiling nbest_generator.cpp
[16/38] Compiling string_buffer.cpp
[19/38] Compiling utils.cpp
[19/38] Compiling libmecab.cpp
[21/38] Compiling param.cpp
[22/52] Compiling viterbi.cpp
[23/52] Compiling learner_tagger.cpp
[24/52] Compiling tokenizer.cpp
[25/52] Compiling tagger.cpp
[26/52] Compiling lbfgs.cpp
[27/52] Compiling iconv_utils.cpp
[28/52] Compiling dictionary_rewriter.cpp
[29/52] Compiling eval.cpp
[30/52] Compiling learner.cpp
[31/52] Compiling feature_index.cpp
[32/52] Compiling dictionary_generator.cpp
[33/52] Compiling dictionary_compiler.cpp
[34/52] Compiling context_id.cpp
[35/52] Compiling connector.cpp
[36/52] Compiling dictionary.cpp
[37/52] Compiling char_property.cpp
[39/52] Compiling Dictionary Dictionary.swift
[40/52] Compiling Dictionary PartOfSpeech.swift
[41/52] Emitting module Dictionary
[42/52] Compiling CharacterFilter SchoolYearCharacters.swift
[43/52] Compiling CharacterFilter CharacterFilter.swift
[44/52] Emitting module CharacterFilter
[45/52] Compiling CharacterFilter resource_bundle_accessor.swift
[46/52] Compiling CharacterFilter JPLTCharacters.swift
[47/52] Compiling StringTools FuriganaAnnotating.swift
[48/52] Compiling StringTools String+SystemTokenizer.swift
[49/52] Compiling StringTools String+ScriptType.swift
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:15:27: warning: static property 'noJapaneseScript' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
| |- warning: static property 'noJapaneseScript' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noJapaneseScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
17 | public static let katakana=ScriptType(rawValue: 1<<2)
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:16:27: warning: static property 'hiragana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
| |- warning: static property 'hiragana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hiragana' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let katakana=ScriptType(rawValue: 1<<2)
18 | public static let kanji=ScriptType(rawValue: 1<<3)
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:17:27: warning: static property 'katakana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
17 | public static let katakana=ScriptType(rawValue: 1<<2)
| |- warning: static property 'katakana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'katakana' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let kanji=ScriptType(rawValue: 1<<3)
19 |
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:18:27: warning: static property 'kanji' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
:
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
17 | public static let katakana=ScriptType(rawValue: 1<<2)
18 | public static let kanji=ScriptType(rawValue: 1<<3)
| |- warning: static property 'kanji' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kanji' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public init(rawValue:Int){
[50/52] Compiling StringTools String+Transliteration.swift
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:16:27: warning: static property 'hiragana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
| |- warning: static property 'hiragana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hiragana' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let katakana=ScriptType(rawValue: 1<<2)
18 | public static let kanji=ScriptType(rawValue: 1<<3)
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:17:27: warning: static property 'katakana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
17 | public static let katakana=ScriptType(rawValue: 1<<2)
| |- warning: static property 'katakana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'katakana' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let kanji=ScriptType(rawValue: 1<<3)
19 |
[51/52] Emitting module StringTools
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:15:27: warning: static property 'noJapaneseScript' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
| |- warning: static property 'noJapaneseScript' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noJapaneseScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
17 | public static let katakana=ScriptType(rawValue: 1<<2)
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:16:27: warning: static property 'hiragana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
| |- warning: static property 'hiragana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hiragana' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let katakana=ScriptType(rawValue: 1<<2)
18 | public static let kanji=ScriptType(rawValue: 1<<3)
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:17:27: warning: static property 'katakana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
15 | public static let noJapaneseScript=ScriptType(rawValue: 1 << 0)
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
17 | public static let katakana=ScriptType(rawValue: 1<<2)
| |- warning: static property 'katakana' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'katakana' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let kanji=ScriptType(rawValue: 1<<3)
19 |
/Users/admin/builder/spi-builder-workspace/Sources/StringTools/String+ScriptType.swift:18:27: warning: static property 'kanji' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension String{
12 | struct ScriptType:OptionSet{
| `- note: consider making struct 'ScriptType' conform to the 'Sendable' protocol
13 | public let rawValue: Int
14 |
:
16 | public static let hiragana=ScriptType(rawValue: 1 << 1)
17 | public static let katakana=ScriptType(rawValue: 1<<2)
18 | public static let kanji=ScriptType(rawValue: 1<<3)
| |- warning: static property 'kanji' is not concurrency-safe because non-'Sendable' type 'String.ScriptType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kanji' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | public init(rawValue:Int){
[52/52] Compiling StringTools FuriganaAnnotation.swift
[53/62] Compiling IPADic resource_bundle_accessor.swift
[54/62] Emitting module IPADic
[55/62] Compiling IPADic IPADic.swift
[56/62] Compiling Mecab_Swift Annotation.swift
[57/62] Compiling Mecab_Swift AnnotationOptions.swift
[58/62] Emitting module Mecab_Swift
/Users/admin/builder/spi-builder-workspace/Sources/Mecab-Swift/Tokenizer.swift:58:23: warning: static property 'systemTokenizer' is not concurrency-safe because non-'Sendable' type 'Tokenizer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A tokenizer / morphological analyzer for Japanese
8 | */
9 | public class Tokenizer{
| `- note: class 'Tokenizer' does not conform to the 'Sendable' protocol
10 |
11 | /**
:
56 | The CoreFoundation CFStringTokenizer
57 | **/
58 | public static let systemTokenizer:Tokenizer = {
| |- warning: static property 'systemTokenizer' is not concurrency-safe because non-'Sendable' type 'Tokenizer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'systemTokenizer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | return Tokenizer()
60 | }()
[59/62] Compiling Mecab_Swift Token.swift
[60/62] Compiling Mecab_Swift Tokenizer+SystemTokenizer.swift
[61/62] Compiling Mecab_Swift SystemDictionary.swift
[62/62] Compiling Mecab_Swift Tokenizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Mecab-Swift/Tokenizer.swift:58:23: warning: static property 'systemTokenizer' is not concurrency-safe because non-'Sendable' type 'Tokenizer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | A tokenizer / morphological analyzer for Japanese
8 | */
9 | public class Tokenizer{
| `- note: class 'Tokenizer' does not conform to the 'Sendable' protocol
10 |
11 | /**
:
56 | The CoreFoundation CFStringTokenizer
57 | **/
58 | public static let systemTokenizer:Tokenizer = {
| |- warning: static property 'systemTokenizer' is not concurrency-safe because non-'Sendable' type 'Tokenizer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'systemTokenizer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | return Tokenizer()
60 | }()
Build complete! (17.65s)
Build complete.
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "Mecab-Swift",
"name" : "Mecab-Swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "Mecab-Swift",
"targets" : [
"Mecab-Swift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "IPADic",
"targets" : [
"IPADic"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CharacterFilter",
"targets" : [
"CharacterFilter"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StringTools",
"targets" : [
"StringTools"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "mecab",
"module_type" : "ClangTarget",
"name" : "mecab",
"path" : "Sources/mecab/mecab",
"product_memberships" : [
"Mecab-Swift"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/mecab/mecab/BSD",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/mecab/mecab/COPYING",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"src/char_property.cpp",
"src/connector.cpp",
"src/context_id.cpp",
"src/dictionary.cpp",
"src/dictionary_compiler.cpp",
"src/dictionary_generator.cpp",
"src/dictionary_rewriter.cpp",
"src/eval.cpp",
"src/feature_index.cpp",
"src/iconv_utils.cpp",
"src/lbfgs.cpp",
"src/learner.cpp",
"src/learner_tagger.cpp",
"src/libmecab.cpp",
"src/nbest_generator.cpp",
"src/param.cpp",
"src/string_buffer.cpp",
"src/tagger.cpp",
"src/tokenizer.cpp",
"src/utils.cpp",
"src/viterbi.cpp",
"src/writer.cpp"
],
"type" : "library"
},
{
"c99name" : "StringToolsTests",
"module_type" : "SwiftTarget",
"name" : "StringToolsTests",
"path" : "Tests/StringToolsTests",
"sources" : [
"StringToolsTests.swift"
],
"target_dependencies" : [
"StringTools"
],
"type" : "test"
},
{
"c99name" : "StringTools",
"module_type" : "SwiftTarget",
"name" : "StringTools",
"path" : "Sources/StringTools",
"product_memberships" : [
"Mecab-Swift",
"StringTools"
],
"sources" : [
"FuriganaAnnotating.swift",
"FuriganaAnnotation.swift",
"String+ScriptType.swift",
"String+SystemTokenizer.swift",
"String+Transliteration.swift"
],
"type" : "library"
},
{
"c99name" : "Mecab_SwiftTests",
"module_type" : "SwiftTarget",
"name" : "Mecab-SwiftTests",
"path" : "Tests/Mecab-SwiftTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/Mecab-SwiftTests/Resources/helicobacter.html",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Mecab_SwiftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Mecab-Swift",
"CharacterFilter",
"IPADic"
],
"type" : "test"
},
{
"c99name" : "Mecab_Swift",
"module_type" : "SwiftTarget",
"name" : "Mecab-Swift",
"path" : "Sources/Mecab-Swift",
"product_memberships" : [
"Mecab-Swift"
],
"sources" : [
"Annotation.swift",
"AnnotationOptions.swift",
"SystemDictionary.swift",
"Token.swift",
"Tokenizer+SystemTokenizer.swift",
"Tokenizer.swift"
],
"target_dependencies" : [
"mecab",
"StringTools",
"Dictionary"
],
"type" : "library"
},
{
"c99name" : "IPADic",
"module_type" : "SwiftTarget",
"name" : "IPADic",
"path" : "Sources/IPADic",
"product_memberships" : [
"IPADic"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/IPADic/ipadic dictionary",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"IPADic.swift"
],
"target_dependencies" : [
"Dictionary"
],
"type" : "library"
},
{
"c99name" : "Dictionary",
"module_type" : "SwiftTarget",
"name" : "Dictionary",
"path" : "Sources/Dictionary",
"product_memberships" : [
"Mecab-Swift",
"IPADic"
],
"sources" : [
"Dictionary.swift",
"PartOfSpeech.swift"
],
"type" : "library"
},
{
"c99name" : "CharacterFilter",
"module_type" : "SwiftTarget",
"name" : "CharacterFilter",
"path" : "Sources/CharacterFilter",
"product_memberships" : [
"CharacterFilter"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/Base.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "Base"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/de.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/CharacterFilter/Resources/ja.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
}
],
"sources" : [
"CharacterFilter.swift",
"JPLTCharacters.swift",
"SchoolYearCharacters.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.