gpt4 book ai didi

swift - 如何在 Swift 中覆盖 ShinobiChart 类

转载 作者:行者123 更新时间:2023-11-28 15:56:23 24 4
gpt4 key购买 nike

我使用 Shinobi 2.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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com