Failed to demangle superclass with Cocoapods in Xcode 10.2 : <p>After moving to Xcode 10.2, when running my app I get a crash with the error <code>failed to demangle superclass of MyClass from mangled name MySuperClass</code>.</p>

<p>The crash occurs when I try to create an instance of MyClass. I am using CocoaPods 1.6.1 and have not yet upgraded to Swift 5. The class in question is defined inside a Pod, and is a subclass of a class defined a different Pod (listed as a sub dependency of the first Pod). </p>

<p>Adding to the complexity (unsure if it is related) is that the super class takes a generic, and the sub class defines a concrete type and does not take a generic. I.e.</p>

<pre><code>// Inside Pod B:
open class MySuperClass&lt;DataType: Decodable&gt; { ... }

// Inside Pod A:
open class MySubClass: MySuperClass&lt;AConcreteStructConformingToCodable&gt; { ... }

// Inside my project:
let myClass = MySubClass()
</code></pre>

<p>I have tried overriding the Pod build settings to build with and without optmisation without any change in behaviour.</p>
