Import Objective-c framework into Swift framework project

后端 未结 3 369
故里飘歌
故里飘歌 2020-12-30 05:03

I am building a framework in which I need to import some objective-c frameworks for now I need to import \"Beaconstac.framework\" but as we can not add a bridging header in

3条回答
  •  自闭症患者
    2020-12-30 05:33

    You need to import the Beaconstac framework in your umbrella header. That is, if you'd ordinarily use, e.g., #import in an Obj-C bridging header, for a framework you need to put that in the umbrella header.

    See this chapter in Apple's documentation for more info:

    https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-ID130

提交回复
热议问题