ios - 项目无法在 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。有没有人对此有任何解决方案,以便我可以正确构建项目?
解决方案
推荐阅读
- couchdb - CouchDB 2.2 中的自动压缩
- python-3.x - 检查请求正文和标头
- javascript - 环回 | 用于加载数据的命令行参数
- spring-boot - Spring Boot 找不到 bean
- vb.net - 连接池真的能提高整体性能吗?
- javascript - ReactJS:动态添加标签和内容到 react-dom 并重新加载
- macos - 在 Applescript 中使用 sed 时,Sed“无效的命令代码 <”
- ruby - 使用 prometheus client_ruby 客户端报告队列大小
- html - 无法让 CSS 动画在 Shopify 中工作
- python - 有没有办法配置 UML 图在 PyCharm 中呈现方法(按名称)的方式?