wuxudong / react-native-charts-wrapper

a react native charts wrapper (support android & iOS)
2.43k stars 657 forks source link

Not able to compile code on Xcode 14 #894

Closed piashcse closed 1 year ago

piashcse commented 1 year ago

Please update iOS Charts into 4.1.0

Expected Behavior

iOS build should be success full

Actual Behavior

/ MARK: RangeReplaceableCollection extension ChartDataSet: RangeReplaceableCollection { public func append(_ newElement: Element) { calcMinMax(entry: newElement) entries.append(newElement) }

Screenshots

Screen Shot 2022-09-16 at 5 09 49 PM

Specifications

shahnewaz469 commented 1 year ago

Updating Charts to 4.1.0 will rise multiple issues. Because this library is not compatible with Chart v4. It's compatible with v3.

Liqiankun commented 1 year ago

Same issue.

simrab commented 1 year ago

same issue

abdulrafeh857 commented 1 year ago

same issue

mcarlos137 commented 1 year ago

same issue

FarmerBZH commented 1 year ago

Same issue.

macasfaj commented 1 year ago

This PR fixes the issue 100%

https://github.com/wuxudong/react-native-charts-wrapper/pull/892

FarmerBZH commented 1 year ago

This PR fixes the issue 100%

892

Thanks !

phamhieu1412 commented 1 year ago

This PR fixes the issue 100%

892

not ok please merge soon as for package

Blackoverlord24 commented 1 year ago

If anyone can't wait for a package, you can make a workaround.

  1. Download repo as zip for example.
  2. Install deprecated-react-native-prop-types package (I don't know why this package is needed, but this lib depends on it)
  3. Find react-native-charts-wrapper in your node_modules.
  4. Remove all data in this folder and replace from downloaded arch.
  5. In your Podfile change pod 'RNCharts', :path => '../node_modules/react-native-charts-wrapper' on pod 'react-native-charts-wrapper', :path => '../node_modules/react-native-charts-wrapper'
  6. Also change platform :ios version on 13 in the same file.
  7. Run pod install and build app.

maybe it's not the best solution but if you have to update the app asap (like I do) you can use this quick fix

wuxudong commented 1 year ago

Try v0.5.10, Thx.