Charts icon indicating copy to clipboard operation
Charts copied to clipboard

No such module 'Algorithms' when installed with Swift Package Manager

Open Granluke opened this issue 1 year ago • 5 comments

What did you do?

Tried to implement Charts with SPM and updated from version 3.6 to 4.1

What did you expect to happen?

No errors while compiling

What happened instead?

Xcode throws an error while compiling in ChartDataSet, with: No such module 'Algorithms' When I install that package from the package manager, the problem still exists.

Charts Environment

**Charts version/Branch/Commit Number: 4.1 **Xcode version: 14.0 **Swift version: 5 **Platform(s) running Charts: iOS **macOS version running Xcode: 12.5.1

Granluke avatar Sep 15 '22 17:09 Granluke

Including the package from branch and not the specific version 4.1.0 fixed it for me (don't know why though...)

Granluke avatar Sep 15 '22 17:09 Granluke

Facing same issue... above solution didnt work

Kedar-27 avatar Sep 19 '22 15:09 Kedar-27

I have this issue as well on Xcode 14.0 using v4.1.0, and also using master. In both cases swift-algorithms v1.0 clearly shows up in the packages list. The build error is against ChartDataSet.swift: No such module 'Algorithms'

Adding the framework by dragging and dropping Charts.xcodeproj into the same project (after remove the Charts package dependency) and then adding the framework to the target as described in the README seems to have worked, however.

image image

roberthartman avatar Oct 17 '22 16:10 roberthartman

This solution worked for me: https://github.com/danielgindi/Charts/issues/4646 Delete the Charts dependency and re-add it, but only select the Charts package product.

dljones614 avatar Oct 21 '22 15:10 dljones614

This solution worked for me: #4646 Delete the Charts dependency and re-add it, but only select the Charts package product.

I tried your solution, but I still got No such module 'RangeReplaceableCollectionCharts'

alisonqiu avatar Jan 06 '23 01:01 alisonqiu

Closing since it seems resolved.

pmairoldi avatar Mar 21 '23 02:03 pmairoldi