Build Information
Failed to build Cuneiform, reference v0.1.0 (2a9bff), with Swift 6.3 for macOS (SPM) on 18 Apr 2026 09:54:21 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Jramos57/cuneiform.git
Reference: v0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Jramos57/cuneiform
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 2a9bffb security: remove personal information and use relative paths
Cloned https://github.com/Jramos57/cuneiform.git
Revision (git rev-parse @):
2a9bffb139e7da34705602a8b9cf95687c6ca6c6
SUCCESS checkout https://github.com/Jramos57/cuneiform.git at v0.1.0
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/swiftlang/swift-testing.git
[1/37268] Fetching swift-testing
[27952/112251] Fetching swift-testing, swift-syntax
Fetched https://github.com/swiftlang/swift-testing.git from cache (16.64s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (16.64s)
Computing version for https://github.com/swiftlang/swift-testing.git
Computed https://github.com/swiftlang/swift-testing.git at 0.99.0 (17.28s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (3.31s)
Creating working copy for https://github.com/swiftlang/swift-testing.git
Working copy of https://github.com/swiftlang/swift-testing.git resolved at 0.99.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "cuneiform",
"name": "Cuneiform",
"url": "https://github.com/Jramos57/cuneiform.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/cuneiform",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/Jramos57/cuneiform.git
[1/1036] Fetching cuneiform
Fetched https://github.com/Jramos57/cuneiform.git from cache (3.24s)
Creating working copy for https://github.com/Jramos57/cuneiform.git
Working copy of https://github.com/Jramos57/cuneiform.git resolved at v0.1.0 (2a9bffb)
warning: '.resolve-product-dependencies': dependency 'cuneiform' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Jramos57/cuneiform.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
[3/33] Compiling Cuneiform CommentsBuilder.swift
[4/33] Compiling Cuneiform CommentsParser.swift
[5/33] Compiling Cuneiform DependencyGraph.swift
[6/33] Compiling Cuneiform CellValue.swift
[7/33] Compiling Cuneiform ChartBuilder.swift
[8/33] Compiling Cuneiform ChartParser.swift
[9/36] Compiling Cuneiform PivotTableParser.swift
[10/36] Compiling Cuneiform RichText.swift
[11/36] Compiling Cuneiform SharedStringsParser.swift
[12/36] Emitting module Cuneiform
[13/36] Compiling Cuneiform Cuneiform.swift
[14/36] Compiling Cuneiform ContentTypesParser.swift
[15/36] Compiling Cuneiform OPCBuilders.swift
[16/36] Compiling Cuneiform OPCPackage.swift
[17/36] Compiling Cuneiform TableParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/Workbook.swift:463:17: warning: variable 'mutablePkg' was never mutated; consider changing to 'let' constant
461 | let sheetData: Data
462 | do {
463 | var mutablePkg = package
| `- warning: variable 'mutablePkg' was never mutated; consider changing to 'let' constant
464 | sheetData = try mutablePkg.readPart(sheetPath)
465 | } catch let err as CuneiformError {
[18/36] Compiling Cuneiform VMLCommentsBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/Workbook.swift:463:17: warning: variable 'mutablePkg' was never mutated; consider changing to 'let' constant
461 | let sheetData: Data
462 | do {
463 | var mutablePkg = package
| `- warning: variable 'mutablePkg' was never mutated; consider changing to 'let' constant
464 | sheetData = try mutablePkg.readPart(sheetPath)
465 | } catch let err as CuneiformError {
[19/36] Compiling Cuneiform Workbook.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/Workbook.swift:463:17: warning: variable 'mutablePkg' was never mutated; consider changing to 'let' constant
461 | let sheetData: Data
462 | do {
463 | var mutablePkg = package
| `- warning: variable 'mutablePkg' was never mutated; consider changing to 'let' constant
464 | sheetData = try mutablePkg.readPart(sheetPath)
465 | } catch let err as CuneiformError {
[20/36] Compiling Cuneiform ContentType.swift
[21/36] Compiling Cuneiform Errors.swift
[22/36] Compiling Cuneiform PartPath.swift
[23/36] Compiling Cuneiform Relationship.swift
[24/36] Compiling Cuneiform RelationshipsParser.swift
[25/36] Compiling Cuneiform ZipArchive.swift
[26/36] Compiling Cuneiform ZipWriter.swift
[27/36] Compiling Cuneiform CellFormula.swift
[28/36] Compiling Cuneiform Sheet.swift
[29/36] Compiling Cuneiform SpreadsheetMLBuilders.swift
[30/36] Compiling Cuneiform StylesParser.swift
[31/36] Compiling Cuneiform WorkbookParser.swift
[32/36] Compiling Cuneiform WorkbookWriter.swift
[33/36] Compiling Cuneiform WorksheetParser.swift
[34/36] Compiling Cuneiform FormulaEvaluator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1255:14: warning: literal value is already handled by previous pattern; consider removing it
1101 | case "FLOOR", "FLOOR.MATH":
1102 | return try evaluateFLOOR(args)
1103 | case "TRUNC":
| `- note: first occurrence of identical literal pattern is here
1104 | return try evaluateTRUNC(args)
1105 | case "SIGN":
:
1253 | case "LENB":
1254 | return try evaluateLEN(args)
1255 | case "TRUNC":
| `- warning: literal value is already handled by previous pattern; consider removing it
1256 | return try evaluateTRUNC(args)
1257 | case "SIGN":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1257:14: warning: literal value is already handled by previous pattern; consider removing it
1103 | case "TRUNC":
1104 | return try evaluateTRUNC(args)
1105 | case "SIGN":
| `- note: first occurrence of identical literal pattern is here
1106 | return try evaluateSIGN(args)
1107 | case "FACT":
:
1255 | case "TRUNC":
1256 | return try evaluateTRUNC(args)
1257 | case "SIGN":
| `- warning: literal value is already handled by previous pattern; consider removing it
1258 | return try evaluateSIGN(args)
1259 | case "RANDBETWEEN":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1259:14: warning: literal value is already handled by previous pattern; consider removing it
1125 | case "RAND":
1126 | return evaluateRAND(args)
1127 | case "RANDBETWEEN":
| `- note: first occurrence of identical literal pattern is here
1128 | return try evaluateRANDBETWEEN(args)
1129 | case "COMBIN":
:
1257 | case "SIGN":
1258 | return try evaluateSIGN(args)
1259 | case "RANDBETWEEN":
| `- warning: literal value is already handled by previous pattern; consider removing it
1260 | return try evaluateRANDBETWEEN(args)
1261 | // Batch 24: Statistical distributions
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1280:14: warning: literal value is already handled by previous pattern; consider removing it
1012 | case "STANDARDIZE":
1013 | return try evaluateSTANDARDIZE(args)
1014 | case "CONFIDENCE.NORM":
| `- note: first occurrence of identical literal pattern is here
1015 | return try evaluateCONFIDENCE_NORM(args)
1016 | case "CONFIDENCE.T":
:
1278 | case "LOGNORM.INV":
1279 | return try evaluateLOGNORMINV(args)
1280 | case "CONFIDENCE.NORM", "CONFIDENCE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1281 | return try evaluateCONFIDENCENORM(args)
1282 | case "CRITBINOM":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1358:14: warning: literal value is already handled by previous pattern; consider removing it
992 | case "STEYX":
993 | return try evaluateSTEYX(args)
994 | case "COVARIANCE.P":
| `- note: first occurrence of identical literal pattern is here
995 | return try evaluateCOVARIANCE_P(args)
996 | case "COVARIANCE.S":
:
1356 | case "INTERCEPT":
1357 | return try evaluateINTERCEPT(args)
1358 | case "COVARIANCE.P", "COVAR":
| `- warning: literal value is already handled by previous pattern; consider removing it
1359 | return try evaluateCOVAR(args)
1360 | // Batch 28: Legacy statistical test functions
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1463:14: warning: literal value is already handled by previous pattern; consider removing it
1016 | case "CONFIDENCE.T":
1017 | return try evaluateCONFIDENCE_T(args)
1018 | case "FORECAST", "FORECAST.LINEAR":
| `- note: first occurrence of identical literal pattern is here
1019 | return try evaluateFORECAST(args)
1020 | case "FORECAST.ETS":
:
1461 | return try evaluateAGGREGATE(args)
1462 | // Batch 32: Statistical and regression functions
1463 | case "FORECAST.LINEAR":
| `- warning: literal value is already handled by previous pattern; consider removing it
1464 | return try evaluateFORECAST(args) // Alias for existing FORECAST
1465 | case "GROWTH":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1505:14: warning: literal value is already handled by previous pattern; consider removing it
1278 | case "LOGNORM.INV":
1279 | return try evaluateLOGNORMINV(args)
1280 | case "CONFIDENCE.NORM", "CONFIDENCE":
| `- note: first occurrence of identical literal pattern is here
1281 | return try evaluateCONFIDENCENORM(args)
1282 | case "CRITBINOM":
:
1503 | return try evaluateERROR_TYPE(args)
1504 | // Batch 34: Legacy distribution and statistical functions
1505 | case "CONFIDENCE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1506 | return try evaluateCONFIDENCE(args)
1507 | case "FISHER":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1511:14: warning: literal value is already handled by previous pattern; consider removing it
1046 | case "BINOM.INV":
1047 | return try evaluateBINOM_INV(args)
1048 | case "POISSON.DIST", "POISSON":
| `- note: first occurrence of identical literal pattern is here
1049 | return try evaluatePOISSON_DIST(args)
1050 | case "EXPON.DIST":
:
1509 | case "FISHERINV":
1510 | return try evaluateFISHERINV(args)
1511 | case "POISSON":
| `- warning: literal value is already handled by previous pattern; consider removing it
1512 | return try evaluatePOISSON(args)
1513 | case "EXPONDIST":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1556:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1554 | case "RTD":
1555 | return try evaluateRTD(args)
1556 | case "CUBEVALUE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1557 | return try evaluateCUBEVALUE(args)
1558 | case "CUBEMEMBERPROPERTY":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1558:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1556 | case "CUBEVALUE":
1557 | return try evaluateCUBEVALUE(args)
1558 | case "CUBEMEMBERPROPERTY":
| `- warning: literal value is already handled by previous pattern; consider removing it
1559 | return try evaluateCUBEMEMBERPROPERTY(args)
1560 | case "CUBERANKEDMEMBER":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1560:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1558 | case "CUBEMEMBERPROPERTY":
1559 | return try evaluateCUBEMEMBERPROPERTY(args)
1560 | case "CUBERANKEDMEMBER":
| `- warning: literal value is already handled by previous pattern; consider removing it
1561 | return try evaluateCUBERANKEDMEMBER(args)
1562 | case "AVERAGEA":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1564:14: warning: literal value is already handled by previous pattern; consider removing it
703 | case "COUNT":
704 | return try evaluateCOUNT(args)
705 | case "COUNTA":
| `- note: first occurrence of identical literal pattern is here
706 | return try evaluateCOUNTA(args)
707 | case "AND":
:
1562 | case "AVERAGEA":
1563 | return try evaluateAVERAGEA(args)
1564 | case "COUNTA":
| `- warning: literal value is already handled by previous pattern; consider removing it
1565 | return try evaluateCOUNTA(args)
1566 | case "COUNTBLANK":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:3479:13: warning: variable 'numbers' was never mutated; consider changing to 'let' constant
3477 |
3478 | let refVal = try evaluate(args[1])
3479 | var numbers = flattenToNumbers(refVal)
| `- warning: variable 'numbers' was never mutated; consider changing to 'let' constant
3480 |
3481 | guard !numbers.isEmpty else {
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:9638:26: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
9636 | } else {
9637 | // PDF: x^(α-1) * (1-x)^(β-1) / B(α,β)
9638 | let logPdf = (alpha - 1) * log(xNorm) + (beta - 1) * log(1 - xNorm) - lgamma(alpha) - lgamma(beta) + lgamma(alpha + beta)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
9639 | return .number(exp(logPdf) / (b - a))
9640 | }
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:10434:31: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10432 | for k in 0...sampleSuccesses {
10433 | // Hypergeometric probability: C(M,k) * C(N-M,n-k) / C(N,n)
10434 | let logProb = lgamma(Double(populationSuccesses + 1)) - lgamma(Double(k + 1)) - lgamma(Double(populationSuccesses - k + 1)) +
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10435 | lgamma(Double(populationSize - populationSuccesses + 1)) - lgamma(Double(sampleSize - k + 1)) - lgamma(Double(populationSize - populationSuccesses - sampleSize + k + 1)) -
10436 | (lgamma(Double(populationSize + 1)) - lgamma(Double(sampleSize + 1)) - lgamma(Double(populationSize - sampleSize + 1)))
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:10442:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10440 | } else {
10441 | // PMF
10442 | let logProb = lgamma(Double(populationSuccesses + 1)) - lgamma(Double(sampleSuccesses + 1)) - lgamma(Double(populationSuccesses - sampleSuccesses + 1)) +
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10443 | lgamma(Double(populationSize - populationSuccesses + 1)) - lgamma(Double(sampleSize - sampleSuccesses + 1)) - lgamma(Double(populationSize - populationSuccesses - sampleSize + sampleSuccesses + 1)) -
10444 | (lgamma(Double(populationSize + 1)) - lgamma(Double(sampleSize + 1)) - lgamma(Double(populationSize - sampleSize + 1)))
[35/36] Compiling Cuneiform FormulaParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1255:14: warning: literal value is already handled by previous pattern; consider removing it
1101 | case "FLOOR", "FLOOR.MATH":
1102 | return try evaluateFLOOR(args)
1103 | case "TRUNC":
| `- note: first occurrence of identical literal pattern is here
1104 | return try evaluateTRUNC(args)
1105 | case "SIGN":
:
1253 | case "LENB":
1254 | return try evaluateLEN(args)
1255 | case "TRUNC":
| `- warning: literal value is already handled by previous pattern; consider removing it
1256 | return try evaluateTRUNC(args)
1257 | case "SIGN":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1257:14: warning: literal value is already handled by previous pattern; consider removing it
1103 | case "TRUNC":
1104 | return try evaluateTRUNC(args)
1105 | case "SIGN":
| `- note: first occurrence of identical literal pattern is here
1106 | return try evaluateSIGN(args)
1107 | case "FACT":
:
1255 | case "TRUNC":
1256 | return try evaluateTRUNC(args)
1257 | case "SIGN":
| `- warning: literal value is already handled by previous pattern; consider removing it
1258 | return try evaluateSIGN(args)
1259 | case "RANDBETWEEN":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1259:14: warning: literal value is already handled by previous pattern; consider removing it
1125 | case "RAND":
1126 | return evaluateRAND(args)
1127 | case "RANDBETWEEN":
| `- note: first occurrence of identical literal pattern is here
1128 | return try evaluateRANDBETWEEN(args)
1129 | case "COMBIN":
:
1257 | case "SIGN":
1258 | return try evaluateSIGN(args)
1259 | case "RANDBETWEEN":
| `- warning: literal value is already handled by previous pattern; consider removing it
1260 | return try evaluateRANDBETWEEN(args)
1261 | // Batch 24: Statistical distributions
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1280:14: warning: literal value is already handled by previous pattern; consider removing it
1012 | case "STANDARDIZE":
1013 | return try evaluateSTANDARDIZE(args)
1014 | case "CONFIDENCE.NORM":
| `- note: first occurrence of identical literal pattern is here
1015 | return try evaluateCONFIDENCE_NORM(args)
1016 | case "CONFIDENCE.T":
:
1278 | case "LOGNORM.INV":
1279 | return try evaluateLOGNORMINV(args)
1280 | case "CONFIDENCE.NORM", "CONFIDENCE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1281 | return try evaluateCONFIDENCENORM(args)
1282 | case "CRITBINOM":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1358:14: warning: literal value is already handled by previous pattern; consider removing it
992 | case "STEYX":
993 | return try evaluateSTEYX(args)
994 | case "COVARIANCE.P":
| `- note: first occurrence of identical literal pattern is here
995 | return try evaluateCOVARIANCE_P(args)
996 | case "COVARIANCE.S":
:
1356 | case "INTERCEPT":
1357 | return try evaluateINTERCEPT(args)
1358 | case "COVARIANCE.P", "COVAR":
| `- warning: literal value is already handled by previous pattern; consider removing it
1359 | return try evaluateCOVAR(args)
1360 | // Batch 28: Legacy statistical test functions
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1463:14: warning: literal value is already handled by previous pattern; consider removing it
1016 | case "CONFIDENCE.T":
1017 | return try evaluateCONFIDENCE_T(args)
1018 | case "FORECAST", "FORECAST.LINEAR":
| `- note: first occurrence of identical literal pattern is here
1019 | return try evaluateFORECAST(args)
1020 | case "FORECAST.ETS":
:
1461 | return try evaluateAGGREGATE(args)
1462 | // Batch 32: Statistical and regression functions
1463 | case "FORECAST.LINEAR":
| `- warning: literal value is already handled by previous pattern; consider removing it
1464 | return try evaluateFORECAST(args) // Alias for existing FORECAST
1465 | case "GROWTH":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1505:14: warning: literal value is already handled by previous pattern; consider removing it
1278 | case "LOGNORM.INV":
1279 | return try evaluateLOGNORMINV(args)
1280 | case "CONFIDENCE.NORM", "CONFIDENCE":
| `- note: first occurrence of identical literal pattern is here
1281 | return try evaluateCONFIDENCENORM(args)
1282 | case "CRITBINOM":
:
1503 | return try evaluateERROR_TYPE(args)
1504 | // Batch 34: Legacy distribution and statistical functions
1505 | case "CONFIDENCE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1506 | return try evaluateCONFIDENCE(args)
1507 | case "FISHER":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1511:14: warning: literal value is already handled by previous pattern; consider removing it
1046 | case "BINOM.INV":
1047 | return try evaluateBINOM_INV(args)
1048 | case "POISSON.DIST", "POISSON":
| `- note: first occurrence of identical literal pattern is here
1049 | return try evaluatePOISSON_DIST(args)
1050 | case "EXPON.DIST":
:
1509 | case "FISHERINV":
1510 | return try evaluateFISHERINV(args)
1511 | case "POISSON":
| `- warning: literal value is already handled by previous pattern; consider removing it
1512 | return try evaluatePOISSON(args)
1513 | case "EXPONDIST":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1556:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1554 | case "RTD":
1555 | return try evaluateRTD(args)
1556 | case "CUBEVALUE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1557 | return try evaluateCUBEVALUE(args)
1558 | case "CUBEMEMBERPROPERTY":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1558:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1556 | case "CUBEVALUE":
1557 | return try evaluateCUBEVALUE(args)
1558 | case "CUBEMEMBERPROPERTY":
| `- warning: literal value is already handled by previous pattern; consider removing it
1559 | return try evaluateCUBEMEMBERPROPERTY(args)
1560 | case "CUBERANKEDMEMBER":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1560:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1558 | case "CUBEMEMBERPROPERTY":
1559 | return try evaluateCUBEMEMBERPROPERTY(args)
1560 | case "CUBERANKEDMEMBER":
| `- warning: literal value is already handled by previous pattern; consider removing it
1561 | return try evaluateCUBERANKEDMEMBER(args)
1562 | case "AVERAGEA":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1564:14: warning: literal value is already handled by previous pattern; consider removing it
703 | case "COUNT":
704 | return try evaluateCOUNT(args)
705 | case "COUNTA":
| `- note: first occurrence of identical literal pattern is here
706 | return try evaluateCOUNTA(args)
707 | case "AND":
:
1562 | case "AVERAGEA":
1563 | return try evaluateAVERAGEA(args)
1564 | case "COUNTA":
| `- warning: literal value is already handled by previous pattern; consider removing it
1565 | return try evaluateCOUNTA(args)
1566 | case "COUNTBLANK":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:3479:13: warning: variable 'numbers' was never mutated; consider changing to 'let' constant
3477 |
3478 | let refVal = try evaluate(args[1])
3479 | var numbers = flattenToNumbers(refVal)
| `- warning: variable 'numbers' was never mutated; consider changing to 'let' constant
3480 |
3481 | guard !numbers.isEmpty else {
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:9638:26: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
9636 | } else {
9637 | // PDF: x^(α-1) * (1-x)^(β-1) / B(α,β)
9638 | let logPdf = (alpha - 1) * log(xNorm) + (beta - 1) * log(1 - xNorm) - lgamma(alpha) - lgamma(beta) + lgamma(alpha + beta)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
9639 | return .number(exp(logPdf) / (b - a))
9640 | }
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:10434:31: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10432 | for k in 0...sampleSuccesses {
10433 | // Hypergeometric probability: C(M,k) * C(N-M,n-k) / C(N,n)
10434 | let logProb = lgamma(Double(populationSuccesses + 1)) - lgamma(Double(k + 1)) - lgamma(Double(populationSuccesses - k + 1)) +
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10435 | lgamma(Double(populationSize - populationSuccesses + 1)) - lgamma(Double(sampleSize - k + 1)) - lgamma(Double(populationSize - populationSuccesses - sampleSize + k + 1)) -
10436 | (lgamma(Double(populationSize + 1)) - lgamma(Double(sampleSize + 1)) - lgamma(Double(populationSize - sampleSize + 1)))
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:10442:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10440 | } else {
10441 | // PMF
10442 | let logProb = lgamma(Double(populationSuccesses + 1)) - lgamma(Double(sampleSuccesses + 1)) - lgamma(Double(populationSuccesses - sampleSuccesses + 1)) +
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10443 | lgamma(Double(populationSize - populationSuccesses + 1)) - lgamma(Double(sampleSize - sampleSuccesses + 1)) - lgamma(Double(populationSize - populationSuccesses - sampleSize + sampleSuccesses + 1)) -
10444 | (lgamma(Double(populationSize + 1)) - lgamma(Double(sampleSize + 1)) - lgamma(Double(populationSize - sampleSize + 1)))
[36/36] Compiling Cuneiform PageSetup.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1255:14: warning: literal value is already handled by previous pattern; consider removing it
1101 | case "FLOOR", "FLOOR.MATH":
1102 | return try evaluateFLOOR(args)
1103 | case "TRUNC":
| `- note: first occurrence of identical literal pattern is here
1104 | return try evaluateTRUNC(args)
1105 | case "SIGN":
:
1253 | case "LENB":
1254 | return try evaluateLEN(args)
1255 | case "TRUNC":
| `- warning: literal value is already handled by previous pattern; consider removing it
1256 | return try evaluateTRUNC(args)
1257 | case "SIGN":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1257:14: warning: literal value is already handled by previous pattern; consider removing it
1103 | case "TRUNC":
1104 | return try evaluateTRUNC(args)
1105 | case "SIGN":
| `- note: first occurrence of identical literal pattern is here
1106 | return try evaluateSIGN(args)
1107 | case "FACT":
:
1255 | case "TRUNC":
1256 | return try evaluateTRUNC(args)
1257 | case "SIGN":
| `- warning: literal value is already handled by previous pattern; consider removing it
1258 | return try evaluateSIGN(args)
1259 | case "RANDBETWEEN":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1259:14: warning: literal value is already handled by previous pattern; consider removing it
1125 | case "RAND":
1126 | return evaluateRAND(args)
1127 | case "RANDBETWEEN":
| `- note: first occurrence of identical literal pattern is here
1128 | return try evaluateRANDBETWEEN(args)
1129 | case "COMBIN":
:
1257 | case "SIGN":
1258 | return try evaluateSIGN(args)
1259 | case "RANDBETWEEN":
| `- warning: literal value is already handled by previous pattern; consider removing it
1260 | return try evaluateRANDBETWEEN(args)
1261 | // Batch 24: Statistical distributions
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1280:14: warning: literal value is already handled by previous pattern; consider removing it
1012 | case "STANDARDIZE":
1013 | return try evaluateSTANDARDIZE(args)
1014 | case "CONFIDENCE.NORM":
| `- note: first occurrence of identical literal pattern is here
1015 | return try evaluateCONFIDENCE_NORM(args)
1016 | case "CONFIDENCE.T":
:
1278 | case "LOGNORM.INV":
1279 | return try evaluateLOGNORMINV(args)
1280 | case "CONFIDENCE.NORM", "CONFIDENCE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1281 | return try evaluateCONFIDENCENORM(args)
1282 | case "CRITBINOM":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1358:14: warning: literal value is already handled by previous pattern; consider removing it
992 | case "STEYX":
993 | return try evaluateSTEYX(args)
994 | case "COVARIANCE.P":
| `- note: first occurrence of identical literal pattern is here
995 | return try evaluateCOVARIANCE_P(args)
996 | case "COVARIANCE.S":
:
1356 | case "INTERCEPT":
1357 | return try evaluateINTERCEPT(args)
1358 | case "COVARIANCE.P", "COVAR":
| `- warning: literal value is already handled by previous pattern; consider removing it
1359 | return try evaluateCOVAR(args)
1360 | // Batch 28: Legacy statistical test functions
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1463:14: warning: literal value is already handled by previous pattern; consider removing it
1016 | case "CONFIDENCE.T":
1017 | return try evaluateCONFIDENCE_T(args)
1018 | case "FORECAST", "FORECAST.LINEAR":
| `- note: first occurrence of identical literal pattern is here
1019 | return try evaluateFORECAST(args)
1020 | case "FORECAST.ETS":
:
1461 | return try evaluateAGGREGATE(args)
1462 | // Batch 32: Statistical and regression functions
1463 | case "FORECAST.LINEAR":
| `- warning: literal value is already handled by previous pattern; consider removing it
1464 | return try evaluateFORECAST(args) // Alias for existing FORECAST
1465 | case "GROWTH":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1505:14: warning: literal value is already handled by previous pattern; consider removing it
1278 | case "LOGNORM.INV":
1279 | return try evaluateLOGNORMINV(args)
1280 | case "CONFIDENCE.NORM", "CONFIDENCE":
| `- note: first occurrence of identical literal pattern is here
1281 | return try evaluateCONFIDENCENORM(args)
1282 | case "CRITBINOM":
:
1503 | return try evaluateERROR_TYPE(args)
1504 | // Batch 34: Legacy distribution and statistical functions
1505 | case "CONFIDENCE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1506 | return try evaluateCONFIDENCE(args)
1507 | case "FISHER":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1511:14: warning: literal value is already handled by previous pattern; consider removing it
1046 | case "BINOM.INV":
1047 | return try evaluateBINOM_INV(args)
1048 | case "POISSON.DIST", "POISSON":
| `- note: first occurrence of identical literal pattern is here
1049 | return try evaluatePOISSON_DIST(args)
1050 | case "EXPON.DIST":
:
1509 | case "FISHERINV":
1510 | return try evaluateFISHERINV(args)
1511 | case "POISSON":
| `- warning: literal value is already handled by previous pattern; consider removing it
1512 | return try evaluatePOISSON(args)
1513 | case "EXPONDIST":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1556:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1554 | case "RTD":
1555 | return try evaluateRTD(args)
1556 | case "CUBEVALUE":
| `- warning: literal value is already handled by previous pattern; consider removing it
1557 | return try evaluateCUBEVALUE(args)
1558 | case "CUBEMEMBERPROPERTY":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1558:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1556 | case "CUBEVALUE":
1557 | return try evaluateCUBEVALUE(args)
1558 | case "CUBEMEMBERPROPERTY":
| `- warning: literal value is already handled by previous pattern; consider removing it
1559 | return try evaluateCUBEMEMBERPROPERTY(args)
1560 | case "CUBERANKEDMEMBER":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1560:14: warning: literal value is already handled by previous pattern; consider removing it
1344 | return try evaluateNEGBINOMDIST(args)
1345 | // Batch 27: Cube stubs, Web, and statistical functions
1346 | case "CUBEVALUE", "CUBEMEMBER", "CUBESET", "CUBERANKEDMEMBER", "CUBEKPIMEMBER", "CUBESETCOUNT", "CUBEMEMBERPROPERTY":
| `- note: first occurrence of identical literal pattern is here
1347 | return .error("N/A") // Requires OLAP cube connection
1348 | case "WEBSERVICE", "FILTERXML":
:
1558 | case "CUBEMEMBERPROPERTY":
1559 | return try evaluateCUBEMEMBERPROPERTY(args)
1560 | case "CUBERANKEDMEMBER":
| `- warning: literal value is already handled by previous pattern; consider removing it
1561 | return try evaluateCUBERANKEDMEMBER(args)
1562 | case "AVERAGEA":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:1564:14: warning: literal value is already handled by previous pattern; consider removing it
703 | case "COUNT":
704 | return try evaluateCOUNT(args)
705 | case "COUNTA":
| `- note: first occurrence of identical literal pattern is here
706 | return try evaluateCOUNTA(args)
707 | case "AND":
:
1562 | case "AVERAGEA":
1563 | return try evaluateAVERAGEA(args)
1564 | case "COUNTA":
| `- warning: literal value is already handled by previous pattern; consider removing it
1565 | return try evaluateCOUNTA(args)
1566 | case "COUNTBLANK":
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:3479:13: warning: variable 'numbers' was never mutated; consider changing to 'let' constant
3477 |
3478 | let refVal = try evaluate(args[1])
3479 | var numbers = flattenToNumbers(refVal)
| `- warning: variable 'numbers' was never mutated; consider changing to 'let' constant
3480 |
3481 | guard !numbers.isEmpty else {
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:9638:26: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
9636 | } else {
9637 | // PDF: x^(α-1) * (1-x)^(β-1) / B(α,β)
9638 | let logPdf = (alpha - 1) * log(xNorm) + (beta - 1) * log(1 - xNorm) - lgamma(alpha) - lgamma(beta) + lgamma(alpha + beta)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
9639 | return .number(exp(logPdf) / (b - a))
9640 | }
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:10434:31: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10432 | for k in 0...sampleSuccesses {
10433 | // Hypergeometric probability: C(M,k) * C(N-M,n-k) / C(N,n)
10434 | let logProb = lgamma(Double(populationSuccesses + 1)) - lgamma(Double(k + 1)) - lgamma(Double(populationSuccesses - k + 1)) +
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10435 | lgamma(Double(populationSize - populationSuccesses + 1)) - lgamma(Double(sampleSize - k + 1)) - lgamma(Double(populationSize - populationSuccesses - sampleSize + k + 1)) -
10436 | (lgamma(Double(populationSize + 1)) - lgamma(Double(sampleSize + 1)) - lgamma(Double(populationSize - sampleSize + 1)))
/Users/admin/builder/spi-builder-workspace/Sources/Cuneiform/SpreadsheetML/FormulaEvaluator.swift:10442:27: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10440 | } else {
10441 | // PMF
10442 | let logProb = lgamma(Double(populationSuccesses + 1)) - lgamma(Double(sampleSuccesses + 1)) - lgamma(Double(populationSuccesses - sampleSuccesses + 1)) +
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
10443 | lgamma(Double(populationSize - populationSuccesses + 1)) - lgamma(Double(sampleSize - sampleSuccesses + 1)) - lgamma(Double(populationSize - populationSuccesses - sampleSize + sampleSuccesses + 1)) -
10444 | (lgamma(Double(populationSize + 1)) - lgamma(Double(sampleSize + 1)) - lgamma(Double(populationSize - sampleSize + 1)))
BUILD FAILURE 6.3 macosSpm