運行腳本部分中的腳本:
Shell:
${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run
輸入檔案:
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
在 AppDelegate.m
#if defined CRASHLYTICS
[FIRApp configure];
[[FIRCrashlytics crashlytics] setCrashlyticsCollectionEnabled: YES];
[FIRCrashlytics initialize];
#ifdef DEBUG
NSLog(@"Firebase version : %ld", (long)[FIRCrashlytics version]);
@[][1]; /* TEST BUG*/
#endif
#endif

Backoffice FireBase 等待錯誤,但沒有任何反應:

編輯:我在這張票中將此行添加到腳本中(檔案中沒有...):
"${BUILD_DIR%Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run" -gsp "${PROJECT_DIR}/GoogleService-Info/[Target name]/GoogleService-Info.plist" -p ios
這是啟動后的控制臺訊息:
2022-06-09 14:54:47.055089 0200 xxxx[63409:6694411] [Firebase/Crashlytics] Version 9.1.0
2022-06-09 14:54:47.055611 0200 xxxx[63409:6694604] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics] Running on iPhone10,1, 14.4.0 (18D52)
2022-06-09 14:54:47.057125 0200 xxxx[63409:6694600] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics:Settings] No settings were cached
2022-06-09 14:54:47.060628 0200 xxxx[63409:6694600] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] Automatic data collection is disabled. Deleting 1 unsent reports over the limit of 4 to prevent disk space from filling up. To take action on these reports, call send/deleteUnsentReports. To turn on automatic data collection, call setCrashlyticsCollectionEnabled with true
2022-06-09 14:54:47.061129 0200 xxxx[63409:6694600] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] Root: /var/mobile/Containers/Data/Application/62D8E525-6537-4A4E-8501-A5151BC0653A/Library/Caches/com.crashlytics.data/com.NewTelApps.FormboxRenaultExtensionDays
2022-06-09 14:54:47.061474 0200 xxxx[63409:6694600] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics:Crash] Last launch failed: this may indicate a crash shortly after app launch.
2022-06-09 14:54:47.070326 0200 xxxx[63409:6694605] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics:Crash:Reports:Event] Registered Firebase Analytics event listener to receive breadcrumb logs
2022-06-09 14:54:47.070383 0200 xxxx[63409:6694605] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] Automatic data collection is enabled.
2022-06-09 14:54:47.070474 0200 xxxx[63409:6694605] 9.1.0 - [FirebaseCrashlytics][I-CLS000000] Unsent reports will be uploaded at startup
uj5u.com熱心網友回復:
在 iOS 中,如果您模擬崩潰然后需要再次打開應用程式以獲取報告,可能需要長達一個小時才能獲得錯誤,只有在發生崩潰時才會顯示 crashlytics 報告頁面,直到它出現是相同的
uj5u.com熱心網友回復:
你需要在應用程式中,至少是第一個視圖。(所以在申請后:didFinishLaunchingWithOptions for ex
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/488067.html
