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

Cannot find "@import Charts;" in -Swift.h, I can only @import Charts in OC files, anything I missed? #4021

Closed
1 task
Natai opened this issue Jun 11, 2019 · 3 comments

Comments

@Natai
Copy link

Natai commented Jun 11, 2019

ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for
bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

ℹ I dragged the Charts.xcodeproj to my project as the tutorial

What did you expect to happen?

ℹ generate "@import Charts;" in -Swift.h automatically

What happened instead?

ℹ not have these code:

@import Charts;
@import CoreGraphics;
@import ObjectiveC;
@import UIKit;

Charts Environment

Version 3.3.0
Version 10.2.1
Swift 5
iOS
10.14.5

Demo Project

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

@liuxuan30
Copy link
Member

refer our chart demos.

@Natai
Copy link
Author

Natai commented Jun 12, 2019

refer our chart demos.

I sure referred the demo, but these Xcode configurations are not easy to be found out. so please give me some information...

what I have done:

  1. Drag the Charts.xcodeproj/scripts/Source/Tests file to my project folder
  2. Add the Charts.xcodeproj to my project
  3. In target's settings, hit the "+" under the "Embedded Binaries" section, and select the Charts.framework
  4. import "MyProject-Swift.h"

@liuxuan30
Copy link
Member

yep, seems everything is fine. If you still don't know how to fix, time to ask on stack overflow. It's beyond our scope.

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

2 participants