ChartsOrg / Charts

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

Not able to archive because 'No such file or directory 'PackageFrameworks/DGChartsDynamic.framework/DGChartsDynamic'' #5162

Open monishchaudhari opened 3 months ago

monishchaudhari commented 3 months ago

What did you do?

ℹ I have installed the library using Swift Package Manager and archive the project.

What did you expect to happen?

ℹ It should get compiled successfully and build the app.

What happened instead?

ℹ It failed to build and giving me an error - No such file or directory: '/Users/monish/Library/Developer/Xcode/DerivedData/AppName/Build/Products/Debug-iphoneos/PackageFrameworks/DGChartsDynamic.framework/DGChartsDynamic' .

DGCharts Environment

DGCharts version/Branch/Commit Number: 5.1.0 Xcode version: 15.2 (15C500b) Swift version: 5 Platform(s) running DGCharts: iOS macOS version running Xcode: 14.1 (23B74)

Demo Project

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

gabors commented 3 months ago

@monishchaudhari when using the dynamic framework you may need to select "Embed & Sign" in your target where DGChartsDynamic is used

muneebjanjua commented 2 months ago

Getting same error. Was there any resolution to this? Also tried "Embed & Sign" as suggested here.

TheikChan commented 1 month ago

When I tried removing the Charts package and re-adding it without selecting the DGCharts Dynamic package, it worked.