Skip to content
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

Error importing module after SPM install #4547

Closed
sjdevlin opened this issue Dec 31, 2020 · 3 comments
Closed

Error importing module after SPM install #4547

sjdevlin opened this issue Dec 31, 2020 · 3 comments

Comments

@sjdevlin
Copy link

sjdevlin commented Dec 31, 2020

  • [X ] I've read, understood, and done my best to follow the [*CONTRIBUTING guidelines]
  • [ X] ## What did you do?

I added Charts to my xcode project using the SPM. This installed correctly and the dependency appears to be correct in the config screens. Then tried to add the library to the ViewController.swift file in my empty project with "import Charts"

What did you expect to happen?

I expected to be able to then import the Charts library and start referencing its structs and classes. note this is not an issue with my xcode config as I have successfully added other swift packages in exactly the same way and then was able to import their libraries

What happened instead?

Immediately get Xcode build error "no such module Charts"

Charts Environment

**Charts version/Branch/Commit Number: 3.6
**Xcode version: Version 12.2 (12B45b)
**Swift version: 5.2
**Platform(s) running Charts: OSX
**macOS version running Xcode: 11.1

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

This does not appear to be related to my project code. I replicate the same error if I create a brand new iOS App project, which is completely empty.

@andyli-agi
Copy link

I could resolve this issue by "install from the master branch instead of the release version 4.0.0".
Also, select install product "Charts" into your Target. Do not select "ChartDynamics".
Happy coding!

@jjatie
Copy link
Collaborator

jjatie commented Feb 9, 2021

#4553 Should resolve this

@jjatie jjatie closed this as completed Feb 9, 2021
@sjdevlin
Copy link
Author

sjdevlin commented Feb 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants