Charts
Charts copied to clipboard
No such module 'Algorithms' when installed with Swift Package Manager
- [X] I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.
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
Including the package from branch and not the specific version 4.1.0 fixed it for me (don't know why though...)
Facing same issue... above solution didnt work
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.
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.
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'
Closing since it seems resolved.