Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift._ArrayBuffer._copyContents on Xcode

  "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 libAlamofire.a(NetworkReachabilityManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I upgrade Xcode 12.5 with ios 14.5 version. and I tried to excute my app... and I got an above problem... I don't know how to solve this problem. does anyone who solve this ???

like image 586
Taesol Kwon Avatar asked Apr 29 '21 06:04

Taesol Kwon


2 Answers

I had the same issue and got it resolved by removing references to $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) from our project.pbxproj file as mentioned in this comment: https://github.com/facebook/react-native/issues/31179#issuecomment-829536845. I would also run all the clean up commands suggested there.

like image 104
jfweitz Avatar answered Oct 31 '22 23:10

jfweitz


Deleting the text from project.pbxproj file is always too risky. We have an alternative solution

enter image description here

like image 39
Balagurubaran Avatar answered Oct 31 '22 22:10

Balagurubaran