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

Compilation errors with Swift 4.1 #3596

Closed
Mohamed3amer opened this issue Aug 3, 2018 · 4 comments
Closed

Compilation errors with Swift 4.1 #3596

Mohamed3amer opened this issue Aug 3, 2018 · 4 comments

Comments

@Mohamed3amer
Copy link

Mohamed3amer commented Aug 3, 2018

What did you do?

ℹ Trying to use Charts on xCode 9.4.1 and Swift 4.1

What did you expect to happen?

ℹ Building without errors

What happened instead?

ℹ Received a lot of compilation errors, check screenshot:
screenshot

  • Cannot use instance member '_viewPortHandler' within property initializer; property initializers run before 'self' is available

Charts Environment

Charts version/Branch/Commit Number: pod 'Charts'
Xcode version: 9.4.1
Swift version: 4.1
Platform(s) running Charts: iOS
macOS version running Xcode: High Sierra 10.13.5

@liuxuan30
Copy link
Member

liuxuan30 commented Aug 6, 2018

can you try to clean and rebuild? My side is fine. Or ask on stack overflow.

Be sure you are checking out 3.1.1 release.

  • 3.1.1 (2018-04-03 01:22:23 UTC)

@Mohamed3amer
Copy link
Author

Why I should ask on stackoverflow not here ?
And why did you close the issue before I confirm that is working with me ? BTW still not working!

@liuxuan30
Copy link
Member

closing does not mean we won't update. It's just a way to control the real issues. Pod issue usually doesn't count as it's fine on my side.

That's why we ask you to stack overflow: 1 more people to help; 2 it sounds like a pod setup issue rather than Charts.

And from what I know that, you are the only very few people complaining pods not working. So I'd assume it's your env problem. And we have no idea what's the reason and how to fix it.

@yaalisri
Copy link

yaalisri commented Aug 28, 2018

@Mohamed3amer Even i am facing the same issue. I just opened my project using Xcode 9.4.1 and used pod update to update all pods. This installed the recent version of Charts 3.1.1 to my project. After this installation i am getting lot of compilation errors. If i don't update the version, the older version is 3.0.2, there is no errors but i am getting lot of compiler warnings including deprecations.

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