Can't import dependency installed with Cocoapods

后端 未结 11 1130
醉梦人生
醉梦人生 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:14

    I'll naively suppose you don't have use_frameworks! in you Podfile. If that's true, than you have two ways to go from here:

    1. In your Runner-Bridging-Header.h add #import , remove import FBSDKCoreKit from AppDelegate.swift and just continue writing the code.

    2. Add use_frameworks! to your Podfile and run pod install again. That might bring some other issues, but if that works, than I'd suggest it.

提交回复
热议问题