-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Demo in Swift? #1548
Comments
You can start with this |
Yes, I started with that and got what I needed. However, now that I have updated to the latest version for Xcode 8. My project is all messed up :( |
But don't upgarde to Sierra till 10.12.1 released |
Anybody know when the version supporting swift 3/ Xcode 8 is going to be distributed with pods? |
When version 3.0 is finished. You can use it now by pointing your podfile to the master branch. |
@petester42 Thanks for the tip. I have it in the podfile like so: pod 'Charts', :git => 'https://github.com/danielgindi/Charts.git', :branch => 'master' Install goes great, i get version 3.0: The problem is when I build, Im getting a Dependency Analysis Error:
As well as the linker error and the script invocation error:
I think the no file or dir error is caused by the pod not being built because of the legacy swift syntax, but isn't the version 3.0 supposed to support Xcode8 / swift3 combo? Thanks again! |
You might need to use cocoapods version 1.1.0 for better Xcode 8 support. Try installing 1.1.0.rc.2 and make sure your project has the correct setting for swift 3 before running pod install. Or you can add a post install hook in your podfile to update the swift version. A quick search on Google will get you the hook. |
@petester42 Your instincts were correct. This was the process to get a successful build using Xcode8 / swift 3 combo: Step 1: install latest version of cocoapods
Step 2: set podfile entrypod 'Charts', :git => 'https://github.com/danielgindi/Charts.git', :branch => 'master' Step 3: set post install hook for compiler verisonpost_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end Step 4: Build and Rejoice |
I am working on putting together a basic demo for this configuration and some basic charts. |
@petester42 Trying to write a demo to close this issue, would you mind taking a quick peek at #1554 ? You might know the problem right away. |
OS X is swift demo. For other issues it's off topic so I am closing. |
@thexande thank god I found this! it helped a lot, using this project was a huge problem |
https://webappcodes.com/category/ios here is a demo in swift |
Is there a demo in Swift?
The text was updated successfully, but these errors were encountered: