Open caldwbr opened 9 months ago
It seems to be this 260th line of code in Daniel's PieChartView.swift file, which seems to be locked from me tinkering:
<let yValueSum = (data as! PieChartData).yValueSum> says "Thread 1 Signal Sigabrt (crash)."
As though the PieChartData it is trying to cast to is Apple's version, whereas we are working with Daniel's DGChart.PieChartData.
I had included pod 'DGCharts' in podfile, and install DGCharts in viewController, yet it wasn't working.
Solution (for me): Then I deleted the package dependency (within Xcode in Project->Package Dependencies), searched for it by github.com/danielgindi/Charts, installed, and surprisingly the casting of DG piechart to Apple piechart (did not want this behavior) mostly went away. I still had to deactivate my two pie charts (which weren't all that important in the pdf), so I don't think this is a total solution, but it gets me thru.
What did you do?
ℹ I changed my podfile from pod 'Charts' to pod 'DGCharts' as instructed (and import Charts changed to import DGCharts in the viewController).
What did you expect to happen?
ℹ For app to work as usual making Pie Charts etc and incorporating into SimplePDF.
What happened instead?
ℹ App got stuck when I clicked to go to that screen, and Xcode showed 'Could not cast value of type 'DGCharts.PieChartData' (0x102cbe210) to 'Charts.PieChartData' (0x1013d0338). llvm'
DGCharts Environment
DGCharts version/Branch/Commit Number: 5.0.0/Master/e516b04 Xcode version: 15.0.1 Swift version: 4 Platform(s) running DGCharts: iOS iPhone 14 Max macOS version running Xcode: Sonoma 14.1.1
Demo Project
ℹ https://github.com/caldwbr/Bizzy-Books-iOS/tree/master.