react-native-share-menu icon indicating copy to clipboard operation
react-native-share-menu copied to clipboard

xcode compilation error: Showing Recent Errors Only Undefined symbol: Swift._ArrayBuffer._copyContents(initializing: ...

Open Larens94 opened this issue 2 years ago • 6 comments

Showing Recent Errors Only Undefined symbol: Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int) Schermata 2021-09-02 alle 14 20 50

Larens94 avatar Sep 02 '21 12:09 Larens94

I am getting this too :(

Jonovono avatar Sep 03 '21 19:09 Jonovono

I also had this issue and asked about it on the Swift forums. The cause is trying to link against an older Swift runtime while targeting a newer version of the OS. You should be able to just remove those LIBRARY_SEARCH_PATH entries entirely (or just leave $(inherited)) and that will fix the problem. This is a bug in the ReactNative template for iOS. As mentioned in the above Swift forums thread: You shouldn't need to add the toolchain library paths to LIBRARY_SEARCH_PATHS yourself, because Xcode will automatically include those libraries if your minimum deployment target is old enough to need them.

jayeshkarma100 avatar Sep 07 '21 10:09 jayeshkarma100

main issue with Xcode12.5 just a simple thing download Xcode 12.0.1 and work on it

jayeshkarma100 avatar Sep 16 '21 09:09 jayeshkarma100

@Larens94 check this https://github.com/meedan/react-native-share-menu/issues/153#issuecomment-931433632

anatooly avatar Oct 01 '21 07:10 anatooly

I also had this issue and asked about it on the Swift forums. The cause is trying to link against an older Swift runtime while targeting a newer version of the OS. You should be able to just remove those LIBRARY_SEARCH_PATH entries entirely (or just leave $(inherited)) and that will fix the problem. This is a bug in the ReactNative template for iOS. As mentioned in the above Swift forums thread: You shouldn't need to add the toolchain library paths to LIBRARY_SEARCH_PATHS yourself, because Xcode will automatically include those libraries if your minimum deployment target is old enough to need them.

@jayeskarma100 How does one go about removing the LIBRARY_SEARCH_PATHS as you mentioned?

ghost avatar Oct 12 '21 20:10 ghost

Here it is explained how to modify LIBRARY_SEARCH_PATHS: https://github.com/DataDog/dd-sdk-reactnative/issues/41#issuecomment-825766996

Worked great for me.

viktorRot avatar Feb 09 '22 01:02 viktorRot