[英]lot of warnings after installing facebook SDK on my iOS app
我想在我的iOS應用程序上安裝facebook SDK,以便使用Facebook帳戶進行社交登錄。 但通過cocoapods安裝后,它給了我很多警告信息。 我正在使用Xcode 9.2。 這是使用cocoapods安裝時我的podfile上的代碼
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'facebook login firebase' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for facebook login firebase
pod 'Bolts'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
end
這是警告的屏幕截圖 https://ibb.co/kx5fCR (這里是鏈接,以防圖像沒有出現)
https://developers.facebook.com/docs/ios/getting-started我在該文檔的第4步,但警告出現了。 那么這里出了什么問題? 我錯過了什么嗎?
以下是完整的Podfile
部分,用於將Facebook Swift SDK作為靜態庫安裝並且沒有警告:
pod 'Bolts', :modular_headers => true, :inhibit_warnings => true
pod 'FacebookCore', :inhibit_warnings => true
pod 'FacebookLogin', :inhibit_warnings => true
pod 'FacebookShare', :inhibit_warnings => true
pod 'FBSDKCoreKit', :modular_headers => true, :inhibit_warnings => true
pod 'FBSDKLoginKit', :modular_headers => true, :inhibit_warnings => true
pod 'FBSDKShareKit', :modular_headers => true, :inhibit_warnings => true
如果您不想打擾個別禁忌,請在Podfile
的頂部添加
inhibit_all_warnings!
此外,如果您正在使用框架
use_frameworks!
那么您可以跳過為依賴項指定模塊化頭文件的需要
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
回答當前截至Xcode 9.4 / FacebookLogin 0.3.1 / FBSDKLoginKit 4.35.0 / Cocoapods 1.5.3
使用第三方代碼時,這種警告是一種常態。 要么將這些東西固定在螺栓上游,要么與它一起使用,因為它不會真正傷害你的產品。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.