-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such module 'Algorithms' #4611
Comments
Same issue. Linking Charts with Algorithms doesn't help. |
4.0.0 does not support the pods, only use Swift Package. Because the latest version depend on Algorithms, Algorithms is Apple's open source library, unfortunately, Algorithms can only be installed through Swift Package. |
Thanks for the info, @Mr-Persona! |
has anyone found a solution to this yet? i'm using Carthage and running into the same issue. |
@rodgutierrez yes, import it as Swift Package instead of a pod. |
@leo150 Hey, I have installed via SPM still it's showing same error: |
answered in #4646 |
I forked the repo and cocoapod to my project, but always having "no such module 'algorithms' ", even I added Algorithms package. But no problem with original repo. Anyone has solution? Thanks~ |
I think in your app's project you need to go to File > Swift Packages and try some of the menu items there. When you're done you should see the swift packages showing up on the bottom of your project file listing. After this you should be able to build. I am having a problem after this though, I can't build using xcodebuild anymore. In terms of this project maintenance you guys should really make some notes on the front page of the project like:
This kind of thing is a bloody nightmare for those who do not use swift. |
Xcode itself can build a release version of my app, but using xcodebuild at the commandline to archive, there has to be some extra magic, I get this error, even after I can see xcodebuild build the swiftmodule, it can't find it.
Generates this eventually
Actually I get this while trying to archive with Xcode too. It is definitely not a straightforward migration from Cocoapods last version to 4.0.0 without pods... |
for me works that |
One solution for this? |
Please revert #4497
|
Yeah as the last day of 2021, there is still no solution. I came across CocoaPods/CocoaPods#10049 not sure if this will be a workaround. But I have no time to look deeper.. anyone ? thanks |
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
Version 4.0.2 now available on cocoapods |
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
1 similar comment
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
Works for me as well, thanks |
I'm working on migrating a project from Cocoapods to SPM, unfortunately Charts remains the only package that prevents the completion of this task. I've tried all the differents solutions given on this thread to no avail. I even tried previous versions of Charts but it only caused different problems. Cleaning build folder, cleaning Derived Data, even restarting my machine, nothing seems to fix it. Is there a solution to this issue ? |
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
I confirm I have the same issue using SPM. I installed first Charts without swift-algorithms and swift-numerics, got the issue. After looking at this thread, I installed swift-algorithms and swift-numerics, deleted Charts, installed Charts again. I got the same compile time error No such module 'Algorithms' |
|
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
it doesn't work for me |
I chose only Charts and no ChartsDynamic, now I get this error, Cannot find type 'IAxisValueFormatter' in scope. |
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
Same issue as #4986. There was a name change in Charts 4 for interfaces. |
I updated Charts today. An error occurred while compiling the project, error tip is no such module 'Algorithms'. I installed Charts through pods.
I next install swift-algorithms by Swift Page Manager, but still can't solve the problem.
Charts version: 4.0.0
The text was updated successfully, but these errors were encountered: