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

I can't run this demo! #1516

Closed
longdw opened this issue Sep 21, 2016 · 4 comments
Closed

I can't run this demo! #1516

longdw opened this issue Sep 21, 2016 · 4 comments

Comments

@longdw
Copy link

longdw commented Sep 21, 2016

  1. Well,I have downloaded the master code,but I can't run the ChartsDemo.When I build this project,it appears errors such as can't find Realm.

2.Looking at following codes,

NSMutableArray *xVals = [[NSMutableArray alloc] init];
    for (int i = 0; i < 12; i++)
    {
        [xVals addObject:[NSString stringWithFormat:@"%d月", (i + 1)]];
    }

    NSMutableArray *yVals1 = [[NSMutableArray alloc] init];
    NSMutableArray *yVals2 = [[NSMutableArray alloc] init];

    int i = 0;
    for (ChartContractCellViewModel *cellVc in array) {

        [yVals1 addObject:[[BarChartDataEntry alloc] initWithValue:cellVc.thisData xIndex:i]];
        [yVals2 addObject:[[BarChartDataEntry alloc] initWithValue:cellVc.lastData xIndex:i]];

        i++;
    }

Another question is that BarChartDataEntry's method has been changed in the new version,and I can't set object like initWithValue:object,can set double only.

@longdw
Copy link
Author

longdw commented Sep 21, 2016

I solved the first question when I delete all of Relam codes.Please help me to solve the second.

@pmairoldi
Copy link
Collaborator

If you carefully read the ReadMe it says you have to run carthage checkout for realm to work

@liuxuan30
Copy link
Member

@petester42 guess we have to put this notice as larger as we can people don't read README, don't search old issues.. just ask where something breaks :)

@pmairoldi
Copy link
Collaborator

Ya... I could add a prebuild script that checks you have run carthage and if you havent it will run the command for you. Or maybe use carthage to checkout submodules but I dont like that.

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