Crash Report解æãµã¼ãã¹ã®Crashlyticsã試ãã¦ã¿ã
æ¦è¦
å æ¥Qiitaã«æ¸ããè¨äºã®ç¶ãã¨ãã¦ããã°ã«æ¸ãã¦ã¿ã¾ããã
http://qiita.com/asakahara/items/7c890668a709abb949cf
ã¢ããªéçºã§ã¯å¿ é ã«ãªãã¤ã¤ããCrash Report解æãµã¼ãã¹ã§ãããä»åã¯ãã®ä¸ã¤ã§ããCrashlyticsãå°å ¥ããæã®ã¡ã¢ã§ãã Crashlyitcsã¯å®å ¨ç¡æãªã®ã§æéãæ°ã«ããæ°è»½ã«ä½¿ãã¾ãã ã¾ãç¡æã§ã¯ããã¾ãããCrash Reportã解æããããã«å¿ è¦ãªæ©è½ã¯ã»ã¨ãã©åãã£ã¦ããä¸ããã¶ã¤ã³ãç¡é§(ï¼)ã«ãã£ãããã§ãã
å°å ¥æé
ä¸è¨ããã¾ãã¦ã¼ã¶ã¼ç»é²ããã¾ãã
ç»é²ããã¨You're on the listã¨ããã¿ã¤ãã«ã§ã¡ã¼ã«ãæ¥ã¾ãã å¾ æ©ãªã¹ãã«è¿½å ããã¦é çªå¾ ã¡ã¨ãããã¨ã«ãªãã®ã§ããã Twitterã¢ã«ã¦ã³ãã使ã£ã¦ãã°ã¤ã³ããã¨ãããã«ä½¿ãå§ãããã¨ãã§ãã¾ãã
ãã°ã¤ã³ãããCrashlyticsã使ãããã®ãã¼ã«ããã¦ã³ãã¼ããã¾ãã iOSãåæã«ãã¦ãã¾ãã®ã§ãXcodeãé¸æãã¦ãã ããã
ãã¼ã«ãã¤ã³ã¹ãã¼ã«ãããCrashlyticsã®å°å ¥ãéå§ãã¾ãã ç´°ããæé ã¯ãã¼ã«ã®æé ã«æ²¿ã£ã¦è¡ãã°ç°¡åã«ã§ãã¾ãã®ã§å²æãã¾ãããä¸ç¹æé ã¨ãã¦CococaPodsã使ç¨ããæ¹æ³ãæ¸ãã¦ããã¾ãã ãã¼ã«ã®æé ã«å¾ã£ã¦å°å ¥ããå ´åãä¸è¨ã®ããã«FrameworkãXcodeããã¸ã§ã¯ãã«ãã©ãã°ãã¦ãã ããã¨è¡¨ç¤ºããã¾ãã
ããã§ã¯ãã©ãã°ããã«CocoaPodsã§æä¾ããã¦ããCrashlyticsFrameworkãå©ç¨ãã¾ãã
platform :ios, '7.0' pod 'CrashlyticsFramework'
ä¸è¨ã³ãã³ããå®è¡ãã¦ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
pod install
ãã®ä¸ã¤åã®æé ã§Run Script Build Phase
ããéã«æå®ããã³ãã³ãã®ãã¹ãPodsãã¡ã¤ã«ã®ãã¹ã«ä½µãã¦å¤æ´ãã¾ã
ã»å¤æ´å
./Crashlytics.framework/run xxxxxxxxxx
ã»å¤æ´å¾
./Pods/CrashlyticsFramework/Crashlytics.framework/run xxxxxxxxxxxxx
ãã¼ã«ãèªåçæããããã¸ã§ã¯ããã©ã«ãç´ä¸ã«ã§ããCrashlytics.framework
ãã©ã«ãã¯ä¸è¦ãªã®ã§åé¤ãã¦ããã¾ãããã
ãã以éã®æé ã¯ãã¼ã«ã®å 容ã¨åæ§ã§åé¡ããã¾ããã
Crashlytics.framework
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [Crashlytics startWithAPIKey:@"<API-KEY>"]; // ... }
ããã§å ¨ã¦ã®æºåãªãã±ã¼ã§ãã
ãã¹ãã¨ãã¦ããã¨ã¨ã©ã¼ãçºçããå¦çãè¨è¿°ãã¦å®è¡ããã¾ãã
- (IBAction)crashAction:(id)sender{ NSArray *array = [NSArray array]; id data = array[0]; }
ä¸è¨å¦çãå®è¡ããã¨Crashlyticsã«Crash Reportããªã¢ã«ã¿ã¤ã ã§éä¿¡ããã¾ãã ä¸è¨ã®ããã«æ å ±ãè¦ãäºãã§ãã¾ãã
Bread Crumbs
ã«ã対å¿ãã¦ãããCLS_LOG(format, ...)
ã§ãã°ãæ®ããã¨ã§Crashlyticsã®Crash Reportã«ãåæ ããã¾ãã
ææ³
ç¡æã§ããã¾ã§ã§ããã®ã§ã¾ãCrash Report解æãã¼ã«ã使ã£ã¦ã¿ããã¨ãããã¨ã§ããã°ãå§ãã§ãã .dSYMãã¡ã¤ã«ããã«ãæã«èªåçã§éä¿¡ãã¦ããããããªã®ã§ãããã°ã·ã³ãã«ã®å¾©å ãç¹ã«ä½ãããªãã¦ãã§ãã¾ãã
Crashlyticsã§ãã°ã®ãªãå質ã®ããã¢ããªéçºãå¿ããã¾ãããï¼