-
-
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
ChartAnimationEasing.swift file getting compiler error error on Xcode14-beta #4835
Comments
The issue here isn't with charts. My guess is that it's this line: |
Above function is part of
Suggestion passes compiler checks.
|
hey people, sorry for late reply, yesterday we tried new Xcode14 beta and there was an error which I described it already. After that I separate all of the items as a variable, it worked and successfully run my project into Xcode 14. I achieved it with a so simple way with
but with a single line of which @McSims-Ubi described we can handle it. |
Hello guys, again I just create a pull request you can see here -> #4836 Thanks for comments @richardpineo @McSims-Ubi |
Weirdly, replacing either instance of As noted in #4838, adding Charts as a Swift Package instead of Cocoapod, or changing the closure declaration to a |
Same error with Xcode 14 beta 2 |
pr has open and needs to approval for the workflow |
People, the Charts library seems not to support beta as they say and you can see in the PR,
|
建议把最后return代码分开,swift不建议此操作通过一行解决 |
Seems to be fixed in Xcode 14 beta 3. |
Add double mark for compiler check related with issue #4835
* master: (35 commits) fix ios tests fix ios tests fix tvos tests udpate ci update ci update ci update readme update ci update ci Release 4.1 fix 'makeIterator()' on 'Collection' requires the types to be equivalent Fix yOffset documentation typo Update README.md Fix warnings Fixes protocol implementation when compiled with Swift 5.7 Fix navigation bar transparent issue Update ChartDataSet.swift Add double mark for compiler check related with issue ChartsOrg#4835 used index APIs instead of raw integers return last index for every rounding ...
* commit '203700608a6e956e591e7387d77423fa3fea6947': (35 commits) fix ios tests fix ios tests fix tvos tests udpate ci update ci update ci update readme update ci update ci Release 4.1 fix 'makeIterator()' on 'Collection' requires the types to be equivalent Fix yOffset documentation typo Update README.md Fix warnings Fixes protocol implementation when compiled with Swift 5.7 Fix navigation bar transparent issue Update ChartDataSet.swift Add double mark for compiler check related with issue ChartsOrg#4835 used index APIs instead of raw integers return last index for every rounding ... # Conflicts: # Package.swift
* 'master' of github.com:zwneng/Charts: (22 commits) fix ios tests fix ios tests fix tvos tests udpate ci update ci update ci update readme update ci update ci Release 4.1 fix 'makeIterator()' on 'Collection' requires the types to be equivalent Fix yOffset documentation typo Update README.md Fix warnings Fixes protocol implementation when compiled with Swift 5.7 Fix navigation bar transparent issue Update ChartDataSet.swift Add double mark for compiler check related with issue ChartsOrg#4835 used index APIs instead of raw integers return last index for every rounding ...
To break up the expression into distinct sub-expressions, you can try separating out each part of the calculation into its own intermediate variable. Here is one way you could do this: internal static let EaseOutBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in |
Thanks a lot it worked. Here is the code if anyone wants to refer. Thank You. let multiplication = position * position |
* master: (22 commits) fix ios tests fix ios tests fix tvos tests udpate ci update ci update ci update readme update ci update ci Release 4.1 fix 'makeIterator()' on 'Collection' requires the types to be equivalent Fix yOffset documentation typo Update README.md Fix warnings Fixes protocol implementation when compiled with Swift 5.7 Fix navigation bar transparent issue Update ChartDataSet.swift Add double mark for compiler check related with issue ChartsOrg#4835 used index APIs instead of raw integers return last index for every rounding ... # Conflicts: # Source/Charts/Data/Implementations/Standard/ChartDataSet.swift
What did you do?
I tried to run my application with Xcode 14 Beta and in Charts pod ChartAnimationEasing.swift file there's an error with this function
The error says that
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
. Is there anything I can do with it ?I expect to run my application without any error however the Chart file getting error that relational with type-checking
Charts Environment
My podfile includes Charts like default
pod 'Charts'
Charts version/Branch/Commit Number:
**Xcode version: Version 14.0 beta (14A5228q)
**Swift version: swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
Platform(s) running Charts: Xcode 14.0 Beta as I described, tried to run into multiple simulators and real devices
macOS version running Xcode: MacOS Monterey 12.4 (21F79)
CommandLineTool: Xcode14 14A5228q
The text was updated successfully, but these errors were encountered: