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

How to run in Xcode 9 (beta) #2520

Closed
xoniq opened this issue Jun 14, 2017 · 9 comments
Closed

How to run in Xcode 9 (beta) #2520

xoniq opened this issue Jun 14, 2017 · 9 comments

Comments

@xoniq
Copy link

xoniq commented Jun 14, 2017

I have the target iOS version for my project set-up to iOS 9.0.

But I cannot build it with the charts (installed using CocoaPods), it gives errors, but thought I read somewhere it should be compatible with former Swift versions.

@surayashivji
Copy link

+1

@liuxuan30
Copy link
Member

I am not sure. Have you change to swift 3.0 compatibility in xcode 9? I can build and run the ChartsDemo without any changes.

@liuxuan30 liuxuan30 changed the title How to run in Xtive 9 (beta) How to run in Xcode 9 (beta) Jun 20, 2017
@xoniq
Copy link
Author

xoniq commented Jun 20, 2017

What's the proper way of doing this? Never used the compatibility mode before.

@liuxuan30
Copy link
Member

liuxuan30 commented Jun 21, 2017

In Xcode 9 build settings,
image
But I am not sure if this is the cause. Honestly I just compile and run without any errors except warnings.
You should post your error messages, not just saying "it gives errors"

@xoniq
Copy link
Author

xoniq commented Jun 21, 2017

Yes, that was the solution!
When selecting the 'Pods' project, select the 'Charts' target and there I set the Swift Compiler to 3.2. Now the errors are gone.

@xoniq xoniq closed this as completed Jun 21, 2017
@macro-dadt
Copy link

macro-dadt commented Dec 11, 2017

my 'Charts' target already set to 3.2 Swift Compiler to 3.2 initially. Then i select the 'Pods' project, select the 'Charts' target and there I set the Swift Compiler to 4.0. Build again and errors gone.
Im using xcode 9.2

@wonder2011
Copy link

@liuxuan30 Please help. When i add this pod, my project not compoling. I change the Swift version to 3.2, clean, recompile, nothing. I try Swift 3.2, crean, recompile, nothing. I'm using XCode 9.2 targeting iOS 11.0. Help please !

@macro-dadt
Copy link

macro-dadt commented Jun 28, 2018

@wonder2011 add to your pod file
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if ['Charts'].include? target.name config.build_settings['SWIFT_VERSION'] = '4.0' end end end end

@wonder2011
Copy link

@macro-dadt thanks a lot, but i'm updating to XCode 9.4.1. This lib compile on this version with no problems?

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

5 participants