Updated to new version of Charts on an iOS 12 project by running pod update in terminal
no errorrs


Charts version/Branch/Commit Number:
Xcode version: 10
Swift version: 4.1
Platform(s) running Charts: 12
macOS version running Xcode:
ℹ Please link to or upload a project we can download that reproduces the issue.
Me too
在pod 添加 试试
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'Charts'
config.build_settings['SWIFT_VERSION'] = '4.2'
else
config.build_settings['SWIFT_VERSION'] = '4.1'
end
end
end
end
在pod 添加
post_install do |installer|
installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if target.name == 'Charts' config.build_settings['SWIFT_VERSION'] = '4.2' else config.build_settings['SWIFT_VERSION'] = '4.1' end end endend
Where is this code placed?

Please try this version:https://github.com/danielgindi/Charts/tree/4.0.0
@cythb stop asking people to try 4.0 branch. IT'S NOT FOR PUBLIC. Next time I saw you post like this, I will delete it.
Please note, we try to make sure master branch always work with latest Xcode and Swift; if you plan to upgrade your EVERY swift library to 4.2, you can take the new code. Otherwise, stick to old Chart library.
The new commits for Swift 4.2 will not work with lower versions.
@srn214 , @muzoman I had encounter same issue, thanks for solution 👍 , Could you please explain a bit more. Is this is setting swift version in build setting to 4.2 but why its working. Any help appreciated.
i just correct the code with
forMode: RunLoop.Mode.common
Most helpful comment