Build Information
Successful build of LuaSwift, reference main (ac9799), with Swift 6.1 for macOS (SPM) on 6 Apr 2026 22:19:39 UTC.
Swift 6 data race errors: 172
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
565 | }
566 |
567 | private static let quatToMatrixCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'quatToMatrixCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quatToMatrixCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
568 | guard let q = extractQuat(args[0]) else { return .nil }
569 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:584:24: warning: static property 'quatDotCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
582 | }
583 |
584 | private static let quatDotCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'quatDotCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quatDotCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
585 | guard args.count >= 2,
586 | let q1 = extractQuat(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:591:24: warning: static property 'quatLengthCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
589 | }
590 |
591 | private static let quatLengthCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'quatLengthCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quatLengthCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
592 | guard let q = extractQuat(args[0]) else { return .nil }
593 | return .number(q.length)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:598:24: warning: static property 'mat4IdentityCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
596 | // MARK: - Matrix 4x4 Callbacks
597 |
598 | private static let mat4IdentityCallback: ([LuaValue]) -> LuaValue = { _ in
| |- warning: static property 'mat4IdentityCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4IdentityCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
599 | return mat4ToLua(matrix_identity_double4x4)
600 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:602:24: warning: static property 'mat4TranslateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
600 | }
601 |
602 | private static let mat4TranslateCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4TranslateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4TranslateCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
603 | guard args.count >= 4,
604 | let m = extractMat4(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:614:24: warning: static property 'mat4RotateXCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
612 | }
613 |
614 | private static let mat4RotateXCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4RotateXCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4RotateXCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
615 | guard args.count >= 2,
616 | let m = extractMat4(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:626:24: warning: static property 'mat4RotateYCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
624 | }
625 |
626 | private static let mat4RotateYCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4RotateYCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4RotateYCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
627 | guard args.count >= 2,
628 | let m = extractMat4(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:638:24: warning: static property 'mat4RotateZCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
636 | }
637 |
638 | private static let mat4RotateZCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4RotateZCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4RotateZCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
639 | guard args.count >= 2,
640 | let m = extractMat4(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:650:24: warning: static property 'mat4RotateAxisCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
648 | }
649 |
650 | private static let mat4RotateAxisCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4RotateAxisCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4RotateAxisCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
651 | guard args.count >= 3,
652 | let m = extractMat4(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:673:24: warning: static property 'mat4ScaleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
671 | }
672 |
673 | private static let mat4ScaleCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4ScaleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4ScaleCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
674 | guard args.count >= 2,
675 | let m = extractMat4(args[0]) else { return .nil }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:686:24: warning: static property 'mat4MultiplyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
684 | }
685 |
686 | private static let mat4MultiplyCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4MultiplyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4MultiplyCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
687 | guard args.count >= 2,
688 | let m1 = extractMat4(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:693:24: warning: static property 'mat4ApplyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
691 | }
692 |
693 | private static let mat4ApplyCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mat4ApplyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mat4ApplyCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
694 | guard args.count >= 2,
695 | let m = extractMat4(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:705:24: warning: static property 'distanceCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
703 | // MARK: - Geometric Calculation Callbacks
704 |
705 | private static let distanceCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'distanceCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'distanceCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
706 | guard args.count >= 2 else { return .nil }
707 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:725:24: warning: static property 'angleBetweenCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
723 |
724 | /// Angle between two vectors (implicit origin translation)
725 | private static let angleBetweenCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'angleBetweenCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'angleBetweenCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
726 | guard args.count >= 2 else { return .nil }
727 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:750:24: warning: static property 'convexHullCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
748 |
749 | /// Compute convex hull of 2D points via NumericSwift
750 | private static let convexHullCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'convexHullCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'convexHullCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
751 | guard let arr = args[0].arrayValue else { return .nil }
752 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:771:24: warning: static property 'inPolygonCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
769 |
770 | /// Point-in-polygon test via NumericSwift
771 | private static let inPolygonCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'inPolygonCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inPolygonCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
772 | guard args.count >= 2,
773 | let point = extractVec2(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:788:24: warning: static property 'lineIntersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
786 |
787 | /// Line-line intersection via NumericSwift
788 | private static let lineIntersectionCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'lineIntersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lineIntersectionCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
789 | guard args.count >= 2,
790 | let l1 = args[0].arrayValue, l1.count >= 2,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:802:24: warning: static property 'areaTriangleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
800 |
801 | /// Triangle area via NumericSwift
802 | private static let areaTriangleCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'areaTriangleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'areaTriangleCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
803 | guard args.count >= 3,
804 | let p1 = extractVec2(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:812:24: warning: static property 'centroidCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
810 |
811 | /// Centroid calculation via NumericSwift
812 | private static let centroidCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'centroidCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'centroidCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
813 | guard let arr = args[0].arrayValue, !arr.isEmpty else { return .nil }
814 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:843:24: warning: static property 'circleFrom3PointsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
841 |
842 | /// Circle through 3 points via NumericSwift
843 | private static let circleFrom3PointsCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'circleFrom3PointsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'circleFrom3PointsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
844 | guard args.count >= 3,
845 | let p1 = extractVec2(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:859:24: warning: static property 'planeFrom3PointsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
857 | }
858 |
859 | private static let planeFrom3PointsCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'planeFrom3PointsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'planeFrom3PointsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
860 | guard args.count >= 3,
861 | let p1 = extractVec3(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:876:24: warning: static property 'pointPlaneDistanceCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
874 | }
875 |
876 | private static let pointPlaneDistanceCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'pointPlaneDistanceCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pointPlaneDistanceCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
877 | guard args.count >= 2,
878 | let point = extractVec3(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:886:24: warning: static property 'linePlaneIntersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
884 | }
885 |
886 | private static let linePlaneIntersectionCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'linePlaneIntersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'linePlaneIntersectionCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
887 | guard args.count >= 2,
888 | let line = args[0].tableValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:903:24: warning: static property 'planePlaneIntersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
901 |
902 | /// Plane-plane intersection returns a line (origin + direction)
903 | private static let planePlaneIntersectionCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'planePlaneIntersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'planePlaneIntersectionCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
904 | guard args.count >= 2,
905 | let plane1 = args[0].tableValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:929:24: warning: static property 'intersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
927 |
928 | /// Polymorphic intersection: line-line, line-plane, or plane-plane
929 | private static let intersectionCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'intersectionCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'intersectionCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
930 | guard args.count >= 2 else { return .nil }
931 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:957:24: warning: static property 'sphereFrom4PointsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
955 |
956 | /// Compute sphere through 4 points via NumericSwift
957 | private static let sphereFrom4PointsCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'sphereFrom4PointsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sphereFrom4PointsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
958 | guard args.count >= 4,
959 | let p1 = extractVec3(args[0]),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:979:24: warning: static property 'cubicSplineCoeffsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
977 | /// Input: either array of {x, y} points OR two arrays (xs, ys)
978 | /// Output: {knots, values, coeffs} where coeffs[i] = {a, b, c, d} for each segment
979 | private static let cubicSplineCoeffsCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'cubicSplineCoeffsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'cubicSplineCoeffsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
980 | var points: [(x: Double, y: Double)] = []
981 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1027:24: warning: static property 'bsplineEvaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1025 |
1026 | /// Evaluate B-spline curve via NumericSwift
1027 | private static let bsplineEvaluateCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'bsplineEvaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bsplineEvaluateCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1028 | guard args.count >= 4,
1029 | let controlPointsArray = args[0].arrayValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1070:24: warning: static property 'bsplineBasisCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1068 |
1069 | /// Compute B-spline basis function N_{i,p}(t) via NumericSwift
1070 | private static let bsplineBasisCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'bsplineBasisCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bsplineBasisCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1071 | guard args.count >= 4,
1072 | let knotsArray = args[0].arrayValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1088:24: warning: static property 'bsplineUniformKnotsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1086 |
1087 | /// Generate uniform knot vector for B-spline via NumericSwift
1088 | private static let bsplineUniformKnotsCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'bsplineUniformKnotsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bsplineUniformKnotsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1089 | guard args.count >= 2,
1090 | let n = args[0].numberValue.map({ Int($0) }),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1100:24: warning: static property 'bsplineDerivativeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1098 |
1099 | /// Evaluate B-spline derivative via NumericSwift
1100 | private static let bsplineDerivativeCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'bsplineDerivativeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bsplineDerivativeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1101 | guard args.count >= 4,
1102 | let controlPointsArray = args[0].arrayValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1149:24: warning: static property 'circleFitAlgebraicCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1147 | /// Input: array of points [{x, y}, ...]
1148 | /// Output: {cx, cy, r, residuals, method}
1149 | private static let circleFitAlgebraicCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'circleFitAlgebraicCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'circleFitAlgebraicCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1150 | guard let pointsArray = args.first?.arrayValue else {
1151 | throw LuaError.callbackError("circle_fit requires array of points")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1188:24: warning: static property 'circleFitTaubinCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1186 | /// Fit circle using Taubin's method (modified algebraic with normalization)
1187 | /// More accurate than Kåsa for noisy data
1188 | private static let circleFitTaubinCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'circleFitTaubinCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'circleFitTaubinCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1189 | guard let pointsArray = args.first?.arrayValue else {
1190 | throw LuaError.callbackError("circle_fit requires array of points")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1228:24: warning: static property 'vec2ToPolarCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1226 |
1227 | /// Convert vec2 (x, y) to polar (r, theta)
1228 | private static let vec2ToPolarCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'vec2ToPolarCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vec2ToPolarCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1229 | guard let v = extractVec2(args[0]) else { return .nil }
1230 | let r = simd_length(v)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1236:24: warning: static property 'vec2FromPolarCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1234 |
1235 | /// Create vec2 from polar (r, theta)
1236 | private static let vec2FromPolarCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'vec2FromPolarCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vec2FromPolarCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1237 | guard args.count >= 2,
1238 | let r = args[0].numberValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1248:24: warning: static property 'vec3ToSphericalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1246 | /// theta = azimuthal angle (from x-axis in xy-plane)
1247 | /// phi = polar angle (from z-axis)
1248 | private static let vec3ToSphericalCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'vec3ToSphericalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vec3ToSphericalCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1249 | guard let v = extractVec3(args[0]) else { return .nil }
1250 | let r = simd_length(v)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1257:24: warning: static property 'vec3FromSphericalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1255 |
1256 | /// Create vec3 from spherical (r, theta, phi)
1257 | private static let vec3FromSphericalCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'vec3FromSphericalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vec3FromSphericalCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1258 | guard args.count >= 3,
1259 | let r = args[0].numberValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1271:24: warning: static property 'vec3ToCylindricalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1269 | /// rho = radial distance in xy-plane
1270 | /// theta = azimuthal angle (from x-axis)
1271 | private static let vec3ToCylindricalCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'vec3ToCylindricalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vec3ToCylindricalCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1272 | guard let v = extractVec3(args[0]) else { return .nil }
1273 | let rho = sqrt(v.x * v.x + v.y * v.y)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1279:24: warning: static property 'vec3FromCylindricalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1277 |
1278 | /// Create vec3 from cylindrical (rho, theta, z)
1279 | private static let vec3FromCylindricalCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'vec3FromCylindricalCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vec3FromCylindricalCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1280 | guard args.count >= 3,
1281 | let rho = args[0].numberValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1292:24: warning: static property 'ellipseFitDirectCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1290 |
1291 | /// Fit ellipse using Fitzgibbon's direct least squares method via NumericSwift
1292 | private static let ellipseFitDirectCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'ellipseFitDirectCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ellipseFitDirectCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1293 | guard let pointsArray = args.first?.arrayValue else {
1294 | throw LuaError.callbackError("ellipse_fit requires array of points")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1330:24: warning: static property 'sphereFitAlgebraicCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1328 |
1329 | /// Fit sphere to 3D points using algebraic least squares via NumericSwift
1330 | private static let sphereFitAlgebraicCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'sphereFitAlgebraicCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sphereFitAlgebraicCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1331 | guard let pointsArray = args.first?.arrayValue else {
1332 | throw LuaError.callbackError("sphere_fit requires array of 3D points")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/GeometryModule.swift:1373:24: warning: static property 'bsplineFitCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
1371 | /// Input: points (array of {x,y} or {x,y,z}), degree, n_control_points, [parameterization]
1372 | /// Output: {control_points, knots, degree, residuals, rmse, max_error, parameters}
1373 | private static let bsplineFitCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'bsplineFitCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bsplineFitCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1374 | guard args.count >= 3,
1375 | let pointsArray = args[0].arrayValue,
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/HTTPModule.swift:160:24: warning: static property 'sessionManager' is not concurrency-safe because non-'Sendable' type 'HTTPModule.SessionManager' may have shared mutable state; this is an error in the Swift 6 language mode
71 | ///
72 | /// Sessions are automatically invalidated when the engine is deallocated.
73 | private final class SessionManager {
| `- note: class 'SessionManager' does not conform to the 'Sendable' protocol
74 | /// Storage for sessions indexed by engine ObjectIdentifier
75 | private struct SessionPair {
:
158 |
159 | /// Shared session manager instance
160 | private static let sessionManager = SessionManager()
| |- warning: static property 'sessionManager' is not concurrency-safe because non-'Sendable' type 'HTTPModule.SessionManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sessionManager' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
161 |
162 | // MARK: - Redirect Delegate
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/HTTPModule.swift:165:19: warning: non-final class 'RedirectDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
163 |
164 | /// Delegate that controls redirect behavior for URLSession requests.
165 | private class RedirectDelegate: NSObject, URLSessionTaskDelegate {
| `- warning: non-final class 'RedirectDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
166 | let followRedirects: Bool
167 |
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/HTTPModule.swift:320:13: warning: mutation of captured var 'responseData' in concurrently-executing code
318 |
319 | let task = session.dataTask(with: request) { data, response, error in
320 | responseData = data
| `- warning: mutation of captured var 'responseData' in concurrently-executing code
321 | httpResponse = response as? HTTPURLResponse
322 | requestError = error
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/HTTPModule.swift:321:13: warning: mutation of captured var 'httpResponse' in concurrently-executing code
319 | let task = session.dataTask(with: request) { data, response, error in
320 | responseData = data
321 | httpResponse = response as? HTTPURLResponse
| `- warning: mutation of captured var 'httpResponse' in concurrently-executing code
322 | requestError = error
323 | semaphore.signal()
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/HTTPModule.swift:322:13: warning: mutation of captured var 'requestError' in concurrently-executing code
320 | responseData = data
321 | httpResponse = response as? HTTPURLResponse
322 | requestError = error
| `- warning: mutation of captured var 'requestError' in concurrently-executing code
323 | semaphore.signal()
324 | }
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/IOModule.swift:557:16: warning: static property 'allowedDirectories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
555 |
556 | private enum AssociatedKeys {
557 | static var allowedDirectories: UInt8 = 0
| |- warning: static property 'allowedDirectories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowedDirectories' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allowedDirectories' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
558 | }
559 |
[156/171] Compiling LuaSwift MathExprModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:199:24: warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
197 |
198 | /// Tokenize an expression string into tokens
199 | private static let tokenizeCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tokenizeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 | guard let expression = args.first?.stringValue else {
201 | throw LuaError.callbackError("eval.tokenize requires a string argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:213:24: warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
211 |
212 | /// Parse tokens into an AST
213 | private static let parseCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parseCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
214 | guard let tokensValue = args.first else {
215 | throw LuaError.callbackError("eval.parse requires tokens array")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:289:24: warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | /// Evaluate an AST with variable bindings
289 | private static let evaluateCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evaluateCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 | guard args.count >= 1 else {
291 | throw LuaError.callbackError("eval.evaluate requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:315:24: warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
313 |
314 | /// Convert an AST back to expression string
315 | private static let toStringCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'toStringCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
316 | guard args.count >= 1 else {
317 | throw LuaError.callbackError("eval.to_string requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:326:24: warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
324 |
325 | /// Substitute variables in an AST with other ASTs
326 | private static let substituteCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'substituteCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | guard args.count >= 2 else {
328 | throw LuaError.callbackError("eval.substitute requires AST and substitutions")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:360:24: warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
358 |
359 | /// Find all variable names in an AST
360 | private static let findVariablesCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'findVariablesCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | guard args.count >= 1 else {
362 | throw LuaError.callbackError("eval.find_variables requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:83:24: warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | /// Euler's totient function φ(n): count of integers 1 ≤ k ≤ n coprime to n
83 | private static let eulerPhiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'eulerPhiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | guard let n = args.first?.intValue,
85 | let result = NumericSwift.eulerPhi(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:92:24: warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// Divisor sigma function σ_k(n): sum of k-th powers of divisors of n
92 | private static let divisorSigmaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'divisorSigmaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | guard let n = args.first?.intValue else {
94 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:106:24: warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
104 | /// μ(n) = (-1)^k if n is product of k distinct primes
105 | /// μ(n) = 0 if n has a squared prime factor
106 | private static let mobiusCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mobiusCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | guard let n = args.first?.intValue,
108 | let result = NumericSwift.mobius(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:116:24: warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
114 | /// Liouville function λ(n) = (-1)^Ω(n)
115 | /// where Ω(n) is the number of prime factors with multiplicity
116 | private static let liouvilleCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'liouvilleCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | guard let n = args.first?.intValue,
118 | let result = NumericSwift.liouville(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:125:24: warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Carmichael function λ(n): smallest positive m such that a^m ≡ 1 (mod n) for all a coprime to n
125 | private static let carmichaelCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'carmichaelCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | guard let n = args.first?.intValue,
127 | let result = NumericSwift.carmichael(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:134:24: warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 |
133 | /// Chebyshev theta function θ(x) = Σ log(p) for primes p ≤ x
134 | private static let chebyshevThetaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevThetaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard let x = args.first?.numberValue else {
136 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:143:24: warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
141 | /// Chebyshev psi function ψ(x) = Σ Λ(n) for n ≤ x
142 | /// where Λ(n) is the von Mangoldt function
143 | private static let chebyshevPsiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevPsiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | guard let x = args.first?.numberValue else {
145 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:151:24: warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
149 |
150 | /// Von Mangoldt function callback
151 | private static let mangoldtCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mangoldtCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | guard let n = args.first?.intValue else {
153 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:159:24: warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
157 |
158 | /// Prime counting function π(x): number of primes ≤ x
159 | private static let primePiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primePiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 | guard let x = args.first?.numberValue else {
161 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:167:24: warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
165 |
166 | /// Primality test callback
167 | private static let isPrimeCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'isPrimeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | guard let n = args.first?.intValue else {
169 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:175:24: warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
173 |
174 | /// Prime factorization callback
175 | private static let factorCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'factorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
176 | guard let n = args.first?.intValue, n >= 1 else {
177 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:191:24: warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
189 |
190 | /// Generate primes up to n callback
191 | private static let primesUpToCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primesUpToCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | guard let n = args.first?.intValue, n >= 2 else {
193 | return .array([])
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:201:24: warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
199 |
200 | /// GCD callback
201 | private static let gcdCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gcdCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
202 | guard args.count >= 2,
203 | let a = args[0].intValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:211:24: warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
209 |
210 | /// LCM callback
211 | private static let lcmCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lcmCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 | guard args.count >= 2,
213 | let a = args[0].intValue,
[157/171] Compiling LuaSwift MathSciModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:199:24: warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
197 |
198 | /// Tokenize an expression string into tokens
199 | private static let tokenizeCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tokenizeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 | guard let expression = args.first?.stringValue else {
201 | throw LuaError.callbackError("eval.tokenize requires a string argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:213:24: warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
211 |
212 | /// Parse tokens into an AST
213 | private static let parseCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parseCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
214 | guard let tokensValue = args.first else {
215 | throw LuaError.callbackError("eval.parse requires tokens array")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:289:24: warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | /// Evaluate an AST with variable bindings
289 | private static let evaluateCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evaluateCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 | guard args.count >= 1 else {
291 | throw LuaError.callbackError("eval.evaluate requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:315:24: warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
313 |
314 | /// Convert an AST back to expression string
315 | private static let toStringCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'toStringCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
316 | guard args.count >= 1 else {
317 | throw LuaError.callbackError("eval.to_string requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:326:24: warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
324 |
325 | /// Substitute variables in an AST with other ASTs
326 | private static let substituteCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'substituteCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | guard args.count >= 2 else {
328 | throw LuaError.callbackError("eval.substitute requires AST and substitutions")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:360:24: warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
358 |
359 | /// Find all variable names in an AST
360 | private static let findVariablesCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'findVariablesCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | guard args.count >= 1 else {
362 | throw LuaError.callbackError("eval.find_variables requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:83:24: warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | /// Euler's totient function φ(n): count of integers 1 ≤ k ≤ n coprime to n
83 | private static let eulerPhiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'eulerPhiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | guard let n = args.first?.intValue,
85 | let result = NumericSwift.eulerPhi(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:92:24: warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// Divisor sigma function σ_k(n): sum of k-th powers of divisors of n
92 | private static let divisorSigmaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'divisorSigmaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | guard let n = args.first?.intValue else {
94 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:106:24: warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
104 | /// μ(n) = (-1)^k if n is product of k distinct primes
105 | /// μ(n) = 0 if n has a squared prime factor
106 | private static let mobiusCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mobiusCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | guard let n = args.first?.intValue,
108 | let result = NumericSwift.mobius(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:116:24: warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
114 | /// Liouville function λ(n) = (-1)^Ω(n)
115 | /// where Ω(n) is the number of prime factors with multiplicity
116 | private static let liouvilleCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'liouvilleCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | guard let n = args.first?.intValue,
118 | let result = NumericSwift.liouville(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:125:24: warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Carmichael function λ(n): smallest positive m such that a^m ≡ 1 (mod n) for all a coprime to n
125 | private static let carmichaelCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'carmichaelCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | guard let n = args.first?.intValue,
127 | let result = NumericSwift.carmichael(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:134:24: warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 |
133 | /// Chebyshev theta function θ(x) = Σ log(p) for primes p ≤ x
134 | private static let chebyshevThetaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevThetaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard let x = args.first?.numberValue else {
136 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:143:24: warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
141 | /// Chebyshev psi function ψ(x) = Σ Λ(n) for n ≤ x
142 | /// where Λ(n) is the von Mangoldt function
143 | private static let chebyshevPsiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevPsiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | guard let x = args.first?.numberValue else {
145 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:151:24: warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
149 |
150 | /// Von Mangoldt function callback
151 | private static let mangoldtCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mangoldtCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | guard let n = args.first?.intValue else {
153 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:159:24: warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
157 |
158 | /// Prime counting function π(x): number of primes ≤ x
159 | private static let primePiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primePiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 | guard let x = args.first?.numberValue else {
161 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:167:24: warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
165 |
166 | /// Primality test callback
167 | private static let isPrimeCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'isPrimeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | guard let n = args.first?.intValue else {
169 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:175:24: warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
173 |
174 | /// Prime factorization callback
175 | private static let factorCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'factorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
176 | guard let n = args.first?.intValue, n >= 1 else {
177 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:191:24: warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
189 |
190 | /// Generate primes up to n callback
191 | private static let primesUpToCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primesUpToCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | guard let n = args.first?.intValue, n >= 2 else {
193 | return .array([])
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:201:24: warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
199 |
200 | /// GCD callback
201 | private static let gcdCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gcdCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
202 | guard args.count >= 2,
203 | let a = args[0].intValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:211:24: warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
209 |
210 | /// LCM callback
211 | private static let lcmCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lcmCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 | guard args.count >= 2,
213 | let a = args[0].intValue,
[158/171] Compiling LuaSwift MathXModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:199:24: warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
197 |
198 | /// Tokenize an expression string into tokens
199 | private static let tokenizeCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tokenizeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 | guard let expression = args.first?.stringValue else {
201 | throw LuaError.callbackError("eval.tokenize requires a string argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:213:24: warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
211 |
212 | /// Parse tokens into an AST
213 | private static let parseCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parseCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
214 | guard let tokensValue = args.first else {
215 | throw LuaError.callbackError("eval.parse requires tokens array")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:289:24: warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | /// Evaluate an AST with variable bindings
289 | private static let evaluateCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evaluateCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 | guard args.count >= 1 else {
291 | throw LuaError.callbackError("eval.evaluate requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:315:24: warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
313 |
314 | /// Convert an AST back to expression string
315 | private static let toStringCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'toStringCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
316 | guard args.count >= 1 else {
317 | throw LuaError.callbackError("eval.to_string requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:326:24: warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
324 |
325 | /// Substitute variables in an AST with other ASTs
326 | private static let substituteCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'substituteCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | guard args.count >= 2 else {
328 | throw LuaError.callbackError("eval.substitute requires AST and substitutions")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:360:24: warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
358 |
359 | /// Find all variable names in an AST
360 | private static let findVariablesCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'findVariablesCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | guard args.count >= 1 else {
362 | throw LuaError.callbackError("eval.find_variables requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:83:24: warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | /// Euler's totient function φ(n): count of integers 1 ≤ k ≤ n coprime to n
83 | private static let eulerPhiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'eulerPhiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | guard let n = args.first?.intValue,
85 | let result = NumericSwift.eulerPhi(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:92:24: warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// Divisor sigma function σ_k(n): sum of k-th powers of divisors of n
92 | private static let divisorSigmaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'divisorSigmaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | guard let n = args.first?.intValue else {
94 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:106:24: warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
104 | /// μ(n) = (-1)^k if n is product of k distinct primes
105 | /// μ(n) = 0 if n has a squared prime factor
106 | private static let mobiusCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mobiusCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | guard let n = args.first?.intValue,
108 | let result = NumericSwift.mobius(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:116:24: warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
114 | /// Liouville function λ(n) = (-1)^Ω(n)
115 | /// where Ω(n) is the number of prime factors with multiplicity
116 | private static let liouvilleCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'liouvilleCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | guard let n = args.first?.intValue,
118 | let result = NumericSwift.liouville(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:125:24: warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Carmichael function λ(n): smallest positive m such that a^m ≡ 1 (mod n) for all a coprime to n
125 | private static let carmichaelCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'carmichaelCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | guard let n = args.first?.intValue,
127 | let result = NumericSwift.carmichael(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:134:24: warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 |
133 | /// Chebyshev theta function θ(x) = Σ log(p) for primes p ≤ x
134 | private static let chebyshevThetaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevThetaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard let x = args.first?.numberValue else {
136 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:143:24: warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
141 | /// Chebyshev psi function ψ(x) = Σ Λ(n) for n ≤ x
142 | /// where Λ(n) is the von Mangoldt function
143 | private static let chebyshevPsiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevPsiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | guard let x = args.first?.numberValue else {
145 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:151:24: warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
149 |
150 | /// Von Mangoldt function callback
151 | private static let mangoldtCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mangoldtCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | guard let n = args.first?.intValue else {
153 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:159:24: warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
157 |
158 | /// Prime counting function π(x): number of primes ≤ x
159 | private static let primePiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primePiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 | guard let x = args.first?.numberValue else {
161 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:167:24: warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
165 |
166 | /// Primality test callback
167 | private static let isPrimeCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'isPrimeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | guard let n = args.first?.intValue else {
169 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:175:24: warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
173 |
174 | /// Prime factorization callback
175 | private static let factorCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'factorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
176 | guard let n = args.first?.intValue, n >= 1 else {
177 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:191:24: warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
189 |
190 | /// Generate primes up to n callback
191 | private static let primesUpToCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primesUpToCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | guard let n = args.first?.intValue, n >= 2 else {
193 | return .array([])
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:201:24: warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
199 |
200 | /// GCD callback
201 | private static let gcdCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gcdCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
202 | guard args.count >= 2,
203 | let a = args[0].intValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:211:24: warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
209 |
210 | /// LCM callback
211 | private static let lcmCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lcmCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 | guard args.count >= 2,
213 | let a = args[0].intValue,
[159/171] Compiling LuaSwift NumberTheoryModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:199:24: warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
197 |
198 | /// Tokenize an expression string into tokens
199 | private static let tokenizeCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'tokenizeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tokenizeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 | guard let expression = args.first?.stringValue else {
201 | throw LuaError.callbackError("eval.tokenize requires a string argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:213:24: warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
211 |
212 | /// Parse tokens into an AST
213 | private static let parseCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'parseCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parseCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
214 | guard let tokensValue = args.first else {
215 | throw LuaError.callbackError("eval.parse requires tokens array")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:289:24: warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | /// Evaluate an AST with variable bindings
289 | private static let evaluateCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evaluateCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evaluateCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 | guard args.count >= 1 else {
291 | throw LuaError.callbackError("eval.evaluate requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:315:24: warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
313 |
314 | /// Convert an AST back to expression string
315 | private static let toStringCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'toStringCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'toStringCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
316 | guard args.count >= 1 else {
317 | throw LuaError.callbackError("eval.to_string requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:326:24: warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
324 |
325 | /// Substitute variables in an AST with other ASTs
326 | private static let substituteCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'substituteCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'substituteCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | guard args.count >= 2 else {
328 | throw LuaError.callbackError("eval.substitute requires AST and substitutions")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/MathExprModule.swift:360:24: warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
358 |
359 | /// Find all variable names in an AST
360 | private static let findVariablesCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'findVariablesCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'findVariablesCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
361 | guard args.count >= 1 else {
362 | throw LuaError.callbackError("eval.find_variables requires AST argument")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:83:24: warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | /// Euler's totient function φ(n): count of integers 1 ≤ k ≤ n coprime to n
83 | private static let eulerPhiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'eulerPhiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'eulerPhiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | guard let n = args.first?.intValue,
85 | let result = NumericSwift.eulerPhi(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:92:24: warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// Divisor sigma function σ_k(n): sum of k-th powers of divisors of n
92 | private static let divisorSigmaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'divisorSigmaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'divisorSigmaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | guard let n = args.first?.intValue else {
94 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:106:24: warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
104 | /// μ(n) = (-1)^k if n is product of k distinct primes
105 | /// μ(n) = 0 if n has a squared prime factor
106 | private static let mobiusCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mobiusCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mobiusCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | guard let n = args.first?.intValue,
108 | let result = NumericSwift.mobius(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:116:24: warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
114 | /// Liouville function λ(n) = (-1)^Ω(n)
115 | /// where Ω(n) is the number of prime factors with multiplicity
116 | private static let liouvilleCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'liouvilleCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'liouvilleCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | guard let n = args.first?.intValue,
118 | let result = NumericSwift.liouville(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:125:24: warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
123 |
124 | /// Carmichael function λ(n): smallest positive m such that a^m ≡ 1 (mod n) for all a coprime to n
125 | private static let carmichaelCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'carmichaelCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'carmichaelCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | guard let n = args.first?.intValue,
127 | let result = NumericSwift.carmichael(n) else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:134:24: warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 |
133 | /// Chebyshev theta function θ(x) = Σ log(p) for primes p ≤ x
134 | private static let chebyshevThetaCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevThetaCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevThetaCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard let x = args.first?.numberValue else {
136 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:143:24: warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
141 | /// Chebyshev psi function ψ(x) = Σ Λ(n) for n ≤ x
142 | /// where Λ(n) is the von Mangoldt function
143 | private static let chebyshevPsiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'chebyshevPsiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chebyshevPsiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | guard let x = args.first?.numberValue else {
145 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:151:24: warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
149 |
150 | /// Von Mangoldt function callback
151 | private static let mangoldtCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'mangoldtCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mangoldtCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | guard let n = args.first?.intValue else {
153 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:159:24: warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
157 |
158 | /// Prime counting function π(x): number of primes ≤ x
159 | private static let primePiCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primePiCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primePiCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 | guard let x = args.first?.numberValue else {
161 | return .number(0)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:167:24: warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
165 |
166 | /// Primality test callback
167 | private static let isPrimeCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'isPrimeCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'isPrimeCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | guard let n = args.first?.intValue else {
169 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:175:24: warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
173 |
174 | /// Prime factorization callback
175 | private static let factorCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'factorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'factorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
176 | guard let n = args.first?.intValue, n >= 1 else {
177 | return .nil
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:191:24: warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
189 |
190 | /// Generate primes up to n callback
191 | private static let primesUpToCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'primesUpToCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'primesUpToCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | guard let n = args.first?.intValue, n >= 2 else {
193 | return .array([])
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:201:24: warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
199 |
200 | /// GCD callback
201 | private static let gcdCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'gcdCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gcdCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
202 | guard args.count >= 2,
203 | let a = args[0].intValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/NumberTheoryModule.swift:211:24: warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
209 |
210 | /// LCM callback
211 | private static let lcmCallback: ([LuaValue]) -> LuaValue = { args in
| |- warning: static property 'lcmCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lcmCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 | guard args.count >= 2,
213 | let a = args[0].intValue,
[160/171] Compiling LuaSwift IntegrateModule.swift
[161/171] Compiling LuaSwift InterpolateModule.swift
[162/171] Compiling LuaSwift JSONModule.swift
[163/171] Compiling LuaSwift LinAlgModule.swift
[164/171] Compiling LuaSwift SVGModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:85:24: warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Series summation callback
85 | private static let seriesSumCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesSumCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | guard args.count >= 2,
87 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:111:24: warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | /// Series product callback
111 | private static let seriesProductCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesProductCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | guard args.count >= 2,
113 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:134:24: warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 | /// Taylor series callback (analytical for known functions)
133 | /// Uses NumericSwift.taylorCoefficients for coefficient generation.
134 | private static let taylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'taylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard args.count >= 1,
136 | let funcName = args[0].stringValue else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:168:24: warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Numerical Taylor approximation callback (SciPy-style)
168 | private static let approximateTaylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'approximateTaylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | // This returns parameters for Lua to evaluate
170 | // Lua must provide function values, then Swift computes coefficients
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:194:24: warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
192 |
193 | /// Partial sums callback
194 | private static let partialSumsCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSumsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
195 | guard args.count >= 2,
196 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:214:24: warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Evaluate polynomial at a point using NumericSwift.polyval
214 | private static let evalPolyCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evalPolyCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | guard args.count >= 2,
216 | case .array(let coeffsArray) = args[0] else {
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:425:24: warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
423 |
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
| |- warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kdtreeHandles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kdtreeHandles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
426 | private static var nextHandleId = 1
427 | private static let handleLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:426:24: warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
426 | private static var nextHandleId = 1
| |- warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextHandleId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'nextHandleId' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
427 | private static let handleLock = NSLock()
428 |
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:36: warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| |- warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | }
346 | }
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:21: warning: mutation of captured var 'result' in concurrently-executing code
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| `- warning: mutation of captured var 'result' in concurrently-executing code
345 | }
346 | }
[165/171] Compiling LuaSwift SeriesModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:85:24: warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Series summation callback
85 | private static let seriesSumCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesSumCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | guard args.count >= 2,
87 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:111:24: warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | /// Series product callback
111 | private static let seriesProductCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesProductCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | guard args.count >= 2,
113 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:134:24: warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 | /// Taylor series callback (analytical for known functions)
133 | /// Uses NumericSwift.taylorCoefficients for coefficient generation.
134 | private static let taylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'taylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard args.count >= 1,
136 | let funcName = args[0].stringValue else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:168:24: warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Numerical Taylor approximation callback (SciPy-style)
168 | private static let approximateTaylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'approximateTaylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | // This returns parameters for Lua to evaluate
170 | // Lua must provide function values, then Swift computes coefficients
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:194:24: warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
192 |
193 | /// Partial sums callback
194 | private static let partialSumsCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSumsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
195 | guard args.count >= 2,
196 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:214:24: warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Evaluate polynomial at a point using NumericSwift.polyval
214 | private static let evalPolyCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evalPolyCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | guard args.count >= 2,
216 | case .array(let coeffsArray) = args[0] else {
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:425:24: warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
423 |
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
| |- warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kdtreeHandles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kdtreeHandles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
426 | private static var nextHandleId = 1
427 | private static let handleLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:426:24: warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
426 | private static var nextHandleId = 1
| |- warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextHandleId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'nextHandleId' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
427 | private static let handleLock = NSLock()
428 |
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:36: warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| |- warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | }
346 | }
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:21: warning: mutation of captured var 'result' in concurrently-executing code
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| `- warning: mutation of captured var 'result' in concurrently-executing code
345 | }
346 | }
[166/171] Compiling LuaSwift SpatialModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:85:24: warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Series summation callback
85 | private static let seriesSumCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesSumCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | guard args.count >= 2,
87 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:111:24: warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | /// Series product callback
111 | private static let seriesProductCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesProductCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | guard args.count >= 2,
113 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:134:24: warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 | /// Taylor series callback (analytical for known functions)
133 | /// Uses NumericSwift.taylorCoefficients for coefficient generation.
134 | private static let taylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'taylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard args.count >= 1,
136 | let funcName = args[0].stringValue else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:168:24: warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Numerical Taylor approximation callback (SciPy-style)
168 | private static let approximateTaylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'approximateTaylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | // This returns parameters for Lua to evaluate
170 | // Lua must provide function values, then Swift computes coefficients
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:194:24: warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
192 |
193 | /// Partial sums callback
194 | private static let partialSumsCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSumsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
195 | guard args.count >= 2,
196 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:214:24: warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Evaluate polynomial at a point using NumericSwift.polyval
214 | private static let evalPolyCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evalPolyCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | guard args.count >= 2,
216 | case .array(let coeffsArray) = args[0] else {
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:425:24: warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
423 |
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
| |- warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kdtreeHandles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kdtreeHandles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
426 | private static var nextHandleId = 1
427 | private static let handleLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:426:24: warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
426 | private static var nextHandleId = 1
| |- warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextHandleId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'nextHandleId' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
427 | private static let handleLock = NSLock()
428 |
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:36: warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| |- warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | }
346 | }
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:21: warning: mutation of captured var 'result' in concurrently-executing code
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| `- warning: mutation of captured var 'result' in concurrently-executing code
345 | }
346 | }
[167/171] Compiling LuaSwift SpecialModule.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:85:24: warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Series summation callback
85 | private static let seriesSumCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesSumCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesSumCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | guard args.count >= 2,
87 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:111:24: warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | /// Series product callback
111 | private static let seriesProductCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'seriesProductCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seriesProductCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | guard args.count >= 2,
113 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:134:24: warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
132 | /// Taylor series callback (analytical for known functions)
133 | /// Uses NumericSwift.taylorCoefficients for coefficient generation.
134 | private static let taylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'taylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'taylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | guard args.count >= 1,
136 | let funcName = args[0].stringValue else {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:168:24: warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Numerical Taylor approximation callback (SciPy-style)
168 | private static let approximateTaylorCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'approximateTaylorCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'approximateTaylorCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | // This returns parameters for Lua to evaluate
170 | // Lua must provide function values, then Swift computes coefficients
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:194:24: warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
192 |
193 | /// Partial sums callback
194 | private static let partialSumsCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'partialSumsCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSumsCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
195 | guard args.count >= 2,
196 | let expr = args[0].stringValue,
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SeriesModule.swift:214:24: warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Evaluate polynomial at a point using NumericSwift.polyval
214 | private static let evalPolyCallback: ([LuaValue]) throws -> LuaValue = { args in
| |- warning: static property 'evalPolyCallback' is not concurrency-safe because non-'Sendable' type '([LuaValue]) throws -> LuaValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'evalPolyCallback' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | guard args.count >= 2,
216 | case .array(let coeffsArray) = args[0] else {
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:425:24: warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
423 |
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
| |- warning: static property 'kdtreeHandles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kdtreeHandles' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'kdtreeHandles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
426 | private static var nextHandleId = 1
427 | private static let handleLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:426:24: warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
424 | /// Thread-safe storage for KDTree handles (uses NumericSwift's KDTree)
425 | private static var kdtreeHandles: [Int: KDTree] = [:]
426 | private static var nextHandleId = 1
| |- warning: static property 'nextHandleId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextHandleId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'nextHandleId' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
427 | private static let handleLock = NSLock()
428 |
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:36: warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| |- warning: capture of 'distFunc' with non-sendable type '([Double], [Double]) -> Double' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | }
346 | }
/Users/admin/builder/spi-builder-workspace/Sources/LuaSwift/Modules/Swift/SpatialModule.swift:344:21: warning: mutation of captured var 'result' in concurrently-executing code
342 | DispatchQueue.concurrentPerform(iterations: m) { i in
343 | for j in 0..<n {
344 | result[i][j] = distFunc(XA[i], XB[j])
| `- warning: mutation of captured var 'result' in concurrently-executing code
345 | }
346 | }
[168/171] Compiling LuaSwift LuaValue.swift
[169/171] Compiling LuaSwift LuaValueServer.swift
[170/171] Compiling LuaSwift ModuleRegistry.swift
[171/171] Compiling LuaSwift ArrayModule.swift
Build complete! (35.99s)
Fetching https://github.com/ChrisGVE/PlotSwift.git
Fetching https://github.com/LebJe/TOMLKit.git
Fetching https://github.com/ChrisGVE/NumericSwift.git
Fetching https://github.com/ChrisGVE/ArraySwift.git
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/jpsim/Yams.git from cache
[1/3642] Fetching plotswift
[2/5864] Fetching plotswift, swift-docc-plugin
[91/6009] Fetching plotswift, swift-docc-plugin, arrayswift
[134/6473] Fetching plotswift, swift-docc-plugin, arrayswift, numericswift
[193/29887] Fetching plotswift, swift-docc-plugin, arrayswift, numericswift, tomlkit
Fetched https://github.com/ChrisGVE/NumericSwift.git from cache (1.38s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.53s)
Fetched https://github.com/ChrisGVE/ArraySwift.git from cache (1.53s)
[23468/27056] Fetching plotswift, tomlkit
Fetched https://github.com/ChrisGVE/PlotSwift.git from cache (5.40s)
Fetched https://github.com/LebJe/TOMLKit.git from cache (5.40s)
Fetched https://github.com/jpsim/Yams.git from cache (5.41s)
Computing version for https://github.com/ChrisGVE/ArraySwift.git
Computed https://github.com/ChrisGVE/ArraySwift.git at 0.1.0 (5.91s)
Computing version for https://github.com/ChrisGVE/PlotSwift.git
Computed https://github.com/ChrisGVE/PlotSwift.git at 0.1.0 (0.46s)
Computing version for https://github.com/LebJe/TOMLKit.git
Computed https://github.com/LebJe/TOMLKit.git at 0.6.0 (0.59s)
Computing version for https://github.com/ChrisGVE/NumericSwift.git
Computed https://github.com/ChrisGVE/NumericSwift.git at 0.1.4 (0.62s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (0.59s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.86s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.54s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (0.59s)
Creating working copy for https://github.com/LebJe/TOMLKit.git
Working copy of https://github.com/LebJe/TOMLKit.git resolved at 0.6.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/ChrisGVE/ArraySwift.git
Working copy of https://github.com/ChrisGVE/ArraySwift.git resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Creating working copy for https://github.com/ChrisGVE/PlotSwift.git
Working copy of https://github.com/ChrisGVE/PlotSwift.git resolved at 0.1.0
Creating working copy for https://github.com/ChrisGVE/NumericSwift.git
Working copy of https://github.com/ChrisGVE/NumericSwift.git resolved at 0.1.4
Build complete.
{
"dependencies" : [
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.0",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
},
{
"identity" : "tomlkit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/LebJe/TOMLKit.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "plotswift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ChrisGVE/PlotSwift.git"
},
{
"identity" : "arrayswift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ChrisGVE/ArraySwift.git"
},
{
"identity" : "numericswift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ChrisGVE/NumericSwift.git"
}
],
"manifest_display_name" : "LuaSwift",
"name" : "LuaSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "LuaSwift",
"targets" : [
"LuaSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LuaSwiftTests",
"module_type" : "SwiftTarget",
"name" : "LuaSwiftTests",
"path" : "Tests/LuaSwiftTests",
"sources" : [
"ArrayModuleTests.swift",
"BenchmarkTests.swift",
"ClusterModuleTests.swift",
"ComplexArrayTests.swift",
"ComplexHelperTests.swift",
"ComplexModuleTests.swift",
"DebugModuleTests.swift",
"DistributionsModuleTests.swift",
"GeometryModuleTests.swift",
"HTTPModuleTests.swift",
"IOModuleTests.swift",
"IntegrateModuleTests.swift",
"InterpolateModuleTests.swift",
"JSONModuleTests.swift",
"LinAlgExtrasTests.swift",
"LinAlgModuleTests.swift",
"LuaCallbackTests.swift",
"LuaCoroutineTests.swift",
"LuaEngineTests.swift",
"LuaModuleTests.swift",
"LuaTestRunnerTests.swift",
"LuaValueTests.swift",
"LuaVersionTests.swift",
"MathExprModuleTests.swift",
"MathSciModuleTests.swift",
"MathXModuleTests.swift",
"MemoryLimitTests.swift",
"NumberTheoryModuleTests.swift",
"OptimizeModuleTests.swift",
"OptionalDependencyTests.swift",
"PlotModuleTests.swift",
"RegexModuleTests.swift",
"RegressModuleTests.swift",
"SVGModuleTests.swift",
"SandboxTests.swift",
"SerializeModuleTests.swift",
"SeriesModuleTests.swift",
"SpatialModuleTests.swift",
"SpecialModuleTests.swift",
"StringXModuleTests.swift",
"TOMLModuleTests.swift",
"TableXModuleTests.swift",
"TypesModuleTests.swift",
"UTF8XModuleTests.swift",
"YAMLModuleTests.swift"
],
"target_dependencies" : [
"LuaSwift"
],
"type" : "test"
},
{
"c99name" : "LuaSwift",
"module_type" : "SwiftTarget",
"name" : "LuaSwift",
"path" : "Sources/LuaSwift",
"product_dependencies" : [
"Yams",
"TOMLKit",
"PlotSwift",
"ArraySwift",
"NumericSwift"
],
"product_memberships" : [
"LuaSwift"
],
"sources" : [
"CoroutineHandle.swift",
"LuaEngine.swift",
"LuaError.swift",
"LuaHelpers.swift",
"LuaValue.swift",
"LuaValueServer.swift",
"Modules/ModuleRegistry.swift",
"Modules/Swift/ArrayModule.swift",
"Modules/Swift/ClusterModule.swift",
"Modules/Swift/ComplexHelper.swift",
"Modules/Swift/ComplexModule.swift",
"Modules/Swift/DebugModule.swift",
"Modules/Swift/DistributionsModule.swift",
"Modules/Swift/GeometryModule.swift",
"Modules/Swift/HTTPModule.swift",
"Modules/Swift/IOModule.swift",
"Modules/Swift/IntegrateModule.swift",
"Modules/Swift/InterpolateModule.swift",
"Modules/Swift/JSONModule.swift",
"Modules/Swift/LinAlgModule.swift",
"Modules/Swift/MathExprModule.swift",
"Modules/Swift/MathSciModule.swift",
"Modules/Swift/MathXModule.swift",
"Modules/Swift/NumberTheoryModule.swift",
"Modules/Swift/OptimizeModule.swift",
"Modules/Swift/PlotModule.swift",
"Modules/Swift/RegexModule.swift",
"Modules/Swift/RegressModule.swift",
"Modules/Swift/SVGModule.swift",
"Modules/Swift/SeriesModule.swift",
"Modules/Swift/SpatialModule.swift",
"Modules/Swift/SpecialModule.swift",
"Modules/Swift/StringXModule.swift",
"Modules/Swift/TOMLModule.swift",
"Modules/Swift/TableXModule.swift",
"Modules/Swift/TypesModule.swift",
"Modules/Swift/UTF8XModule.swift",
"Modules/Swift/YAMLModule.swift"
],
"target_dependencies" : [
"CLua"
],
"type" : "library"
},
{
"c99name" : "CLua",
"module_type" : "ClangTarget",
"name" : "CLua",
"path" : "Sources/CLua",
"product_memberships" : [
"LuaSwift"
],
"sources" : [
"lapi.c",
"lauxlib.c",
"lbaselib.c",
"lcode.c",
"lcorolib.c",
"lctype.c",
"ldblib.c",
"ldebug.c",
"ldo.c",
"ldump.c",
"lfunc.c",
"lgc.c",
"linit.c",
"liolib.c",
"llex.c",
"lmathlib.c",
"lmem.c",
"loadlib.c",
"lobject.c",
"lopcodes.c",
"loslib.c",
"lparser.c",
"lstate.c",
"lstring.c",
"lstrlib.c",
"ltable.c",
"ltablib.c",
"ltm.c",
"lundump.c",
"lutf8lib.c",
"lvm.c",
"lzio.c"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.