出错版本AAChartView4.0.0
为nil崩溃的代码:

1.检查你的AAChartView版本(如果你的版本是4.0.0之后的请忽略这步)
AAChartView在4.0.0之前不支持pods导入,只能选择手动拖入
1.将项目Demo中的文件夹AAChartKitLib拖入到所需项目中.
2.在你的项目的 .pch 全局宏定义文件中添加 #import"AAGlobalMacro.h"(这步容易忘,注意)
2.CocoaPods 安装 (推荐)
在 Podfile 中添加以下内容
pod'AAChartKit',:git=>'https://github.com/AAChartModel/AAChartKit.git'
执行 pod install 或 pod update
3.查看AAChartView第三方库中有无AAJSFiles.bundle这个文件
在AAChartView的Resource中查看

4.如果有这个文件还找不到,那请到Build Phases 中的 Copy Bundle Resource中有无AAJSFiles.bundle,没有的话添加进去,重新编译就好了

可到AAChartView中的issues中查看 AAChartKit
网友评论