首页 > 解决方案 > 项目无法在 XCode10.3 中构建,Apple match-o 链接器错误与 swift 库

问题描述

我有一个用 Swift 编写的 iOS 项目。该项目在 XCode 9.x 中构建并运行良好,但是当我尝试使用 XCode 10.3 构建它时,构建失败,并显示以下警告/错误:

ld: warning: Could not find auto-linked library 'swiftObjectiveC'
ld: warning: Could not find auto-linked library 'swiftCore'
ld: warning: Could not find auto-linked library 'swiftQuartzCore'
ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find auto-linked library 'swiftFoundation'
ld: warning: Could not find auto-linked library 'swiftsimd'
ld: warning: Could not find auto-linked library 'swiftMetal'
ld: warning: Could not find auto-linked library 'swiftDarwin'
ld: warning: Could not find auto-linked library 'swiftUIKit'
ld: warning: Could not find auto-linked library 'swiftCoreData'
ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find auto-linked library 'swiftDispatch'
ld: warning: Could not find auto-linked library 'swiftAVFoundation'
ld: warning: Could not find auto-linked library 'swiftCoreMedia'
ld: warning: Could not find auto-linked library 'swiftCoreAudio'
ld: warning: Could not find auto-linked library 'swiftCoreImage'
ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport'

搜索了一些解决方案,但这一切都发生在使用 Swift Pods 的 Obj-C 项目中。虽然我的项目是 Swift。有没有人对此有任何解决方案,以便我可以正确构建项目?

标签: iosswiftxcode10.3

解决方案


推荐阅读