Charts icon indicating copy to clipboard operation
Charts copied to clipboard

Charts doesn't work under Mac Catalyst

Open GiordanoVicoli opened this issue 2 years ago • 1 comments

Hi, I have an iOS application developed in Objective c where I use the Charts library. Until recently the application also worked in Catalyst mode without problems using Charts correctly. For some time now if I try to compile under Catalyst I get the following error: 'Charts/Charts-Swift.h' file not found. I am therefore forced not to use the Chart library under Catalyst but this is not acceptable. I don't remember when this happened but it must have been after some update. How can I solve the problem?

Thanks and regards, Giordano

GiordanoVicoli avatar Dec 22 '22 14:12 GiordanoVicoli

Probably naming conflicts with Swift native Charts library.

Renaming is a work in progress see: https://github.com/danielgindi/Charts/pull/5028

Meanwhile you can see workaround (works for me with Mac Catalyst) using CocoaPods here: https://github.com/xjki/Charts/commit/e7404598e2c5bd2f6f26ce2a4f095ac1be6f4bac

xjki avatar May 15 '23 12:05 xjki