Charts icon indicating copy to clipboard operation
Charts copied to clipboard

Can't compile DGCharts

Open getlighty opened this issue 1 year ago • 14 comments

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

getlighty avatar Nov 06 '23 17:11 getlighty

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

drewster99 avatar Nov 08 '23 17:11 drewster99

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

christianYoopies avatar Nov 30 '23 13:11 christianYoopies

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: @.***>

getlighty avatar Nov 30 '23 16:11 getlighty

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.

Vakavadim avatar Dec 26 '23 15:12 Vakavadim

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'

jbird84 avatar Jan 21 '24 17:01 jbird84

Same error with SPM

batuhanaltun avatar Feb 24 '24 20:02 batuhanaltun

Same error, only with SPM

felipe-nipper avatar Mar 05 '24 17:03 felipe-nipper

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

RyoichiroNagami avatar Mar 07 '24 09:03 RyoichiroNagami

Same error with SPM 5.0.0 ~ 5.1.0

dslee02 avatar Mar 15 '24 01:03 dslee02

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

pmairoldi avatar Mar 15 '24 11:03 pmairoldi

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.

RyoichiroNagami avatar Mar 15 '24 12:03 RyoichiroNagami

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?

theGrains avatar Mar 27 '24 01:03 theGrains

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

yiweiwoshiniya avatar Mar 28 '24 06:03 yiweiwoshiniya

Any fix for this?

jbird84 avatar May 20 '24 14:05 jbird84