gpt4 book ai didi

ios - CorePlot 在通用库上出错

转载 作者:行者123 更新时间:2023-11-28 19:40:59 31 4
gpt4 key购买 nike

您好,我正在尝试在我的项目中为 armv7arm64 位支持重建核心图。我以前的项目版本在 core-plot 上运行良好,但它是 32 位的。

为了支持 64 位,我所做的是从 here 下载 core-plot并在框架文件夹中打开 CorePlot-CocoaTouch.xcodeproj,将架构更改为 armv7arm64 并将有效架构更改为 x86_64、i386、armv6 , armv7.

然后设置Product->Scheme->Universal Library并构建它。

现在我可以看到生成的库 build/Release-universal 名称为 libCorePlot-CocoaTouch.a 和 header 文件夹 CorePlotHeaders,我将这两个复制到我的项目(32 位库和 header 所在的相同位置),

然后我收到以下错误。

/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3594:93: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3594:93: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3595:60: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3595:93: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3605:35: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3606:7: Property 'orthogonalCoordinateDecimal' not found on object of type 'CPTXYAxis *'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3608:35: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3620:31: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3634:35: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3635:7: Property 'orthogonalCoordinateDecimal' not found on object of type 'CPTXYAxis *'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3638:35: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3650:25: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3652:25: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3696:16: 'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3739:60: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3739:93: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3740:60: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3740:93: Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3750:35: Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal'
/Users/computer/Documents/EAP-Dec-4-2015/EAP/EAP/VALiveViewController.m:3751:7: Property 'orthogonalCoordinateDecimal' not found on object of type 'CPTXYAxis *'

最佳答案

Core Plot API 在 1.x 和 2.x 之间略有变化,以适应 Swift 中缺少 NSDecimal 支持并稍微简化它。看这个wiki page有关更改的详细信息。

关于ios - CorePlot 在通用库上出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34265990/

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