Crashlytics 安装 - 停留在验证安装第 2 步(共 2 步)
Crashlytics installing - stuck on verifying installation step 2 of 2
我想将 Crashlytics 添加到我的项目中,我根据 Fabric Mac 应用程序制作了所有内容,现在我停留在
Step 2 of 2 when verifying installation
我添加了:
[Fabric with:@[[Crashlytics class]]];
方法:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
我也添加了导入:
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
应用程序已启动,但在 Fabric 应用程序中仍有进展,但没有任何进展。
当我将调试模式设置为是时,我得到这些信息:
2016-07-13 11:23:21.689 Archimedes Cool[8565:3143059] [Crashlytics]
Version 3.7.2 (112) 2016-07-13 11:23:21.789 Archimedes
Cool[8565:3143059] [Crashlytics] Running on iPad4,4, 9.3.2 (13F69)
2016-07-13 11:23:21.883 Archimedes Cool[8565:3143059] [Fabric]
Initialized with kit versions: { "com.twitter.answers.ios" = "1.2.1";
"com.twitter.crashlytics.ios" = "3.7.2"; "io.fabric.sdk.ios" =
"1.6.7"; }
2016-07-13 11:23:22.555 Archimedes Cool[8565:3143092] [Fabric] failed
to download settings Error Domain=NSPOSIXErrorDomain Code=2 "No such
file or directory"
UserInfo={NSErrorFailingURLKey=https://settings.crashlytics.com/spi/v2/platforms/ios/apps/cz.ai.Archimedes-Cool/settings?build_version=1.24.3.4537&display_version=1.24.3&instance=a5697790406418f18d7057545ad7cf5cc23e431d&icon_hash=db9967486042bc2829965401b58f06c932384acd&source=1,
NSErrorFailingURLStringKey=https://settings.crashlytics.com/spi/v2/platforms/ios/apps/cz.ai.Archimedes-Cool/settings?build_version=1.24.3.4537&display_version=1.24.3&instance=a5697790406418f18d7057545ad7cf5cc23e431d&icon_hash=db9967486042bc2829965401b58f06c932384acd&source=1}
我已经在真实设备(iPad 和 iPhone)上试过了,但没有在模拟器上试过。我什至尝试通过 CocoaPods 安装它,但同样的问题。谁能帮我?谢谢
来自this answer:
this appears to happen when there is a method being called after the
Fabric init that is removing the temp directory of the app.This can
result in a race condition where new data is being written for other
Answers events, but new sessions are not recorded properly.
将Fabric
初始化移动到didFinishLaunchingWithOptions
末尾以避免其他方法覆盖或删除应用程序的临时目录
我想将 Crashlytics 添加到我的项目中,我根据 Fabric Mac 应用程序制作了所有内容,现在我停留在
Step 2 of 2 when verifying installation
我添加了:
[Fabric with:@[[Crashlytics class]]];
方法:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
我也添加了导入:
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
应用程序已启动,但在 Fabric 应用程序中仍有进展,但没有任何进展。
当我将调试模式设置为是时,我得到这些信息:
2016-07-13 11:23:21.689 Archimedes Cool[8565:3143059] [Crashlytics] Version 3.7.2 (112) 2016-07-13 11:23:21.789 Archimedes Cool[8565:3143059] [Crashlytics] Running on iPad4,4, 9.3.2 (13F69) 2016-07-13 11:23:21.883 Archimedes Cool[8565:3143059] [Fabric] Initialized with kit versions: { "com.twitter.answers.ios" = "1.2.1"; "com.twitter.crashlytics.ios" = "3.7.2"; "io.fabric.sdk.ios" = "1.6.7"; }
2016-07-13 11:23:22.555 Archimedes Cool[8565:3143092] [Fabric] failed to download settings Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSErrorFailingURLKey=https://settings.crashlytics.com/spi/v2/platforms/ios/apps/cz.ai.Archimedes-Cool/settings?build_version=1.24.3.4537&display_version=1.24.3&instance=a5697790406418f18d7057545ad7cf5cc23e431d&icon_hash=db9967486042bc2829965401b58f06c932384acd&source=1, NSErrorFailingURLStringKey=https://settings.crashlytics.com/spi/v2/platforms/ios/apps/cz.ai.Archimedes-Cool/settings?build_version=1.24.3.4537&display_version=1.24.3&instance=a5697790406418f18d7057545ad7cf5cc23e431d&icon_hash=db9967486042bc2829965401b58f06c932384acd&source=1}
我已经在真实设备(iPad 和 iPhone)上试过了,但没有在模拟器上试过。我什至尝试通过 CocoaPods 安装它,但同样的问题。谁能帮我?谢谢
来自this answer:
this appears to happen when there is a method being called after the Fabric init that is removing the temp directory of the app.This can result in a race condition where new data is being written for other Answers events, but new sessions are not recorded properly.
将Fabric
初始化移动到didFinishLaunchingWithOptions
末尾以避免其他方法覆盖或删除应用程序的临时目录