本文主要是介绍Undefined symbols for architecture arm64: “Swift._ArrayBuffer._copyContents...“,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
error
Undefined symbols for architecture arm64: "Swift._ArrayBuffer._copyContents..."
解决方法
This requires you to remove both references to “(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)” from your project.pbxproj file. You need to have a Swift bridging header and also an empty swift file in your target. I had only the bridging header and not an actual Swift file, which used to work fine, but for some reason didn’t suffice any more. I explicitly added an empty Swift file, and that fixed all linking issues. It looks like adding that file simply helped set ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to YES. You could also try setting this directly.
移除位于 Library Search Paths 里面的 (TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
这篇关于Undefined symbols for architecture arm64: “Swift._ArrayBuffer._copyContents...“的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!