DGCharts出现EXC_BAD_ACCESS(代码=2,地址=0x12a113e30)。

huangapple go评论80阅读模式
英文:

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

问题

之前这个代码库被导入为Charts,但在他们的库更新后,它被改成了DGCharts。我修改了pod文件后,成功安装,但在访问图表时应用程序崩溃。之前它正常工作。唯一的变化是pod名称(Charts -> DGCharts)。

DGCharts出现EXC_BAD_ACCESS(代码=2,地址=0x12a113e30)。

DGCharts出现EXC_BAD_ACCESS(代码=2,地址=0x12a113e30)。

请注意,我正在使用M1 MacBook。

另外,我尝试导入库

pod 'DGCharts' 也是一样。但结果是一样的。

英文:

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).

DGCharts出现EXC_BAD_ACCESS(代码=2,地址=0x12a113e30)。

DGCharts出现EXC_BAD_ACCESS(代码=2,地址=0x12a113e30)。

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.

答案1

得分: 4

遇到了相同的问题。原来在我的Storyboard中,PieChartView的模块名称仍然是旧的库名称。只需确保PieChartView的模块设置为"DGCharts"。

图片:之前之后

英文:

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

huangapple
  • 本文由 发表于 2023年7月6日 14:58:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76626212.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定