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

iOS 7 && Xcode 7.1.1 build not success, 'Charts' Module no found #560

Closed
TeehomHub opened this issue Nov 20, 2015 · 23 comments
Closed

iOS 7 && Xcode 7.1.1 build not success, 'Charts' Module no found #560

TeehomHub opened this issue Nov 20, 2015 · 23 comments

Comments

@TeehomHub
Copy link

iOS 7 && Xcode 7.1.1 build not success, 'Charts' Module no found

@danielgindi
Copy link
Collaborator

You should add the code to your project, not the framework. iOS 7 does not support dynamic frameworks.

@TeehomHub
Copy link
Author

I already add the code to my project

@danielgindi
Copy link
Collaborator

So there shouldn't be any reference to "module" Charts, as it is part of
your module, which is your project.

‏בתאריך יום שישי, 20 בנובמבר 2015, TeehomHub notifications@github.com כתב:

I already add the code to my project


Reply to this email directly or view it on GitHub
#560 (comment)
.

@TeehomHub
Copy link
Author

#if defined(__has_feature) && __has_feature(modules)
@import Charts;
@import CoreGraphics;
@import UIKit;
#endif

@danielgindi
Copy link
Collaborator

In which file do you see that reference?

‏בתאריך יום שישי, 20 בנובמבר 2015, TeehomHub notifications@github.com כתב:

#if defined(__has_feature) && __has_feature(modules)
@import https://github.com/import Charts;
@import https://github.com/import CoreGraphics;
@import https://github.com/import UIKit;
#endif


Reply to this email directly or view it on GitHub
#560 (comment)
.

@TeehomHub
Copy link
Author

I found [MyProjectName]-Swift have this
#if defined(__has_feature) && __has_feature(modules)
@import Charts;
@import CoreGraphics;
@import UIKit;
#endif

@danielgindi
Copy link
Collaborator

So it's in your files... Try to remove it. You don't need it unless you set
your minimum deployment target to 8.0 and import Charts as a Framework

‏בתאריך יום שישי, 20 בנובמבר 2015, TeehomHub notifications@github.com כתב:

I found [MyProjectName]-Swift have this

#if defined(__has_feature) && __has_feature(modules)
@import https://github.com/import Charts;
@import https://github.com/import CoreGraphics;
@import https://github.com/import UIKit;
#endif


Reply to this email directly or view it on GitHub
#560 (comment)
.

@TeehomHub
Copy link
Author

if i remove the @import Charts ,the BalloonMarker is error,Can't find BalloonMarker

@TeehomHub
Copy link
Author

the [MyProjectName]-Swift is copy your demo swift file,is right?

@danielgindi
Copy link
Collaborator

BalloonMarker is a part of the demo, not of the Charts framework. You can
copy it to your project safely :)

‏בתאריך יום שישי, 20 בנובמבר 2015, TeehomHub notifications@github.com כתב:

if i remove the @import https://github.com/import Charts ,the
BalloonMarker is error,Can't find BalloonMarker


Reply to this email directly or view it on GitHub
#560 (comment)
.

@TeehomHub
Copy link
Author

if i add the BalloonMarker, the BalloonMarker error in the swift file

import Foundation
import UIKit;
import Charts;///error....

@danielgindi
Copy link
Collaborator

Again, remove the import.

‏בתאריך יום שישי, 20 בנובמבר 2015, TeehomHub notifications@github.com כתב:

if i add the BalloonMarker, the BalloonMarker error in the swift file

import Foundation
import UIKit;
import Charts;///error....


Reply to this email directly or view it on GitHub
#560 (comment)
.

@TeehomHub
Copy link
Author

i remove the import Charts,than the [MyProjectName]-Swift is error ,
@interface BalloonMarker : ChartMarker //error ... can't found ChartMarker

@TeehomHub
Copy link
Author

can you write a sample for iOS 7

@liuxuan30
Copy link
Member

If you are targeting iOS 7, you should drag the whole Charts files into your project. Don't copy the balloon marker first. Properly set your build settings, like define modules, product name.. etc. If you are not sure, google it. Make sure you are good to compile, and able to create chart views.

Balloon marker is not part of Chart framework, it's just a simple sub class of chartMarker, so if you want to use it, simply copy it into your project, just like what you have done for the Charts files.

@TeehomHub
Copy link
Author

build iOS 7 && Xcode 7.1.1 is successful,but i did not use chart in the project.

@TeehomHub
Copy link
Author

could you success build in iOS 7&& Xcode 7.1.1 and can use it successfully?

@liuxuan30
Copy link
Member

Of cause, I need to support iOS 7. One thing at a step, don't mix up different issues.

@TeehomHub
Copy link
Author

ok,i have successful build in iOS 7 and can use it successfully

@davidcruzcs
Copy link

Can someone tell me how to compile in iOS 7. Which files should I copy. Which folder? What Build Phases or Embedded Libraries should I change? Thanks a lot!

@liuxuan30
Copy link
Member

drag all the swift source files(such as the classes folder) into your project. Just treat them as .h + .m combined files. Also you need to turn on swift settings in build settings (module name, embedded swift content, etc). Try google, there is a lot info

@TeehomHub
Copy link
Author

you can add new swift file in the project,and then would tips you add bridge file,and you comfier.And Then You go to Setting -> Objective-C Generated Interface Header Name ,and set the file as project'sName-Swift.h .And Than Your #Import project'sName-Swift.h at what you want use the Lib.

@TeehomHub
Copy link
Author

And your drag all swift into Project,in first.

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

4 participants