Bridge header for Swift Pod with dependent Objective-C Pod?

I created a Swift pod (podspec) which depends on a pod written in Objective-C. In my podspec I use:

s.dependency 'ObjectiveCPod', '~>3.2.1'

To specify a dependent item. To use it, I need a bridge header, which is installed automatically when my Swift module is installed. I do not want to create a bridge header in my project to integrate objective-c pods header files.

How to configure my podspec so that the header file with the bridge is automatically integrated and linked in my project when I install my Swift module?

+4
source share
1 answer

CocoaPods , Swift. , podspec. , , Clang . , Objective-C podspec.

, , , , Xcode.

Objective-C, @import ObjectiveCPod Swift.

0

All Articles