Exactly it crashes inside the result.map { $0.asAny() } with cyclic metadata dependency
I've looked a bit on similar issues (outside of SwagGen) and this cyclic metadata dependency bug mostly occurs, when there are generic types nested in other types (especially with multiple levels of nesting). Maybe you could consider not using nested types, but rather prefixes on type names, and flat types structure?
This code crashes on Release builds with Xcode 11.2:
Exactly it crashes inside the
result.map { $0.asAny() }
withcyclic metadata dependency
I've looked a bit on similar issues (outside of SwagGen) and this
cyclic metadata dependency
bug mostly occurs, when there are generic types nested in other types (especially with multiple levels of nesting). Maybe you could consider not using nested types, but rather prefixes on type names, and flat types structure?