Search code examples
iosswiftobjective-cchartsapple-m1

DGCharts EXC_BAD_ACCESS (code=2, address=0x12a113e30)


Previously this Repository was imported as Charts, but after their library updates, it was changed to DGCharts. After I change the pod file, it installed successfully but the app getting crashed while accessing the charts. previously it was working properly. The only change was the pod name (Charts -> DGCharts).

enter image description here

enter image description here

Note that I'm using M1 Macbook.

Also, I tried to import the library as

pod 'DGCharts' as well. but the result was the same.


Solution

  • I encountered the same issue. It turned out that the module name of the PieChartView in my Storyboard still was the old library name. Just make sure the PieChartView's Module is set to "DGCharts".

    Images: Before and After