xcode 9.3 betaを使用してflurryを実装すると、バックグラウンドスレッドで呼び出されたUI APIに関する警告が発生します。メインスレッドのみから呼び出される必要があります。iOS Flurry:バックグラウンドスレッドから呼び出されたUI API
これを避けるために何をすべきか考えてください - それは慌てて解決するだけですか?アプリデリゲートで使用
コード:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let builder = FlurrySessionBuilder.init()
.withAppVersion("1.0")
.withLogLevel(FlurryLogLevelAll)
.withCrashReporting(true)
.withSessionContinueSeconds(10)
// Replace YOUR_API_KEY with the api key in the downloaded package
Flurry.startSession("YOUR_API_KEY", with: builder)
return true
}
リンクの代わりにスクリーンショットを追加します。 – KKRocks
は、 – RSN
のスクリーンショットを追加しました.iOS 11の公開時に、APIの開発者は、バックグラウンドスレッドを使用しないように更新することを約束しています。 – RSN