【发布时间】:2020-07-01 13:53:49
【问题描述】:
您好,我正在开发一个旧的 Objective-C 项目,它有 30 多个 pod 依赖项,全部用 Objective-C 编写。
我正在尝试添加一个 Swift pod,尤其是这个:
pod 'CSV.swift', '~> 2.4.3'
# ...
# other Objective-C pods ...
# ...
因为我想继续 Swift 的新发展。
但我不能让它工作。如果我添加 use_frameworks!,我会在 pod install 时收到错误:
The 'Pods-myProject' target has transitive dependencies that include static binaries: (/myProjectPath/Pods/ObjcPod/ObjcPod.framework)
如果我删除use_frameworks!,我会得到大量编译错误,这里有一些:
Undefined symbol: protocol descriptor for Swift.UnicodeCodec
Undefined symbol: dispatch thunk of Swift.UnicodeCodec.decode<A where A1: Swift.IteratorProtocol, A.CodeUnit == A1.Element>(inout A1) -> Swift.UnicodeDecodingResult
我不知道我可以尝试什么,任何帮助将不胜感激!
【问题讨论】:
标签: ios objective-c swift cocoa cocoapods