ChartsOrg/Charts

Can't compile DGCharts

getlighty opened this issue · 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.

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

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

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.

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'

Same error with SPM

Same error, only with SPM

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

Same error with SPM 5.0.0 ~ 5.1.0

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

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.

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?

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