ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.48k stars 5.98k forks source link

Can't compile DGCharts #5121

Open getlighty opened 9 months ago

getlighty commented 9 months ago

ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

I upgraded from Charts to DGCharts

What did you expect to happen?

To compile just like before

What happened instead?

clang: error: no such file or directory: '/Users/xxxxxxxxxxx/Library/Developer/Xcode/DerivedData/xxxxxxx-guzwglumrvsdijanuovktgkqhwqn/Build/Products/Debug-iphoneos/PackageFrameworks/DGChartsDynamic.framework/DGChartsDynamic')

DGCharts Environment

DGCharts version/Branch/Commit Number: 5.0.0 Xcode version: 15.0.1 Swift version: 5.9 Platform(s) running DGCharts: ARM64 macOS version running Xcode: Sonoma

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

drewster99 commented 9 months ago

In upgrading from Charts to DGCharts, if you didn't do it this way, you should: 1- Remove the Charts framework from the Frameworks, Libraries, and Embedded Content section of the General tab 2- Add DGCharts framework to the same place 3- Quit xcode 4- Delete your DerivedData folder (rm -rf $HOME/Library/Developer/Xcode/DerivedData) 5- Restart Xcode 6- Open and build the project

christianYoopies commented 8 months ago

I newly integrated via SPM the library and still have the same issue

getlighty commented 8 months ago

I installed it via Carthage and it worked.

On Thu, 30 Nov 2023, 14:47 christianYoopies, @.***> wrote:

I newly integrated the library and still have the same issue

— Reply to this email directly, view it on GitHub https://github.com/danielgindi/Charts/issues/5121#issuecomment-1833816796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLUNZCE76733ODQURWIXMLYHCFA3AVCNFSM6AAAAAA67242MWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTHAYTMNZZGY . You are receiving this because you authored the thread.Message ID: @.***>

Vakavadim commented 8 months ago

Same thing. It's doesn't work with SPM. Аs Soon as I try to achieve project on physical device i have get this error. I has tried to add local package, same result.

jbird84 commented 7 months ago

Still an issue I can run on a simulator but not on a real device. I installed with SPM. Xcode: 15.2 iphone 12: 17.2.1 also tried inphone 13: 17.2.1

I am getting this error: clang: error: no such file or directory: '/Users/kinneykare/Library/Developer/Xcode/DerivedData/DiscGolfSearch/Build/Products/Debug-iphoneos/PackageFrameworks/DGChartsDynamic.framework/DGChartsDynamic'

batuhanaltun commented 6 months ago

Same error with SPM

felipe-nipper commented 5 months ago

Same error, only with SPM

RyoichiroNagami commented 5 months ago

Same error with SPM

I found a reference article that may be the cause of the problem of not being able to build on the actual machine with the library.

It seems that it is not possible to distribute nested frameworks on SPM.

https://stackoverflow.com/questions/76929619/code-signing-issue-with-spm-dynamic-library

dslee02 commented 5 months ago

Same error with SPM 5.0.0 ~ 5.1.0

pmairoldi commented 5 months ago

Is everyone here using it in a nested context like @RyoichiroNagami has mentioned?

RyoichiroNagami commented 5 months ago

When I installed the Charts library from SPM, DGChartsDynamic was listed in Embed Frameworks. *See attached image.

スクリーンショット 2024-03-15 21 40 15

As a test, I excluded DGCharts Dynamic from the project from SPM and was able to build it on the actual iPhone device!

スクリーンショット 2024-03-15 21 58 32

However, when I created a table using the Chart library, an error occurred on the library side

スクリーンショット 2024-03-15 22 02 02 スクリーンショット 2024-03-15 22 07 51

We are currently in the process of migrating cocoapods → SPM. This code worked correctly when installed with cocoapods.

theGrains commented 4 months ago

Has anyone figured out a solution to this issue? If I need to use DGCharts and run on a physical device, should I uninstall from SPM and reinstall with cocoapods?

yiweiwoshiniya commented 4 months ago

@RyoichiroNagami you mean use cocoapods ok on the actual machine.

jbird84 commented 3 months ago

Any fix for this?