You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I was trying to upgrade to 2.1.2 from 2.1.0. When I tried to build, it throws:
Command failed due to signal: Segmentation fault: 11
1. While emitting IR for source file /Users/xuan/Development/Charts/BDPLineChartView.swift
2. While emitting class metadata for 'BDPLineChartView' at /Users/xuan/Development/Charts/BDPLineChartView.swift:12:8
It directs me to a function getHighlightByTouchPoint in BDPLineChartView. Below code works good in 2.1.0, I am not sure what goes wrong. I simply subclass LineChartView and override this function.
publicoverridefunc getHighlightByTouchPoint(var pt:CGPoint)->ChartHighlight?{//judge is point in chart
if (viewPortHandler.contentRect.origin.x > pt.x){returnnil}else{return super.getHighlightByTouchPoint(pt)}}
The text was updated successfully, but these errors were encountered:
maybe a silly mistake, but I don't get it yet... what var you are saying? I just try to add a small check before call super. The compiler don't complain it but throw segmentation fault while building...
Today I was trying to upgrade to 2.1.2 from 2.1.0. When I tried to build, it throws:
Command failed due to signal: Segmentation fault: 11
It directs me to a function
getHighlightByTouchPoint
in BDPLineChartView. Below code works good in 2.1.0, I am not sure what goes wrong. I simply subclass LineChartView and override this function.The text was updated successfully, but these errors were encountered: