您好我正在尝试在我的项目中重建armv7
和arm64
位支持的核心图。我之前的项目版本在核心情节上运行良好,但它是32位。
对于我所做的64位支持,从here下载核心图并在框架文件夹上打开CorePlot-CocoaTouch.xcodeproj
,将架构更改为armv7
和arm64
并且有效架构到x86_64, i386, armv6, armv7
。
然后设置Product-> Scheme-> Universal Library并构建它。
现在我可以看到库生成build/Release-universal
名称为libCorePlot-CocoaTouch.a
和头文件夹CorePlotHeaders
,我将这两个文件复制到我的项目中(32位库和标题),
然后我收到了以下错误。
/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 *'
答案 0 :(得分:3)
Core Plot API在1.x和2.x之间略有变化,以适应Swift中缺少NSDecimal
支持并稍微简化一下。有关更改的详细信息,请参阅此wiki page。