Can't import dependency installed with Cocoapods

后端 未结 11 1129
醉梦人生
醉梦人生 2021-02-07 11:16

I\'ve installed FBSDK with Cocoapods but can\'t import it in my AppDelegate.swift file for some reason. The FBSDK kit appears in my Xcode project so I feel like it should be wor

11条回答
  •  孤独总比滥情好
    2021-02-07 12:01

    In my case, it was correctly installed but I realized the pod is Objective-C and couldn't import it on a Swift file. I had to create a bridging header to make it work.

    Refer to this stackoverflow thread How to import existing Objective C classes in Swift

提交回复
热议问题