答案 0 :(得分:0)
<强> .podspec:强>
Pod::Spec.new do |spec|
spec.name = 'MyMainPod'
spec.dependency 'MyObjCSubPod'
...
end
<强> Podfile:强>
pod 'MyMainPod', :path => 'private-pods/my-main-pod/'
pod 'MyObjCSubPod', :path => 'private-pods/my-main-pod/my-objc-subpod'
<强> SomeFile.swift:强>
import MyObjCSubPod
无需额外的桥接标头。