Problem co-existing with KSCrash library on iOS (Swift, CocoaPods)

16 views
Skip to first unread message

c.wy...@kumulos.com

unread,
Sep 26, 2019, 9:12:35 AM9/26/19
to grpc.io
Hello,

We have found that when the KSCrash pod is included with the gRPC-Core pod, it leads to C++ 'undefined template' errors to do with the Optional type.

The minimal reproduction case is to:

- Create an empty iOS application using Swift in Xcode
- Run `pod init`
- Add `pod 'KSCrash'` and `pod 'gRPC-Core'` to the dependencies
- Run `pod install`
- Open the workspace file
- Try to build the project

Compilation is halted early due to many errors such as:

> Implicit instantiation of undefined template 'llvm::Optional<char>' Demangle.cpp

As I understand it, both dependencies declare an Optional template, but in different namespaces. Independently these dependencies compile fine, but together you can observe the errors above.

Can anyone possibly explain the issue and point us in the right direction for a solution to enable use of both libraries?

Thanks in advance,
  Chris

P.S. this is the tooling I'm using:

- Xcode 10.2.1
- Swift 5
- CocoaPods 1.7.1
Reply all
Reply to author
Forward
0 new messages