Build Information
Successful build of JSONSchemaForm, reference v1.0.4 (a4feb4), with Swift 6.2 for macOS (SPM) on 19 Feb 2026 05:15:01 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sirily11/swift-jsonschema-form.git
Reference: v1.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sirily11/swift-jsonschema-form
* tag v1.0.4 -> FETCH_HEAD
HEAD is now at a4feb40 fix: enum field default selection empty (#21)
Cloned https://github.com/sirily11/swift-jsonschema-form.git
Revision (git rev-parse @):
a4feb400a0bca57bc39b8ea95544c71aa768fbfd
SUCCESS checkout https://github.com/sirily11/swift-jsonschema-form.git at v1.0.4
Fetching https://github.com/nalexn/ViewInspector
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/sirily11/swift-json-schema
[1/12728] Fetching viewinspector
[129/12902] Fetching viewinspector, swift-json-schema
[557/32571] Fetching viewinspector, swift-json-schema, swift-collections
Fetched https://github.com/nalexn/ViewInspector from cache (1.87s)
Fetched https://github.com/apple/swift-collections from cache (1.87s)
Fetched https://github.com/sirily11/swift-json-schema from cache (1.87s)
Computing version for https://github.com/nalexn/ViewInspector
Computed https://github.com/nalexn/ViewInspector at 0.10.1 (2.43s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.1.4 (2.62s)
Computing version for https://github.com/sirily11/swift-json-schema
Computed https://github.com/sirily11/swift-json-schema at 1.0.2 (0.55s)
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.1.4
Creating working copy for https://github.com/sirily11/swift-json-schema
Working copy of https://github.com/sirily11/swift-json-schema resolved at 1.0.2
Creating working copy for https://github.com/nalexn/ViewInspector
Working copy of https://github.com/nalexn/ViewInspector resolved at 0.10.1
========================================
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": "swift-jsonschema-form",
"name": "JSONSchemaForm",
"url": "https://github.com/sirily11/swift-jsonschema-form.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-jsonschema-form",
"dependencies": [
{
"identity": "swift-json-schema",
"name": "JSONSchema",
"url": "https://github.com/sirily11/swift-json-schema",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-json-schema",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections",
"version": "1.3.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/sirily11/swift-jsonschema-form.git
[1/534] Fetching swift-jsonschema-form
Fetched https://github.com/sirily11/swift-jsonschema-form.git from cache (0.93s)
Fetching https://github.com/apple/swift-collections from cache
Fetching https://github.com/sirily11/swift-json-schema from cache
Fetched https://github.com/apple/swift-collections from cache (0.66s)
Fetched https://github.com/sirily11/swift-json-schema from cache (0.66s)
Computing version for https://github.com/sirily11/swift-json-schema
Computed https://github.com/sirily11/swift-json-schema at 1.0.2 (0.71s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.3.0 (0.61s)
Creating working copy for https://github.com/sirily11/swift-jsonschema-form.git
Working copy of https://github.com/sirily11/swift-jsonschema-form.git resolved at v1.0.4 (a4feb40)
Creating working copy for https://github.com/sirily11/swift-json-schema
Working copy of https://github.com/sirily11/swift-json-schema resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.3.0
warning: '.resolve-product-dependencies': dependency 'swift-jsonschema-form' is not used by any target
Found 2 product dependencies
- JSONSchema
- swift-collections
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/sirily11/swift-jsonschema-form.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/12] Write sources
[11/12] Write swift-version-49B95AFC49DCD68C.txt
[13/41] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[14/42] Compiling InternalCollectionsUtilities Debugging.swift
[15/42] Compiling InternalCollectionsUtilities Descriptions.swift
[16/42] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[17/42] Compiling InternalCollectionsUtilities Specialize.swift
[18/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[19/42] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[20/42] Compiling InternalCollectionsUtilities _SortedCollection.swift
[21/42] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[22/42] Emitting module InternalCollectionsUtilities
[23/42] Compiling InternalCollectionsUtilities UInt+reversed.swift
[24/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[25/42] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[26/42] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[27/42] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[28/42] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[29/42] Compiling InternalCollectionsUtilities Integer rank.swift
[30/42] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[31/42] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[32/324] Compiling _RopeModule BigString+Chunk.swift
[33/324] Compiling _RopeModule BigString+BidirectionalCollection.swift
[34/325] Compiling DequeModule _DequeBufferHeader.swift
[35/325] Compiling DequeModule _DequeSlot.swift
[36/325] Compiling HeapModule _HeapNode.swift
[37/325] Compiling DequeModule _DequeBuffer.swift
[38/325] Compiling HeapModule Heap.swift
[39/325] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[40/325] Compiling HeapModule Heap+UnsafeHandle.swift
[41/325] Compiling HeapModule Heap+Invariants.swift
[42/325] Compiling HeapModule Heap+Descriptions.swift
[43/325] Emitting module HeapModule
[44/325] Compiling _RopeModule BigString+Comparable.swift
[45/325] Compiling _RopeModule BigString+CustomDebugStringConvertible.swift
[46/325] Compiling _RopeModule BigString+CustomStringConvertible.swift
[47/325] Compiling _RopeModule BigString+Equatable.swift
[48/325] Compiling DequeModule _UnsafeWrappedBuffer.swift
[49/325] Compiling _RopeModule BigString+UnicodeScalarView.swift
[50/325] Compiling _RopeModule BigSubstring+UTF16View.swift
[51/325] Compiling _RopeModule BigSubstring+UTF8View.swift
[52/325] Compiling _RopeModule BigSubstring+UnicodeScalarView.swift
[53/325] Compiling _RopeModule BigSubstring.swift
[54/325] Compiling _RopeModule Rope+Builder.swift
[55/331] Compiling _RopeModule BigString+Split.swift
[56/331] Compiling _RopeModule Range+BigString.swift
[57/331] Compiling _RopeModule BigString+UTF16View.swift
[58/331] Compiling _RopeModule BigString+UTF8View.swift
[59/331] Compiling _RopeModule BigString+Builder.swift
[60/331] Compiling _RopeModule BigString+Contents.swift
[61/331] Compiling _RopeModule Rope+Debugging.swift
[62/331] Compiling _RopeModule Rope+Invariants.swift
[63/331] Compiling _RopeModule BigString+Insert.swift
[64/331] Compiling _RopeModule BigString+Managing Breaks.swift
[65/331] Compiling _RopeModule BigString+RemoveSubrange.swift
[66/331] Compiling _RopeModule BigString+ReplaceSubrange.swift
[67/331] Compiling _RopeModule _RopeItem.swift
[68/331] Compiling _RopeModule _RopePath.swift
[69/331] Compiling _RopeModule _RopeVersion.swift
[70/331] Compiling _RopeModule Rope+Collection.swift
[71/331] Compiling _RopeModule Rope+Index.swift
[72/331] Compiling _RopeModule Rope+Sequence.swift
[73/331] Compiling _RopeModule Rope+Append.swift
[74/331] Compiling _RopeModule Rope+Extract.swift
[75/331] Compiling _RopeModule Rope+Find.swift
[76/331] Compiling _RopeModule Rope+ForEachWhile.swift
[77/331] Compiling _RopeModule Rope+Insert.swift
[78/331] Compiling _RopeModule Rope+Join.swift
[82/336] Compiling BitCollections BitSet.swift
[83/336] Compiling BitCollections Range+Utilities.swift
[84/336] Compiling BitCollections Slice+Utilities.swift
[85/336] Compiling BitCollections UInt+Tricks.swift
[86/336] Compiling BitCollections _Word.swift
[87/344] Compiling _RopeModule BigString+ExpressibleByStringLiteral.swift
[88/344] Compiling _RopeModule BigString+Hashing.swift
[89/344] Compiling _RopeModule BigString+LosslessStringConvertible.swift
[90/344] Compiling _RopeModule BigString+RangeReplaceableCollection.swift
[91/344] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[92/344] Compiling _RopeModule BigString+Chunk+Splitting.swift
[97/344] Compiling _RopeModule Rope+MutatingForEach.swift
[117/344] Compiling _RopeModule BigString+TextOutputStream.swift
[118/344] Compiling _RopeModule BigString+Append.swift
[119/344] Compiling _RopeModule BigString+Initializers.swift
[120/344] Compiling _RopeModule Rope+_Node.swift
[121/344] Compiling _RopeModule Rope+_Storage.swift
[122/344] Compiling _RopeModule Rope+_UnmanagedLeaf.swift
[123/344] Compiling _RopeModule Rope+_UnsafeHandle.swift
[124/344] Compiling _RopeModule Rope.swift
[125/344] Compiling _RopeModule RopeElement.swift
[126/344] Compiling _RopeModule RopeMetric.swift
[127/344] Compiling _RopeModule RopeSummary.swift
[135/344] Emitting module DequeModule
[148/344] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[149/344] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[150/344] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[151/344] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[152/344] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[153/344] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[154/344] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[155/344] Compiling HashTreeCollections TreeSet.swift
[156/344] Compiling _RopeModule BigString+Sequence.swift
[174/344] Emitting module BitCollections
[219/351] Compiling OrderedCollections OrderedSet.swift
[220/351] Compiling OrderedCollections _UnsafeBitset.swift
[221/351] Compiling _RopeModule BigString+Summary.swift
[222/351] Compiling _RopeModule BigString.swift
[223/351] Compiling _RopeModule BigString+Chunk+Append and Insert.swift
[224/351] Compiling _RopeModule BigString+Chunk+Breaks.swift
[225/351] Compiling _RopeModule BigString+Chunk+Counts.swift
[226/351] Compiling _RopeModule BigString+Chunk+Description.swift
[227/351] Compiling _RopeModule BigString+Chunk+Indexing by Characters.swift
[235/351] Compiling _RopeModule BigString+Chunk+Indexing by UTF16.swift
[237/351] Compiling _RopeModule Rope+Remove.swift
[238/351] Compiling _RopeModule Rope+RemoveSubrange.swift
[239/351] Compiling _RopeModule Rope+Split.swift
[240/351] Compiling _RopeModule Optional Utilities.swift
[241/351] Compiling _RopeModule String Utilities.swift
[242/351] Compiling _RopeModule String.Index+ABI.swift
[243/351] Compiling _RopeModule _CharacterRecognizer.swift
[244/351] Compiling HashTreeCollections _RawHashNode+UnsafeHandle.swift
[259/351] Emitting module OrderedCollections
[295/351] Emitting module _RopeModule
[340/351] Emitting module HashTreeCollections
[341/353] Compiling Collections Collections.swift
[342/353] Emitting module Collections
[343/353] Compiling JSONSchema JSONSchema+Number.swift
[344/353] Compiling JSONSchema JSONSchema+Boolean.swift
[345/353] Emitting module JSONSchema
[346/353] Compiling JSONSchema JSONSchema+Null.swift
[347/353] Compiling JSONSchema JSONSchema+Object.swift
[350/353] Compiling JSONSchema JSONSchema+Combined.swift
[351/353] Compiling JSONSchema JSONSchema+Enum.swift
[352/353] Compiling JSONSchema JSONSchema+String.swift
[353/353] Compiling JSONSchema JSONSchema+Integer.swift
[354/354] Compiling JSONSchema JSONSchema.swift
[355/365] Compiling JSONSchemaValidator CombinatorsValidator.swift
[356/365] Compiling JSONSchemaValidator EnumValidator.swift
[357/365] Compiling JSONSchemaValidator StringValidator.swift
[358/365] Compiling JSONSchemaValidator FormatValidator.swift
[359/365] Compiling JSONSchemaValidator NumberValidator.swift
[360/365] Compiling JSONSchemaValidator ObjectValidator.swift
[361/366] Compiling JSONSchemaValidator TypeValidator.swift
[362/366] Compiling JSONSchemaValidator ValidationError.swift
[363/366] Compiling JSONSchemaValidator JSONSchemaValidating.swift
[364/366] Compiling JSONSchemaValidator JSONSchemaValidator.swift
[365/366] Emitting module JSONSchemaValidator
[366/366] Compiling JSONSchemaValidator ArrayValidator.swift
[367/415] Emitting module JSONSchemaForm
[368/420] Compiling JSONSchemaForm SchemaMerger.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Utils/SchemaUtils.swift:91:9: warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
89 | /// Creates an ID schema based on the JSON schema structure
90 | func createIdSchema(schema: JSONSchema, id: String, formData: Any?) -> [String: Any] {
91 | var idSchema: [String: Any] = ["$id": id]
| `- warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
92 |
93 | // // For object schemas, create ids for each property
[369/420] Compiling JSONSchemaForm SchemaPreprocessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Utils/SchemaUtils.swift:91:9: warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
89 | /// Creates an ID schema based on the JSON schema structure
90 | func createIdSchema(schema: JSONSchema, id: String, formData: Any?) -> [String: Any] {
91 | var idSchema: [String: Any] = ["$id": id]
| `- warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
92 |
93 | // // For object schemas, create ids for each property
[370/420] Compiling JSONSchemaForm SchemaUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Utils/SchemaUtils.swift:91:9: warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
89 | /// Creates an ID schema based on the JSON schema structure
90 | func createIdSchema(schema: JSONSchema, id: String, formData: Any?) -> [String: Any] {
91 | var idSchema: [String: Any] = ["$id": id]
| `- warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
92 |
93 | // // For object schemas, create ids for each property
[371/420] Compiling JSONSchemaForm UISchemaUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Utils/SchemaUtils.swift:91:9: warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
89 | /// Creates an ID schema based on the JSON schema structure
90 | func createIdSchema(schema: JSONSchema, id: String, formData: Any?) -> [String: Any] {
91 | var idSchema: [String: Any] = ["$id": id]
| `- warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
92 |
93 | // // For object schemas, create ids for each property
[372/420] Compiling JSONSchemaForm Validation.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Utils/SchemaUtils.swift:91:9: warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
89 | /// Creates an ID schema based on the JSON schema structure
90 | func createIdSchema(schema: JSONSchema, id: String, formData: Any?) -> [String: Any] {
91 | var idSchema: [String: Any] = ["$id": id]
| `- warning: variable 'idSchema' was never mutated; consider changing to 'let' constant
92 |
93 | // // For object schemas, create ids for each property
[373/420] Compiling JSONSchemaForm ArrayFieldTemplate.swift
[374/420] Compiling JSONSchemaForm ArrayFieldTitleTemplate.swift
[375/420] Compiling JSONSchemaForm BaseInputTemplate.swift
[376/420] Compiling JSONSchemaForm AddButton.swift
[377/420] Compiling JSONSchemaForm ButtonTemplates.swift
[378/420] Compiling JSONSchemaForm IconButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/DescriptionFieldTemplate.swift:14:46: warning: conditional cast from 'String' to 'String' always succeeds
12 | var body: some View {
13 | if let description = description {
14 | if let description = description as? String {
| `- warning: conditional cast from 'String' to 'String' always succeeds
15 | Text(description)
16 | .id(id)
[379/420] Compiling JSONSchemaForm SubmitButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/DescriptionFieldTemplate.swift:14:46: warning: conditional cast from 'String' to 'String' always succeeds
12 | var body: some View {
13 | if let description = description {
14 | if let description = description as? String {
| `- warning: conditional cast from 'String' to 'String' always succeeds
15 | Text(description)
16 | .id(id)
[380/420] Compiling JSONSchemaForm DescriptionFieldTemplate.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/DescriptionFieldTemplate.swift:14:46: warning: conditional cast from 'String' to 'String' always succeeds
12 | var body: some View {
13 | if let description = description {
14 | if let description = description as? String {
| `- warning: conditional cast from 'String' to 'String' always succeeds
15 | Text(description)
16 | .id(id)
[381/420] Compiling JSONSchemaForm ErrorListTemplate.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/DescriptionFieldTemplate.swift:14:46: warning: conditional cast from 'String' to 'String' always succeeds
12 | var body: some View {
13 | if let description = description {
14 | if let description = description as? String {
| `- warning: conditional cast from 'String' to 'String' always succeeds
15 | Text(description)
16 | .id(id)
[382/420] Compiling JSONSchemaForm FieldErrorTemplate.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/DescriptionFieldTemplate.swift:14:46: warning: conditional cast from 'String' to 'String' always succeeds
12 | var body: some View {
13 | if let description = description {
14 | if let description = description as? String {
| `- warning: conditional cast from 'String' to 'String' always succeeds
15 | Text(description)
16 | .id(id)
[383/420] Compiling JSONSchemaForm EnumValue.swift
[384/420] Compiling JSONSchemaForm FormData.swift
[385/420] Compiling JSONSchemaForm ConditionEvaluator.swift
[386/420] Compiling JSONSchemaForm PropertyOrderExtractor.swift
[387/420] Compiling JSONSchemaForm RegistryUtils.swift
[388/420] Compiling JSONSchemaForm FieldHelpTemplate.swift
[389/420] Compiling JSONSchemaForm FieldTemplate.swift
[390/420] Compiling JSONSchemaForm ObjectFieldTemplate.swift
[391/420] Compiling JSONSchemaForm RegistryTemplates.swift
[392/420] Compiling JSONSchemaForm TemplateProps.swift
[393/420] Compiling JSONSchemaForm DescriptionField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:167:64: warning: expression implicitly coerced from 'Any?' to 'Any'
165 | .id("\(id)_enum_field")
166 | .onChange(of: value) { _, newValue in
167 | self.formData.wrappedValue = .fromValueType(value: newValue.value)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:201:50: warning: expression implicitly coerced from 'Any?' to 'Any'
199 | Text(option.displayName)
200 | .tag(option)
201 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
202 | }
203 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:238:58: warning: expression implicitly coerced from 'Any?' to 'Any'
236 | } label: {
237 | HStack {
238 | Image(systemName: isSelected(option.value) ? "circle.fill" : "circle")
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
239 | Text(option.displayName)
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:244:42: warning: expression implicitly coerced from 'Any?' to 'Any'
242 | }
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:245:41: warning: expression implicitly coerced from 'Any?' to 'Any'
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:254:44: warning: cast from 'EnumValue' to unrelated type 'String' always fails
252 | private func isSelected(_ value: Any) -> Bool {
253 | let selectedValue = selection.wrappedValue
254 | if let selectedStr = selectedValue as? String,
| `- warning: cast from 'EnumValue' to unrelated type 'String' always fails
255 | let valueStr = value as? String
256 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:258:52: warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
256 | {
257 | return selectedStr == valueStr
258 | } else if let selectedBool = selectedValue as? Bool,
| `- warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
259 | let valueBool = value as? Bool
260 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:262:51: warning: cast from 'EnumValue' to unrelated type 'Double' always fails
260 | {
261 | return selectedBool == valueBool
262 | } else if let selectedNum = selectedValue as? Double,
| `- warning: cast from 'EnumValue' to unrelated type 'Double' always fails
263 | let valueNum = value as? Double
264 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:266:51: warning: cast from 'EnumValue' to unrelated type 'Int' always fails
264 | {
265 | return selectedNum == valueNum
266 | } else if let selectedInt = selectedValue as? Int,
| `- warning: cast from 'EnumValue' to unrelated type 'Int' always fails
267 | let valueInt = value as? Int
268 | {
[394/420] Compiling JSONSchemaForm EnumField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:167:64: warning: expression implicitly coerced from 'Any?' to 'Any'
165 | .id("\(id)_enum_field")
166 | .onChange(of: value) { _, newValue in
167 | self.formData.wrappedValue = .fromValueType(value: newValue.value)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:201:50: warning: expression implicitly coerced from 'Any?' to 'Any'
199 | Text(option.displayName)
200 | .tag(option)
201 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
202 | }
203 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:238:58: warning: expression implicitly coerced from 'Any?' to 'Any'
236 | } label: {
237 | HStack {
238 | Image(systemName: isSelected(option.value) ? "circle.fill" : "circle")
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
239 | Text(option.displayName)
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:244:42: warning: expression implicitly coerced from 'Any?' to 'Any'
242 | }
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:245:41: warning: expression implicitly coerced from 'Any?' to 'Any'
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:254:44: warning: cast from 'EnumValue' to unrelated type 'String' always fails
252 | private func isSelected(_ value: Any) -> Bool {
253 | let selectedValue = selection.wrappedValue
254 | if let selectedStr = selectedValue as? String,
| `- warning: cast from 'EnumValue' to unrelated type 'String' always fails
255 | let valueStr = value as? String
256 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:258:52: warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
256 | {
257 | return selectedStr == valueStr
258 | } else if let selectedBool = selectedValue as? Bool,
| `- warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
259 | let valueBool = value as? Bool
260 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:262:51: warning: cast from 'EnumValue' to unrelated type 'Double' always fails
260 | {
261 | return selectedBool == valueBool
262 | } else if let selectedNum = selectedValue as? Double,
| `- warning: cast from 'EnumValue' to unrelated type 'Double' always fails
263 | let valueNum = value as? Double
264 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:266:51: warning: cast from 'EnumValue' to unrelated type 'Int' always fails
264 | {
265 | return selectedNum == valueNum
266 | } else if let selectedInt = selectedValue as? Int,
| `- warning: cast from 'EnumValue' to unrelated type 'Int' always fails
267 | let valueInt = value as? Int
268 | {
[395/420] Compiling JSONSchemaForm Fields.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:167:64: warning: expression implicitly coerced from 'Any?' to 'Any'
165 | .id("\(id)_enum_field")
166 | .onChange(of: value) { _, newValue in
167 | self.formData.wrappedValue = .fromValueType(value: newValue.value)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:201:50: warning: expression implicitly coerced from 'Any?' to 'Any'
199 | Text(option.displayName)
200 | .tag(option)
201 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
202 | }
203 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:238:58: warning: expression implicitly coerced from 'Any?' to 'Any'
236 | } label: {
237 | HStack {
238 | Image(systemName: isSelected(option.value) ? "circle.fill" : "circle")
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
239 | Text(option.displayName)
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:244:42: warning: expression implicitly coerced from 'Any?' to 'Any'
242 | }
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:245:41: warning: expression implicitly coerced from 'Any?' to 'Any'
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:254:44: warning: cast from 'EnumValue' to unrelated type 'String' always fails
252 | private func isSelected(_ value: Any) -> Bool {
253 | let selectedValue = selection.wrappedValue
254 | if let selectedStr = selectedValue as? String,
| `- warning: cast from 'EnumValue' to unrelated type 'String' always fails
255 | let valueStr = value as? String
256 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:258:52: warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
256 | {
257 | return selectedStr == valueStr
258 | } else if let selectedBool = selectedValue as? Bool,
| `- warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
259 | let valueBool = value as? Bool
260 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:262:51: warning: cast from 'EnumValue' to unrelated type 'Double' always fails
260 | {
261 | return selectedBool == valueBool
262 | } else if let selectedNum = selectedValue as? Double,
| `- warning: cast from 'EnumValue' to unrelated type 'Double' always fails
263 | let valueNum = value as? Double
264 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:266:51: warning: cast from 'EnumValue' to unrelated type 'Int' always fails
264 | {
265 | return selectedNum == valueNum
266 | } else if let selectedInt = selectedValue as? Int,
| `- warning: cast from 'EnumValue' to unrelated type 'Int' always fails
267 | let valueInt = value as? Int
268 | {
[396/420] Compiling JSONSchemaForm InvalidValueType.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:167:64: warning: expression implicitly coerced from 'Any?' to 'Any'
165 | .id("\(id)_enum_field")
166 | .onChange(of: value) { _, newValue in
167 | self.formData.wrappedValue = .fromValueType(value: newValue.value)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:201:50: warning: expression implicitly coerced from 'Any?' to 'Any'
199 | Text(option.displayName)
200 | .tag(option)
201 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
202 | }
203 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:238:58: warning: expression implicitly coerced from 'Any?' to 'Any'
236 | } label: {
237 | HStack {
238 | Image(systemName: isSelected(option.value) ? "circle.fill" : "circle")
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
239 | Text(option.displayName)
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:244:42: warning: expression implicitly coerced from 'Any?' to 'Any'
242 | }
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:245:41: warning: expression implicitly coerced from 'Any?' to 'Any'
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:254:44: warning: cast from 'EnumValue' to unrelated type 'String' always fails
252 | private func isSelected(_ value: Any) -> Bool {
253 | let selectedValue = selection.wrappedValue
254 | if let selectedStr = selectedValue as? String,
| `- warning: cast from 'EnumValue' to unrelated type 'String' always fails
255 | let valueStr = value as? String
256 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:258:52: warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
256 | {
257 | return selectedStr == valueStr
258 | } else if let selectedBool = selectedValue as? Bool,
| `- warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
259 | let valueBool = value as? Bool
260 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:262:51: warning: cast from 'EnumValue' to unrelated type 'Double' always fails
260 | {
261 | return selectedBool == valueBool
262 | } else if let selectedNum = selectedValue as? Double,
| `- warning: cast from 'EnumValue' to unrelated type 'Double' always fails
263 | let valueNum = value as? Double
264 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:266:51: warning: cast from 'EnumValue' to unrelated type 'Int' always fails
264 | {
265 | return selectedNum == valueNum
266 | } else if let selectedInt = selectedValue as? Int,
| `- warning: cast from 'EnumValue' to unrelated type 'Int' always fails
267 | let valueInt = value as? Int
268 | {
[397/420] Compiling JSONSchemaForm MultiSchemaField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:167:64: warning: expression implicitly coerced from 'Any?' to 'Any'
165 | .id("\(id)_enum_field")
166 | .onChange(of: value) { _, newValue in
167 | self.formData.wrappedValue = .fromValueType(value: newValue.value)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:201:50: warning: expression implicitly coerced from 'Any?' to 'Any'
199 | Text(option.displayName)
200 | .tag(option)
201 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
202 | }
203 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:238:58: warning: expression implicitly coerced from 'Any?' to 'Any'
236 | } label: {
237 | HStack {
238 | Image(systemName: isSelected(option.value) ? "circle.fill" : "circle")
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
239 | Text(option.displayName)
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:244:42: warning: expression implicitly coerced from 'Any?' to 'Any'
242 | }
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:245:41: warning: expression implicitly coerced from 'Any?' to 'Any'
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:254:44: warning: cast from 'EnumValue' to unrelated type 'String' always fails
252 | private func isSelected(_ value: Any) -> Bool {
253 | let selectedValue = selection.wrappedValue
254 | if let selectedStr = selectedValue as? String,
| `- warning: cast from 'EnumValue' to unrelated type 'String' always fails
255 | let valueStr = value as? String
256 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:258:52: warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
256 | {
257 | return selectedStr == valueStr
258 | } else if let selectedBool = selectedValue as? Bool,
| `- warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
259 | let valueBool = value as? Bool
260 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:262:51: warning: cast from 'EnumValue' to unrelated type 'Double' always fails
260 | {
261 | return selectedBool == valueBool
262 | } else if let selectedNum = selectedValue as? Double,
| `- warning: cast from 'EnumValue' to unrelated type 'Double' always fails
263 | let valueNum = value as? Double
264 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:266:51: warning: cast from 'EnumValue' to unrelated type 'Int' always fails
264 | {
265 | return selectedNum == valueNum
266 | } else if let selectedInt = selectedValue as? Int,
| `- warning: cast from 'EnumValue' to unrelated type 'Int' always fails
267 | let valueInt = value as? Int
268 | {
[398/420] Compiling JSONSchemaForm NullField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:167:64: warning: expression implicitly coerced from 'Any?' to 'Any'
165 | .id("\(id)_enum_field")
166 | .onChange(of: value) { _, newValue in
167 | self.formData.wrappedValue = .fromValueType(value: newValue.value)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
168 | }
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:201:50: warning: expression implicitly coerced from 'Any?' to 'Any'
199 | Text(option.displayName)
200 | .tag(option)
201 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
202 | }
203 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:238:58: warning: expression implicitly coerced from 'Any?' to 'Any'
236 | } label: {
237 | HStack {
238 | Image(systemName: isSelected(option.value) ? "circle.fill" : "circle")
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
239 | Text(option.displayName)
240 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:244:42: warning: expression implicitly coerced from 'Any?' to 'Any'
242 | }
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:245:41: warning: expression implicitly coerced from 'Any?' to 'Any'
243 | .buttonStyle(.plain)
244 | .disabled(isDisabled(option.value))
245 | .opacity(isDisabled(option.value) ? 0.5 : 1.0)
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Any?' to 'Any'
246 | }
247 | }
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:254:44: warning: cast from 'EnumValue' to unrelated type 'String' always fails
252 | private func isSelected(_ value: Any) -> Bool {
253 | let selectedValue = selection.wrappedValue
254 | if let selectedStr = selectedValue as? String,
| `- warning: cast from 'EnumValue' to unrelated type 'String' always fails
255 | let valueStr = value as? String
256 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:258:52: warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
256 | {
257 | return selectedStr == valueStr
258 | } else if let selectedBool = selectedValue as? Bool,
| `- warning: cast from 'EnumValue' to unrelated type 'Bool' always fails
259 | let valueBool = value as? Bool
260 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:262:51: warning: cast from 'EnumValue' to unrelated type 'Double' always fails
260 | {
261 | return selectedBool == valueBool
262 | } else if let selectedNum = selectedValue as? Double,
| `- warning: cast from 'EnumValue' to unrelated type 'Double' always fails
263 | let valueNum = value as? Double
264 | {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/EnumField.swift:266:51: warning: cast from 'EnumValue' to unrelated type 'Int' always fails
264 | {
265 | return selectedNum == valueNum
266 | } else if let selectedInt = selectedValue as? Int,
| `- warning: cast from 'EnumValue' to unrelated type 'Int' always fails
267 | let valueInt = value as? Int
268 | {
[399/420] Compiling JSONSchemaForm Templates.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/WrapIfAdditionalTemplate.swift:33:18: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
31 | .textFieldStyle(RoundedBorderTextFieldStyle())
32 | .frame(maxWidth: 200)
33 | .onChange(of: label) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
34 | onKeyChange(newValue)()
35 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[400/420] Compiling JSONSchemaForm TitleFieldTemplate.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/WrapIfAdditionalTemplate.swift:33:18: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
31 | .textFieldStyle(RoundedBorderTextFieldStyle())
32 | .frame(maxWidth: 200)
33 | .onChange(of: label) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
34 | onKeyChange(newValue)()
35 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[401/420] Compiling JSONSchemaForm UnsupportedFieldTemplate.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/WrapIfAdditionalTemplate.swift:33:18: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
31 | .textFieldStyle(RoundedBorderTextFieldStyle())
32 | .frame(maxWidth: 200)
33 | .onChange(of: label) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
34 | onKeyChange(newValue)()
35 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[402/420] Compiling JSONSchemaForm WrapIfAdditionalTemplate.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/WrapIfAdditionalTemplate.swift:33:18: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
31 | .textFieldStyle(RoundedBorderTextFieldStyle())
32 | .frame(maxWidth: 200)
33 | .onChange(of: label) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
34 | onKeyChange(newValue)()
35 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[403/420] Compiling JSONSchemaForm Theme.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Templates/WrapIfAdditionalTemplate.swift:33:18: warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
31 | .textFieldStyle(RoundedBorderTextFieldStyle())
32 | .frame(maxWidth: 200)
33 | .onChange(of: label) { newValue in
| `- warning: 'onChange(of:perform:)' was deprecated in macOS 14.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
34 | onKeyChange(newValue)()
35 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[404/420] Compiling JSONSchemaForm UnsupportedField.swift
[405/420] Compiling JSONSchemaForm JSONSchemaForm.swift
[406/420] Compiling JSONSchemaForm Registry.swift
[407/420] Compiling JSONSchemaForm ArrayFieldDescriptionTemplate.swift
[408/420] Compiling JSONSchemaForm ArrayFieldItemTemplate.swift
[409/420] Compiling JSONSchemaForm FormContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Controller/JSONSchemaFormController.swift:255:38: warning: 'as' test is always true
253 | isValid = true
254 | return true
255 | } catch let validationErrors as [ValidationError] {
| `- warning: 'as' test is always true
256 | var processedErrors = validationErrors
257 | if let transform = transformErrors {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/BooleanField.swift:46:34: warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
44 | var body: some View {
45 | VStack(alignment: .leading) {
46 | if case .boolean(let value) = formData.wrappedValue {
| `- warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
47 | switch widget {
48 | case "radio":
[410/420] Compiling JSONSchemaForm JSONSchemaFormController.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Controller/JSONSchemaFormController.swift:255:38: warning: 'as' test is always true
253 | isValid = true
254 | return true
255 | } catch let validationErrors as [ValidationError] {
| `- warning: 'as' test is always true
256 | var processedErrors = validationErrors
257 | if let transform = transformErrors {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/BooleanField.swift:46:34: warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
44 | var body: some View {
45 | VStack(alignment: .leading) {
46 | if case .boolean(let value) = formData.wrappedValue {
| `- warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
47 | switch widget {
48 | case "radio":
[411/420] Compiling JSONSchemaForm AllOfField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Controller/JSONSchemaFormController.swift:255:38: warning: 'as' test is always true
253 | isValid = true
254 | return true
255 | } catch let validationErrors as [ValidationError] {
| `- warning: 'as' test is always true
256 | var processedErrors = validationErrors
257 | if let transform = transformErrors {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/BooleanField.swift:46:34: warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
44 | var body: some View {
45 | VStack(alignment: .leading) {
46 | if case .boolean(let value) = formData.wrappedValue {
| `- warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
47 | switch widget {
48 | case "radio":
[412/420] Compiling JSONSchemaForm AnyOfField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Controller/JSONSchemaFormController.swift:255:38: warning: 'as' test is always true
253 | isValid = true
254 | return true
255 | } catch let validationErrors as [ValidationError] {
| `- warning: 'as' test is always true
256 | var processedErrors = validationErrors
257 | if let transform = transformErrors {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/BooleanField.swift:46:34: warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
44 | var body: some View {
45 | VStack(alignment: .leading) {
46 | if case .boolean(let value) = formData.wrappedValue {
| `- warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
47 | switch widget {
48 | case "radio":
[413/420] Compiling JSONSchemaForm ArrayField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Controller/JSONSchemaFormController.swift:255:38: warning: 'as' test is always true
253 | isValid = true
254 | return true
255 | } catch let validationErrors as [ValidationError] {
| `- warning: 'as' test is always true
256 | var processedErrors = validationErrors
257 | if let transform = transformErrors {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/BooleanField.swift:46:34: warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
44 | var body: some View {
45 | VStack(alignment: .leading) {
46 | if case .boolean(let value) = formData.wrappedValue {
| `- warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
47 | switch widget {
48 | case "radio":
[414/420] Compiling JSONSchemaForm BooleanField.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Controller/JSONSchemaFormController.swift:255:38: warning: 'as' test is always true
253 | isValid = true
254 | return true
255 | } catch let validationErrors as [ValidationError] {
| `- warning: 'as' test is always true
256 | var processedErrors = validationErrors
257 | if let transform = transformErrors {
/Users/admin/builder/spi-builder-workspace/Sources/JSONSchemaForm/Fields/BooleanField.swift:46:34: warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
44 | var body: some View {
45 | VStack(alignment: .leading) {
46 | if case .boolean(let value) = formData.wrappedValue {
| `- warning: immutable value 'value' was never used; consider replacing with '_' or removing it [#no-usage]
47 | switch widget {
48 | case "radio":
[415/420] Compiling JSONSchemaForm NumberField.swift
[416/420] Compiling JSONSchemaForm ObjectField.swift
[417/420] Compiling JSONSchemaForm OneOfField.swift
[418/420] Compiling JSONSchemaForm SchemaField.swift
[419/420] Compiling JSONSchemaForm StringField.swift
[420/420] Compiling JSONSchemaForm TitleField.swift
Build complete! (15.03s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-json-schema",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/sirily11/swift-json-schema"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections"
},
{
"identity" : "viewinspector",
"requirement" : {
"range" : [
{
"lower_bound" : "0.10.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/nalexn/ViewInspector"
}
],
"manifest_display_name" : "JSONSchemaForm",
"name" : "JSONSchemaForm",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
},
{
"name" : "ios",
"version" : "17.0"
}
],
"products" : [
{
"name" : "JSONSchemaForm",
"targets" : [
"JSONSchemaForm"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JSONSchemaValidator",
"targets" : [
"JSONSchemaValidator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "JSONSchemaValidatorTests",
"module_type" : "SwiftTarget",
"name" : "JSONSchemaValidatorTests",
"path" : "Sources/JSONSchemaValidatorTests",
"sources" : [
"ArrayValidatorTests.swift",
"CombinatorsValidatorTests.swift",
"EnumValidatorTests.swift",
"FormatValidatorTests.swift",
"IntegrationTests.swift",
"JSONSchemaTypeTests.swift",
"NumberValidatorTests.swift",
"ObjectValidatorTests.swift",
"StringValidatorTests.swift",
"TypeValidatorTests.swift"
],
"target_dependencies" : [
"JSONSchemaValidator"
],
"type" : "test"
},
{
"c99name" : "JSONSchemaValidator",
"module_type" : "SwiftTarget",
"name" : "JSONSchemaValidator",
"path" : "Sources/JSONSchemaValidator",
"product_dependencies" : [
"JSONSchema"
],
"product_memberships" : [
"JSONSchemaForm",
"JSONSchemaValidator"
],
"sources" : [
"JSONSchemaValidating.swift",
"JSONSchemaValidator.swift",
"ValidationError.swift",
"Validators/ArrayValidator.swift",
"Validators/CombinatorsValidator.swift",
"Validators/EnumValidator.swift",
"Validators/FormatValidator.swift",
"Validators/NumberValidator.swift",
"Validators/ObjectValidator.swift",
"Validators/StringValidator.swift",
"Validators/TypeValidator.swift"
],
"type" : "library"
},
{
"c99name" : "JSONSchemaFormTests",
"module_type" : "SwiftTarget",
"name" : "JSONSchemaFormTests",
"path" : "Sources/JSONSchemaFormTests",
"product_dependencies" : [
"ViewInspector"
],
"sources" : [
"FieldTemplateTests.swift",
"FormDataEncodableTests.swift",
"JSONSchemaForm+AllOfTests.swift",
"JSONSchemaForm+ArrayTests.swift",
"JSONSchemaForm+BooleanTests.swift",
"JSONSchemaForm+ControllerTests.swift",
"JSONSchemaForm+DefaultWithRefsTests.swift",
"JSONSchemaForm+EnumTests.swift",
"JSONSchemaForm+FieldOrderTests.swift",
"JSONSchemaForm+IfThenElseTests.swift",
"JSONSchemaForm+NumberTests.swift",
"JSONSchemaForm+ObjectTests.swift",
"JSONSchemaForm+OneOfTests.swift",
"JSONSchemaForm+SchemaTests.swift",
"JSONSchemaForm+StringTests.swift",
"JSONSchemaForm+StringWidgetTests.swift",
"JSONSchemaFormControllerTests.swift",
"TestSchema.swift"
],
"target_dependencies" : [
"JSONSchemaForm"
],
"type" : "test"
},
{
"c99name" : "JSONSchemaForm",
"module_type" : "SwiftTarget",
"name" : "JSONSchemaForm",
"path" : "Sources/JSONSchemaForm",
"product_dependencies" : [
"JSONSchema",
"Collections"
],
"product_memberships" : [
"JSONSchemaForm"
],
"sources" : [
"Controller/FormContext.swift",
"Controller/JSONSchemaFormController.swift",
"Fields/AllOfField.swift",
"Fields/AnyOfField.swift",
"Fields/ArrayField.swift",
"Fields/BooleanField.swift",
"Fields/DescriptionField.swift",
"Fields/EnumField.swift",
"Fields/Fields.swift",
"Fields/InvalidValueType.swift",
"Fields/MultiSchemaField.swift",
"Fields/NullField.swift",
"Fields/NumberField.swift",
"Fields/ObjectField.swift",
"Fields/OneOfField.swift",
"Fields/SchemaField.swift",
"Fields/StringField.swift",
"Fields/TitleField.swift",
"Fields/UnsupportedField.swift",
"JSONSchemaForm.swift",
"Registry.swift",
"Templates/ArrayFieldDescriptionTemplate.swift",
"Templates/ArrayFieldItemTemplate.swift",
"Templates/ArrayFieldTemplate.swift",
"Templates/ArrayFieldTitleTemplate.swift",
"Templates/BaseInputTemplate.swift",
"Templates/ButtonTemplates/AddButton.swift",
"Templates/ButtonTemplates/ButtonTemplates.swift",
"Templates/ButtonTemplates/IconButton.swift",
"Templates/ButtonTemplates/SubmitButton.swift",
"Templates/DescriptionFieldTemplate.swift",
"Templates/ErrorListTemplate.swift",
"Templates/FieldErrorTemplate.swift",
"Templates/FieldHelpTemplate.swift",
"Templates/FieldTemplate.swift",
"Templates/ObjectFieldTemplate.swift",
"Templates/RegistryTemplates.swift",
"Templates/TemplateProps.swift",
"Templates/Templates.swift",
"Templates/TitleFieldTemplate.swift",
"Templates/UnsupportedFieldTemplate.swift",
"Templates/WrapIfAdditionalTemplate.swift",
"Theme.swift",
"Types/EnumValue.swift",
"Types/FormData.swift",
"Utils/ConditionEvaluator.swift",
"Utils/PropertyOrderExtractor.swift",
"Utils/RegistryUtils.swift",
"Utils/SchemaMerger.swift",
"Utils/SchemaPreprocessor.swift",
"Utils/SchemaUtils.swift",
"Utils/UISchemaUtils.swift",
"Utils/Validation.swift"
],
"target_dependencies" : [
"JSONSchemaValidator"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Done.