react-native-charts-wrapper icon indicating copy to clipboard operation
react-native-charts-wrapper copied to clipboard

Build failed with Xcode 12.5

Open vitali-kastsiuk opened this issue 4 years ago • 11 comments
trafficstars

react-native 0.63.4 xcode 12.5 react-native-charts-wrapper 0.5.7 (or master branch) underlying pod Charts 3.3.0 (or 3.6.0)

Undefined symbols for architecture x86_64: “Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)“, referenced from: generic specialization <serialized, Swift._ArrayBuffer<Swift.Int8>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libCharts.a(ChartUtils.o)

vitali-kastsiuk avatar Apr 28 '21 17:04 vitali-kastsiuk

I have the exact same error with react-native 0.64.0. Tried with both Charts 3.3.0 and 3.6.0 and both 0.5.7 and master branch without success. Does not matter if the target is x86_64 or arm64.

Edit: To clarify to others, this is a linker error and not a compiler error (and might actually be a problem with the Charts library and not this repo). My error:

Undefined symbols for architecture arm64:
  "Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)", referenced from:
      generic specialization <serialized, Swift._ArrayBuffer<Swift.Int8>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libCharts.a(ChartUtils.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

mateogianolio avatar Apr 28 '21 17:04 mateogianolio

I reported this issue there as well: https://github.com/danielgindi/Charts/issues/4636.

smadan avatar Apr 28 '21 21:04 smadan

same issue

Zestpond avatar Apr 29 '21 02:04 Zestpond

Found a solution: https://github.com/Iterable/react-native-sdk/issues/86#issuecomment-744829518

mateogianolio avatar Apr 29 '21 11:04 mateogianolio

@mateogianolio I'm surprised the solution is not working for everyone. reproducing the steps just caused more errors on my end

For those who are running to this issue, what is your short term solution? This library plays a major role in my app, and I'm a bit worried seeing the last update was several months ago.

my-name-is-nheo avatar Apr 29 '21 17:04 my-name-is-nheo

Yeah, unfortunately I have no idea why it works for me and not for others.

mateogianolio avatar Apr 29 '21 18:04 mateogianolio

@mateogianolio @my-name-is-nheo it works for me too

vitali-kastsiuk avatar Apr 29 '21 18:04 vitali-kastsiuk

I figured out why. I needed to set ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to YES. Details here: https://github.com/facebook/react-native/issues/31179#issuecomment-829536845.

smadan avatar Apr 29 '21 19:04 smadan

I am facing the same issue on Xcode 12.5

iranaahsanali avatar May 10 '21 07:05 iranaahsanali

is there a solution, we are using Xcode 12.5 and we have react native 64.1 everything else is working great. Charts needs to be upgraded. Has anybody done the upgrade in their fork?

varunwyest avatar May 16 '21 23:05 varunwyest

is there a solution, we are using Xcode 12.5 and we have react native 64.1 everything else is working great. Charts needs to be upgraded. Has anybody done the upgrade in their fork?

https://github.com/facebook/react-native/issues/31179#issuecomment-829536845 Check the third that is the solution

viet97 avatar Jul 05 '21 13:07 viet97