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 build in big project using cocoapods #1894

Closed
peterlondon1 opened this issue Nov 30, 2016 · 3 comments
Closed

Cannot build in big project using cocoapods #1894

peterlondon1 opened this issue Nov 30, 2016 · 3 comments

Comments

@peterlondon1
Copy link

I can use Charts in a couple of projects, but trying to add it to a large project I get over 3,000 (!) compile errors

The first error is in AnimatedMoveViewJob.swift: "Expressions are not allowed at the top level"

Does anybody recognise this?

Are there are potential conflicts with other pods that might cause this?

Using pod 'Charts', '~> 3.0' platform :ios, '9.3'

chartserrors

Xcode 8.1

@pmairoldi
Copy link
Collaborator

If you can use it in other projects then it is probably a cocoapods issue or an issue with that specific project.

@peterlondon1
Copy link
Author

It turns out I was trying to add the latest version of Charts (Swift 3) to a project that was still in Swift 2.3. Duh!

@pmairoldi
Copy link
Collaborator

Glad you found the problem!

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