DGCharts EXC_BAD_ACCESS (code=2, address=0x12a113e30)
Asked Answered
W

1

5

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.

Wincer answered 6/7, 2023 at 6:58 Comment(2)
Is there an error message in Console when it crashes?Lesson
There is no any error console.Wincer
L
12

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

Lujan answered 24/7, 2023 at 9:15 Comment(2)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Visit
+1, you saved my life bro, thank you so much. Such a stupid thing to be updated manually instead of Automatic by XCODE.Ventriloquism

© 2022 - 2024 — McMap. All rights reserved.