how to integrate flurry in ios using swift language

后端 未结 4 1604
走了就别回头了
走了就别回头了 2021-01-18 10:32

I want to integrate flurry in ios using swift language. I added the flurry sdk\'s two files : flurrylib.a and flurry.h and then entered my api key in project TestProject4-Br

4条回答
  •  伪装坚强ぢ
    2021-01-18 11:06

    You need to add a bridging header to your project. In that bridging header you import what you need in Swift and then you don't need to import it anywhere else. The iBook on using Swift and Obj-C alongside has a very good explanation on this.

    Actually, there is an explanation on Apple's Swift blog that says:

    To be safe, all components of your app should be built with the same version of Xcode and the Swift compiler to ensure that they work together.

    You can find more information here.

提交回复
热议问题