Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Failed to build Project in Xcode 14.0.1 with error of protocol 'RangeReplaceableCollection' #4949

Open
1 task done
jslabana24 opened this issue Oct 20, 2022 · 18 comments
Open
1 task done

Comments

@jslabana24
Copy link

jslabana24 commented Oct 20, 2022

What did you do?

installed pod 'Charts' and it's not building, showing an error
Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection'

ℹ Please replace this with what you did.
just install the latest version of the library (pod) and build the project

What did you expect to happen?

should successfully build the project.

ℹ Please replace this with what you expected to happen.
build project successfully.

What happened instead?

showing error Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection'

Charts Environment

Charts version/Branch/Commit Number: 3.6
Xcode version: 14.0.1
Swift version: iOS 16
Platform(s) running Charts: -
macOS version running Xcode: macOS Monterey v12.6

Screenshot 2022-10-20 at 9 54 54 PM

Screenshot 2022-10-20 at 9 55 18 PM

@trinhtran-markany
Copy link

trinhtran-markany commented Oct 22, 2022

Hi @jslabana24, I got the same issue. Have you have solutions yet?
Screen Shot 2022-10-22 at 19 32 07

@jslabana24
Copy link
Author

Hay @trinhtran-markany, There are no updates for this issue from my side will let you know for sure if I get any success on it.

@Pranoy1c
Copy link

Is there any update to this?

@Vasudevan-iOS
Copy link

any update ..?

@trinhtran-markany
Copy link

I do a workaround by SPM instead of using cocoapod.

@DeepSeaLemon
Copy link

image

@Dario-Gasquez
Copy link

As an alternative, updating to the latest release: 4.1.0, should also fix the issue. It did for me (with a couple of additional changes like replacing IAxisValueFormatter with AxisValueFormatter for example).

@NalineeSingh01
Copy link

Is there any update?

@nieyu
Copy link

nieyu commented Nov 11, 2022

image

public func replaceSubrange(_ subrange: Swift.Range, with newElements: C) where C :
Collection, ChartDataEntry == C.Element {
}

@lexuanquynh
Copy link

Is there any update?

@Dario-Gasquez
Copy link

Is there any update?

Updating to the latest release: 4.1.0, should fix the issue. It did for me (with a couple of additional changes like replacing IAxisValueFormatter with AxisValueFormatter for example).

@steviek
Copy link

steviek commented Dec 3, 2022

In Swift Package manager, I only seem to get version 3.6.0, even when removing and re-adding. Is 4.1.0 available in Swift Package Manager?

@Dario-Gasquez
Copy link

In Swift Package manager, I only seem to get version 3.6.0, even when removing and re-adding. Is 4.1.0 available in Swift Package Manager?

You should be able to by setting 4.0.0 as the next mayor version when adding the package:
adding-charts-as-sp

After that your project should look like this:
charts-4 1 0-added

@lexuanquynh
Copy link

lexuanquynh commented Dec 3, 2022

Screenshot 2022-12-04 at 12 00 50 AM

I removed the chart pod and moved it to the swift package and it is working. I don't think you need to spend any more time on this issue.
Keep it simple and focus on coding.

Screenshot 2022-12-04 at 12 02 07 AM

@Zhitu1234
Copy link

Screenshot 2022-12-04 at 12 00 50 AM

I removed the chart pod and moved it to the swift package and it is working. I don't think you need to spend any more time on this issue. Keep it simple and focus on coding.

Screenshot 2022-12-04 at 12 02 07 AM

it works,thank you

@HollyWallace
Copy link

I still have this problem. Using Charts 4.1.0, on Mac OS Ventura 13.1, Xcode 14.2. We use CocoaPods, not SPM for this project. Is there any plan to get this working?

@adincebic
Copy link

Same here`

@lfoliveir4
Copy link

Screenshot 2022-12-04 at 12 00 50 AM

I removed the chart pod and moved it to the swift package and it is working. I don't think you need to spend any more time on this issue. Keep it simple and focus on coding.

Screenshot 2022-12-04 at 12 02 07 AM

It's works form me! Thanks! ❤️

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests