如何在 Swift 中覆盖 ShinobiChart class
How to override ShinobiChart class in Swift
我使用 Shinobi 2.8.2 图表高级库,我试图覆盖 ShinobiChart
class,但出现 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
我使用 Shinobi 2.8.2 图表高级库,我试图覆盖 ShinobiChart
class,但出现 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