iOS 9 “fbauth2” missing from Info.plist

后端 未结 9 1594
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 06:23
FBSDKLog: fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0

Any idea what this is? I have added

9条回答
  •  囚心锁ツ
    2020-12-02 06:43

    You can try with below code in swift 5.0

    extension Bundle {
       static let externalURLSchemes: [String] = {
          guard let urlTypes = main.infoDictionary?["LSApplicationQueriesSchemes"] 
           as? [String] else {
            return []
          }
          return urlTypes
       }()
    }
    

    You can call using Bundle

    guard Bundle.externalURLSchemes.contains(URLScheme) else {
        return
    }
    

提交回复
热议问题