我使用Shinobi2.8.2图表高级库,我试图覆盖ShinobiChart类,但我得到65个错误。

Apple Mach-O Linker Error
   Undefined symbols for architecture x86_64:
    "typeinfo for std::exception", referenced from:
       typeinfo for std::__1::bad_function_call in ShinobiCharts(ShinobiCharts)
    "typeinfo for std::__1::ios_base", referenced from:
       typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> > in ShinobiCharts(ShinobiCharts)
    "vtable for __cxxabiv1::__class_type_info", referenced from:
       typeinfo for SChartGL::AnimationManager in ShinobiCharts(ShinobiCharts)
       typeinfo for SChartGL::ErrorHandler in ShinobiCharts(ShinobiCharts)
       typeinfo for SChartGL::VertexMath::convertSeries2DToGLVertex3DWithMultipleBaselines(float*,  SChartGL::GLVertex3D*, int, GLColour4f const*, GLColour4f const*, SChartGL::orientation, float)::$_0 in ShinobiCharts(ShinobiCharts)
       typeinfo for SChartGL::VertexMath::convertSeries2DToGLVertex3DWithBaseline(std::__1::vector<SChartGL::Point, std::__1::allocator<SChartGL::Point> >, SChartGL::GLVertex3DWithCurvature*, float, SChartGL::orientation, GLColour4f const&, GLColour4f const&)::$_1 in ShinobiCharts(ShinobiCharts)
       typeinfo for SChartGL::VertexMath::convertSeries2DToGLVertex3DWithInterpolatedGradientFill(float*, SChartGL::GLVertex3D*, int, GLColour4f const&, GLColour4f const&, float)::$_2 in ShinobiCharts(ShinobiCharts)
       typeinfo for std::__1::basic_streambuf<char, std::__1::char_traits<char> > in ShinobiCharts(ShinobiCharts)
       typeinfo for SChartGL::RenderData in ShinobiCharts(ShinobiCharts)
...

我所做的是:
import UIKit
import ShinobiCharts


class BIGraphChartView: ShinobiChart {

}

我做错了什么?

最佳答案

很抱歉。
对于所有其他有同样问题的人:不要忘记包括libc++.tbd

关于swift - 如何在Swift中重写ShinobiChart类,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41672625/

10-09 13:02