The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Combinatorics, reference main (f928db), with Swift 6.1 for macOS (SPM) on 15 Aug 2026 18:41:38 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dankogai/swift-combinatorics.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dankogai/swift-combinatorics
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f928db2 Bump version to 6.0.0
Cloned https://github.com/dankogai/swift-combinatorics.git
Revision (git rev-parse @):
f928db2dd1fb6401e73389a186a65cdad427cc0a
SUCCESS checkout https://github.com/dankogai/swift-combinatorics.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dankogai/swift-combinatorics.git
https://github.com/dankogai/swift-combinatorics.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Combinatorics",
  "name" : "Combinatorics",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Combinatorics",
      "targets" : [
        "Combinatorics"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CombinatoricsTests",
      "module_type" : "SwiftTarget",
      "name" : "CombinatoricsTests",
      "path" : "Tests/CombinatoricsTests",
      "sources" : [
        "CombinatoricsTests.swift"
      ],
      "target_dependencies" : [
        "Combinatorics"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Combinatorics",
      "module_type" : "SwiftTarget",
      "name" : "Combinatorics",
      "path" : "Sources/Combinatorics",
      "product_memberships" : [
        "Combinatorics"
      ],
      "sources" : [
        "Combinatorics.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module Combinatorics
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:100:19: error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 98 | public struct CombinatoricsIndex<Index:SignedInteger> {
 99 |     /// permutation
100 |     public struct Permutation<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
101 |         public let seed:[SubElement] // immutable
102 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:126:19: error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
124 |     }
125 |     /// permutations of a multiset — duplicate elements yield each distinct ordering only once
126 |     public struct UniquePermutation<SubElement:Hashable> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
127 |         public let seed:[SubElement] // immutable
128 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:182:19: error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
180 |     }
181 |     /// combination
182 |     public struct Combination<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
183 |         public let seed:[SubElement] // immutable
184 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:284:19: error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
282 |     }
283 |     /// BaseN
284 |     public struct BaseN<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
285 |         public let seed:[SubElement] // immutable
286 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:305:19: error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
303 |     }
304 |     /// Power Set
305 |     public struct PowerSet<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
306 |         public let seed:[SubElement] // immutable
307 |         public let count:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
3 |
[4/6] Compiling Combinatorics Combinatorics.swift
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:100:19: error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 98 | public struct CombinatoricsIndex<Index:SignedInteger> {
 99 |     /// permutation
100 |     public struct Permutation<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
101 |         public let seed:[SubElement] // immutable
102 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:126:19: error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
124 |     }
125 |     /// permutations of a multiset — duplicate elements yield each distinct ordering only once
126 |     public struct UniquePermutation<SubElement:Hashable> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
127 |         public let seed:[SubElement] // immutable
128 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:182:19: error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
180 |     }
181 |     /// combination
182 |     public struct Combination<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
183 |         public let seed:[SubElement] // immutable
184 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:284:19: error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
282 |     }
283 |     /// BaseN
284 |     public struct BaseN<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
285 |         public let seed:[SubElement] // immutable
286 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:305:19: error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
303 |     }
304 |     /// Power Set
305 |     public struct PowerSet<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
306 |         public let seed:[SubElement] // immutable
307 |         public let count:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
3 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Emitting module Combinatorics
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:100:19: error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 98 | public struct CombinatoricsIndex<Index:SignedInteger> {
 99 |     /// permutation
100 |     public struct Permutation<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
101 |         public let seed:[SubElement] // immutable
102 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:126:19: error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
124 |     }
125 |     /// permutations of a multiset — duplicate elements yield each distinct ordering only once
126 |     public struct UniquePermutation<SubElement:Hashable> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
127 |         public let seed:[SubElement] // immutable
128 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:182:19: error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
180 |     }
181 |     /// combination
182 |     public struct Combination<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
183 |         public let seed:[SubElement] // immutable
184 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:284:19: error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
282 |     }
283 |     /// BaseN
284 |     public struct BaseN<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
285 |         public let seed:[SubElement] // immutable
286 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:305:19: error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
303 |     }
304 |     /// Power Set
305 |     public struct PowerSet<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
306 |         public let seed:[SubElement] // immutable
307 |         public let count:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
3 |
[3/5] Compiling Combinatorics Combinatorics.swift
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:100:19: error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 98 | public struct CombinatoricsIndex<Index:SignedInteger> {
 99 |     /// permutation
100 |     public struct Permutation<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
101 |         public let seed:[SubElement] // immutable
102 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:126:19: error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
124 |     }
125 |     /// permutations of a multiset — duplicate elements yield each distinct ordering only once
126 |     public struct UniquePermutation<SubElement:Hashable> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' does not conform to protocol 'Sequence'
127 |         public let seed:[SubElement] // immutable
128 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' if 'CombinatoricsIndex<Index>.UniquePermutation<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:182:19: error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
180 |     }
181 |     /// combination
182 |     public struct Combination<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
183 |         public let seed:[SubElement] // immutable
184 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:284:19: error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
282 |     }
283 |     /// BaseN
284 |     public struct BaseN<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
285 |         public let seed:[SubElement] // immutable
286 |         public let size:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:305:19: error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
303 |     }
304 |     /// Power Set
305 |     public struct PowerSet<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
306 |         public let seed:[SubElement] // immutable
307 |         public let count:Index
Swift.Sequence.Iterator:2:16: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
3 |
Swift.Sequence.makeIterator:2:36: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
1 | protocol Sequence {
2 | @inlinable public __consuming func makeIterator() -> Self}
  |                                    `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
3 |
BUILD FAILURE 6.1 macosSpm