Our existing hack broke the new Xcode build system (see #724).
Also, CocoaPods 1.4 didn’t like it.
So I had to rewrite with composition instead adding additional methods via an objc category.
The cause of the issue was that the framework required that the -Swift.h file be generated before the objc portions were built (since the objc extended the swift portion), and neither build system guarantees this.
All tests pass. However it is not as efficient as before. Could use some optimizations.