Appium iOS-appium 自动化执行过程中提示 The target application appears to have died

greenplum · 2015年07月29日 · 最后由 greenplum 回复于 2015年08月18日 · 1918 次阅读

同一个 testcase 执行 100 次,执行到 71 次报这个错误,以下是 appium 日志

自动化脚本

/**
     * 打印异常信息
     * @param typeName
     * @param count
     * @param e
     * @return
     */
    private int printExceptionLog(String typeName, Exception e) {
        int type = 0;
        String className = e.getClass().getName();
        if ("org.openqa.selenium.NoSuchElementException".equals(className)) {
            log.info(typeName + ":元素未找到");
        } else if ("org.openqa.selenium.remote.SessionNotFoundException".equals(className)) {
            type = 1;
            log.info(className + ":目标应用程序似乎死亡");
        } else if ("java.lang.AssertionError".equals(className)) {
            log.info(className + ":断言失败");
        } else {
            log.info(className + ":未知");
        } 
        return type;
    }


    /**
     * 100次语音通话,每次通话时长5s
     */
    @Test(enabled = true, invocationCount = 100)
    public void voiceCallBy100TimesTest() {
        int count = ++sum;
        try {
            if (count == 1) log.info("100次语音通话,每次通话时长5s");
            log.info("第" + count + "次语音通话");
            pageA.telephoneButton.click();
            //log.info("A呼叫B");

            Thread.sleep(1000);
            pageB = new Page(B);
            pageB.voiceWaitCallRight.click();
            //log.info("B接通电话");

            Thread.sleep(5000);
            pageA = new Page(A);
            pageA.voiceCallHangOn.click();
            //log.info("A挂断");
            Thread.sleep(2000);
        } catch (Exception e) {
            int type = this.printExceptionLog("第" + count + "次语音通话失败", e);

            if (type == 0) {
                e.printStackTrace();
                pageA = new Page(A);
                if (PageUtil.isElementExist(pageA.voiceCallHangOn)) {
                    pageA.voiceCallHangOn.click();
                }
            }
        }
    } 

日志信息

2015-07-29 11:12:28:766 - info: [debug] [INST] 2015-07-29 11:12:27 +0000 Debug: evaluating au.getElementsByName('免费电话')
2015-07-29 11:12:28:887 - info: [debug] Socket data received (96 bytes)
2015-07-29 11:12:28:887 - info: [debug] Socket data being routed.
2015-07-29 11:12:28:887 - info: [debug] Got result from instruments: {"status":0,"value":[{"ELEMENT":"481"},{"ELEMENT":"482"},{"ELEMENT":"483"},{"ELEMENT":"484"}]}
2015-07-29 11:12:28:888 - info: [debug] Responding to client with success: {"status":0,"value":[{"ELEMENT":"481"},{"ELEMENT":"482"},{"ELEMENT":"483"},{"ELEMENT":"484"}],"sessionId":"faf2e2fc-6e61-4ffb-9486-db9c6f99dc72"}
2015-07-29 11:12:28:888 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/elements 200 1377.985 ms - 145 {"status":0,"value":[{"ELEMENT":"481"},{"ELEMENT":"482"},{"ELEMENT":"483"},{"ELEMENT":"484"}],"sessionId":"faf2e2fc-6e61-4ffb-9486-db9c6f99dc72"}
2015-07-29 11:12:28:893 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":5000}
2015-07-29 11:12:28:893 - info: [debug] Set iOS implicit wait to 5000ms
2015-07-29 11:12:28:893 - info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"faf2e2fc-6e61-4ffb-9486-db9c6f99dc72"}
2015-07-29 11:12:28:894 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 200 0.916 ms - 76 {"status":0,"value":null,"sessionId":"faf2e2fc-6e61-4ffb-9486-db9c6f99dc72"}
2015-07-29 11:12:28:898 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/element/481/click {"id":"481"}
2015-07-29 11:12:28:898 - info: [debug] Pushing command to appium work queue: "au.tapById('481')"
2015-07-29 11:12:28:898 - info: [debug] Sending command to instruments: au.tapById('481')
2015-07-29 11:12:28:924 - info: [debug] [INST] 2015-07-29 11:12:28 +0000 Debug: evaluation finished
2015-07-29 11:12:29:101 - info: [debug] [INST] 2015-07-29 11:12:28 +0000 Debug: Lookup returned [object UIAButton] with the name "免费电话" (id: 481).
2015-07-29 11:12:29:226 - info: [debug] [INST] 2015-07-29 11:12:28 +0000 Debug: Lookup returned [object UIAButton] with the name "免费电话" (id: 482).
2015-07-29 11:12:29:315 - info: [debug] [INST] 2015-07-29 11:12:28 +0000 Debug: Lookup returned [object UIAButton] with the name "免费电话" (id: 483).
2015-07-29 11:12:29:471 - info: [debug] [INST] 2015-07-29 11:12:28 +0000 Debug: Lookup returned [object UIAStaticText] with the name "免费电话" (id: 484).
2015-07-29 11:12:29:597 - info: [debug] [INST] 2015-07-29 11:12:28 +0000 Debug: responding with:
2015-07-29 11:12:29:701 - info: [debug] [INST] 2015-07-29 11:12:28 +0000 Debug: Running system command #723: /usr/local/Cellar/node/0.12.4/bin/node /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":[{"ELEMENT":"481"},{"ELEMENT":"482"},{"ELEMENT":"483"},{"ELEMENT":"484"}]}...
2015-07-29 11:12:29:887 - info: [debug] [INST] 2015-07-29 11:12:29 +0000 Debug: Got new command 723 from instruments: au.tapById('481')
2015-07-29 11:12:29:984 - info: [debug] [INST] 2015-07-29 11:12:29 +0000 Debug: evaluating au.tapById('481')
2015-07-29 11:12:30:079 - info: [debug] [INST] 2015-07-29 11:12:29 +0000 Debug: UIAButton.tap()
2015-07-29 11:12:30:137 - info: [debug] Socket data received (25 bytes)
2015-07-29 11:12:30:138 - info: [debug] Socket data being routed.
2015-07-29 11:12:30:138 - info: [debug] Got result from instruments: {"status":0,"value":""}
2015-07-29 11:12:30:138 - info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"faf2e2fc-6e61-4ffb-9486-db9c6f99dc72"}
2015-07-29 11:12:30:139 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/element/481/click 200 1240.808 ms - 74 {"status":0,"value":"","sessionId":"faf2e2fc-6e61-4ffb-9486-db9c6f99dc72"}
2015-07-29 11:12:30:192 - info: [debug] [INST] 2015-07-29 11:12:29 +0000 Debug: evaluation finished
2015-07-29 11:12:30:305 - info: [debug] [INST] 2015-07-29 11:12:29 +0000 Debug: responding with:
2015-07-29 11:12:30:453 - info: [debug] [INST] 2015-07-29 11:12:29 +0000 Debug: Running system command #724: /usr/local/Cellar/node/0.12.4/bin/node /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...
2015-07-29 11:12:36:764 - info: [debug] [INST] 2015-07-29 11:12:36 +0000 Fail: The target application appears to have died
2015-07-29 11:12:37:782 - info: [debug] [INST STDERR] 2015-07-29 04:12:37.781 instruments[1291:21727] Attempting to set event horizon when core is not engaged, request ignored
2015-07-29 04:12:37.781 instruments[1291:21547] Attempting to set event horizon when core is not engaged, request ignored
2015-07-29 11:12:37:795 - info: [debug] [INST] Instruments Trace Complete (Duration : 1462.144531s; Output : /tmp/appium-instruments/instrumentscli0.trace)
2015-07-29 11:12:37:845 - info: [debug] [INSTSERVER] Instruments exited with code 0
2015-07-29 11:12:37:846 - info: [debug] Cleaning up after instruments exit
2015-07-29 11:12:37:846 - info: [debug] Instruments exited unexpectedly
2015-07-29 11:12:37:846 - info: [debug] Shutting down command proxy and ignoring any errors
2015-07-29 11:12:37:847 - info: [debug] Destroying instruments client socket.
2015-07-29 11:12:37:847 - info: [debug] Closing socket server.
2015-07-29 11:12:38:089 - info: [debug] Instruments socket server was closed
2015-07-29 11:12:38:091 - info: [debug] Stopping iOS log capture
2015-07-29 11:12:38:092 - info: [debug] Running ios sim reset flow
2015-07-29 11:12:38:093 - info: [debug] Killing the simulator process
2015-07-29 11:12:38:094 - info: [debug] Killing any other simulator daemons
2015-07-29 11:12:38:106 - info: [debug] Killall iOS Simulator
2015-07-29 11:12:38:275 - info: [debug] On a real device; cannot clean device state
2015-07-29 11:12:38:275 - info: [debug] Cleaning up appium session
2015-07-29 11:12:40:822 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":0}
2015-07-29 11:12:40:842 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 19.532 ms - 40 
2015-07-29 11:12:40:852 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":5000}
2015-07-29 11:12:40:856 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 3.491 ms - 40 
2015-07-29 11:12:40:868 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":0}
2015-07-29 11:12:40:870 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 2.512 ms - 40 
2015-07-29 11:12:40:882 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":5000}
2015-07-29 11:12:40:883 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 0.747 ms - 40 
2015-07-29 11:12:40:898 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":0}
2015-07-29 11:12:40:899 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 0.824 ms - 40 
2015-07-29 11:12:40:914 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":5000}
2015-07-29 11:12:40:915 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 0.772 ms - 40 
2015-07-29 11:12:40:930 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":0}
2015-07-29 11:12:40:930 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 0.786 ms - 40 
2015-07-29 11:12:40:947 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":5000}
2015-07-29 11:12:40:949 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 2.261 ms - 40 
2015-07-29 11:12:40:963 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":0}
2015-07-29 11:12:40:965 - info: <-- POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait 404 2.282 ms - 40 
2015-07-29 11:12:40:977 - info: --> POST /wd/hub/session/faf2e2fc-6e61-4ffb-9486-db9c6f99dc72/timeouts/implicit_wait {"ms":5000}
共收到 7 条回复 时间 点赞

屏蔽理由:请参考排版说明,代码及日志使用代码块。

难道不是你的 app 的确 crash 了吗?

找到这个:
https://github.com/appium/appium/issues/5107
看起来是 app 自身问题。
你打开 iOS log 看看系统 Log 里面有没有什么特别的 log ?如果有,那估计确实是 app 的问题了,恭喜你找到一个 crash issue 。

@chenhengjie123 @sanlengjingvv
log 里没有出现 crash 的日志,有个 JetsamEvent-2015-08-17-211102.ips 这样的文件,有没有可能是内存不足退出去了

JetsamEvent-2015-08-17-211102.ips 文件内容

{"version":"105","bug_type":"198","os_version":"iPhone OS 8.1.2 (12B440)"}
Incident Identifier: 9CC1F385-21E1-41AD-8D92-F62C5E190A5C
CrashReporter Key:   729cafa78776b71e233c364269b7373f4a475f07
Hardware Model:      iPhone7,2
OS Version:          iPhone OS 8.1.2 (12B440)
Kernel Version:      Darwin Kernel Version 14.0.0: Mon Nov  3 22:27:30 PST 2014; root:xnu-2783.3.22~1/RELEASE_ARM64_T7000
Date:                2015-08-17 21:11:02 +0800
Time since snapshot: 208 ms

Free pages:                              2522
Active pages:                            102116
Inactive pages:                          51324
Speculative pages:                       542
Throttled pages:                         0
Purgeable pages:                         43
Wired pages:                             51796
File-backed pages:                       52072
Anonymous pages:                         101910
Compressions:                            486100
Decompressions:                          56384
Compressor Size:                         45040
Uncompressed Pages in Compressor:        168409
Page Size:                               16384
Largest process:   yymeet

Processes
     Name       |            <UUID>                |     CPU Time|     rpages|       purgeable| recent_max| lifetime_max| fds |  [reason]         | (state)

           tipsd <8a4b7d2b982d3a24a404911bd1e0b4fa>         0.034         241                0           -          1120   50                       (daemon) (idle)
        BlueTool <98f4ae8f4a86387ba994a3921c75f200>         0.057         123                0           -           403   50                       (daemon) (idle)
CloudKeychainPro <8c8fca92a936364e8fbd4ca2ebca5551>         0.048         207                0           -           798   50                       (daemon) (idle)
     touchsetupd <360a0fa361f93b9ca29b60ca8d150c24>         0.018         184                0           -           677   50                       (daemon) (idle)
  askpermissiond <f85d377ccc3a3c6291cbe7f30b657940>         0.055         372                0           -          1771   50                       (daemon) (idle)
softwarebehavior <b5a422d8ee04359394b4791a0040027b>         1.655         139                0           -           493   50                       (daemon) (idle)
AppleIDAuthAgent <32f4603750953460b1a7cb4969fd7cf5>         0.048         289                0           -          1377   50                       (daemon) (idle)
AGXCompilerServi <19cedded71103f5ca8a899879bc5dee9>         0.287         819                0           -          1239   50                       (daemon) (idle)
com.apple.Mobile <5757266bc2b73350a2ab93c8f1c8c55d>         0.028         157                0           -           632   50                       (daemon) (idle)
          oscard <25f1ef6b1ac93b9ab8c69716dc40d8d2>         0.038         155                0           -           618   50                       (daemon) (idle)
            misd <33855e3c639237059e7c9d7dda6aca90>         0.040         177                0           -           752   50                       (daemon) (idle)
          cloudd <0494e724c52d3983a07fe13b65f887b5>         1.511         652                0           -          1939   50                       (daemon) (idle)
           homed <c7a57707f0cb303aa51c5ef3eba49bf5>         0.318         483                0           -          1398   50                       (daemon) (idle)
             ind <555954f98c873bf9a1dad92299d94862>         0.092         413                0           -          1156   50                       (daemon) (idle)
AGXCompilerServi <19cedded71103f5ca8a899879bc5dee9>         0.059         702                0           -           998   50                       (daemon) (idle)
CallHistorySyncH <bc9285858ef43d54840605171b184fa2>         0.089         395                0           -          1185   50                       (daemon) (idle)
familynotificati <5fa9c22cf4483195998842525051ec31>         0.056         379                0           -          1801   50                       (daemon) (idle)
com.apple.uifoun <87486c98c2873ab7a0a1a044a5a0cfd3>         0.042         223                0           -           839   50                       (daemon) (idle)
    CMFSyncAgent <f7bc930000a53768a6287fbb3aff41a0>         0.050         204                0           -           802   50                       (daemon) (idle)
            absd <49d206be83ec33ffac40704c64442ab7>         0.129         108                0           -           377   50                       (daemon) (idle)
  CalendarWidget <6bf4546d25ad3af88f0a8ebdc7b9c008>         0.267         711                0           -          2240   50                       (suspended)
limitadtrackingd <a18e33d0c7d23fe5957c2248f120c290>         0.107         282                0           -          1291   50                       (daemon) (idle)
       pipelined <705014c3b3bd30b38477a0f1b898d940>         0.142         382                0           -          1628   50                       (daemon) (idle)
com.apple.Mobile <865e9aa3dce0392393a2445e115bc26f>       103.078         327                0           -         53339   50                       (daemon) (idle)
 softwareupdated <096da8bc1478333b82f5ad017f717683>         0.089         191                0           -           514   50                       (daemon) (idle)
softwareupdatese <4709ed9e2ad1314c8967b0ccefdd61eb>         4.655        1187                0           -          2460   50                       (daemon) (idle)
   familycircled <9ec9bd0fd26a360abcd72e6719607ec5>         0.238         546                0           -          2162   50                       (daemon) (idle)
            fmfd <79ac5763aecf3701ac2f8dc4cc32dd6e>         0.268         348                0           -          1045   50                       (daemon) (idle)
AssetCacheLocato <55ab6e6f9fcc3faa808315c68a9bd671>         0.206         294                0           -           812   50                       (daemon) (idle)
com.apple.Stream <203112144ccc3e84acf77312bcf37070>        44.902         174                0           -           661   50                       (daemon) (idle)
networkd_privile <eebb16a6041134bc8478a72db624dedc>         0.026         101                0           -           220   50                       (daemon) (idle)
AGXCompilerServi <19cedded71103f5ca8a899879bc5dee9>         0.548         787                0           -          1162   50                       (daemon) (idle)
       coreauthd <e89a494d9c6d344db380dd6027c41e26>         0.174         409                0           -          1561   50                       (daemon) (idle)
    itunescloudd <3c27717ba95236b5bc820c9c337da4eb>         2.764        1837                0           -          4423   50                       (daemon) (idle)
WirelessRadioMan <c4181e6d863133e8aa0c95e77a7bb206>         0.152         293                0           -           924   50                       (daemon) (idle)
       mapspushd <123d4e62753d3ca0a5283b692f62e306>         0.310         552                0           -          1297   50                       (daemon) (idle)
   callservicesd <27cad5bfd74a36248eb3f7f986205967>         0.216         527                0           -          1843   50                       (daemon) (idle)
         healthd <9c827f1747f83866b20dcf4e398cc04d>         0.415         756                0           -          1518   50                       (daemon) (idle)
            afcd <af8b79b0410a319c8446f31eb8a9cf5f>         0.245         128                0           -           338   50                       (daemon) (idle)
com.apple.Stream <203112144ccc3e84acf77312bcf37070>         5.169         162                0           -           686   50                       (daemon) (idle)
            swcd <05434abfd6103a369f3321d5bd15c96e>         0.022         170                0           -           507   50                       (daemon) (idle)
      aosnotifyd <8928d77645f134aa9150588fe1c143cf>         0.881         554                0           -          1907   50                       (daemon) (idle)
        nehelper <a98617d4c9893a96ae15f98983dc7357>         0.550         235                0           -           726   50                       (daemon) (idle)
   fileproviderd <1e8233d44774331681acd321b0b68c5c>         0.468         206                0           -           530   50                       (daemon) (idle)
streaming_zip_co <60920fc5a7c335beb44817afc5fe72c3>         2.698         259                0           -           979   50                       (daemon) (idle)
           amfid <b99c533410f83014865bb0977d6f1a45>         0.602         191                0           -          1482   50                       (daemon) (idle)
storebookkeeperd <82ef625f18ee32a0b095abe367a3e492>         2.054        1736                0           -          3726   50                       (daemon) (idle)
   findmydeviced <36e2b8af21133fb7a5a6271ab4d4f8de>         0.251         581                0           -          1952   50                       (daemon) (idle)
        profiled <0f31f2a45f1c344cb3e4262aeaa0bd6e>         0.637         582                0           -          2294   50                       (daemon) (idle)
            adid <4311d58b77b73fd4bf2c9e9e0bbe7102>         0.101         139                0           -           558   50                       (daemon) (idle)
containermanager <7036996ffbed3c0e9b50d8868efe28e0>         4.455         285                0           -           698   50                       (daemon) (idle)
        installd <7c3b2d42b66f3980901a019d84660fab>        22.276         870                0           -          2402   50                       (daemon) (idle)
    mobileassetd <2a22e27544cc3061a22b02482e465e18>        15.579         757                0           -          2609   50                       (daemon) (idle)
      librariand <f9f0c579e622316c8bbbb336519c77cf>         0.288         291                0           -           955   50                       (daemon) (idle)
CacheDeleteITune <7f900802917d313298879dec688b2d0e>         0.117         209                0           -           704   50                       (daemon) (idle)
CacheDeleteAppCo <61f8c6f529ba3ccca46faeeba32337c2>         0.714         312                0           -           856   50                       (daemon) (idle)
         assetsd <276c271c5b073f58bf87c49abf22b264>         3.200        2172                0           -          4991   50                       (daemon) (idle)
   webbookmarksd <ef37d07a6d2c36d69d0c8a443e47b70b>         0.089         323                0           -          1346   50                       (daemon) (idle)
CacheDeleteGeoTi <aae2236e838a3953b6e27472731c6772>         0.058         175                0           -           525   50                       (daemon) (idle)
   medialibraryd <6a42c5e99f153b4baa0992e9902bee82>         1.426        1187                0           -          2371   50                       (daemon) (idle)
CacheDeleteMobil <1bacbffe07b13637aa9aad35edb7761c>         0.427         990                0           -          2343   50                       (daemon) (idle)
         deleted <92e51a2db5813edb965afddd42774ef5>         0.206         179                0           -           502   50                       (daemon) (idle)
         lockbot <e3986c6d811b3ce2ac54a7e4a028b97e>         0.132         171                0           -           692   50                       (daemon) (idle)
mobile_assertion <86fcecf09c743011873ff3058c4f14f2>         0.050         131                0           -           376   50                       (daemon) (idle)
            bird <646b4254a19a34caa4840f8001fd4420>         0.194         426                0           -          1672   50                       (daemon) (idle)
      calaccessd <0a7ad7bbfb523bfdbae43aa6f21279f6>         2.089         795                0           -          1878   50                       (daemon) (idle)
DuetHeuristic-BM <9aa9282d17cf332e8533e8c3b993a5f8>         1.114         331                0           -           997   50                       (daemon) (idle)
             pkd <caa0944ef38235e7ac99199add47d66d>         0.692         306                0           -           664   50                       (daemon) (idle)
    StocksWidget <2028e47c87423ef5a6e34ce0fa47c967>         5.696        2135                0           -          4027   50                       (suspended)
        recentsd <c21dbb35d7a232298410e388a1752a23>         0.473         481                0           -          1435   50                       (daemon) (idle)
 lsuseractivityd <1f7bf524070239ec8b880c0e23d3605e>         0.328         428                0           -          1690   50                       (daemon) (idle)
mobile_installat <edbce91b2e3c348f8f4ad95fb6b1ad46>         4.719         397                0           -          1116   50                       (daemon) (idle)
    itunesstored <360e542ae3f4340f9e0e4abb66d7f8b3>        91.988        4459                0           -          7555  100                       (daemon) (idle)
             atc <8f9dadfafed8349cbbc0ebffcb5bb407>         5.399        2039                0           -          4780   50                       (daemon) (idle)
        misagent <ddb04cb78e2537a088fbe6c299c0ed8e>         0.816         269                0           -          1417   50                       (daemon) (idle)
   nsurlstoraged <85de3fa57a65304a959e6c2956042080>         6.140        1014                0           -          1858  100                       (daemon) (idle)
            awdd <58036e1703903ee798a8803de204c300>         1.980        1915                0           -          2591   50                       (daemon) (idle)
           timed <6fa98ab7f5de312b9bfed47e04e3a43e>        10.188         330                0           -          1139   50                       (daemon) (idle)
        routined <6af52733d73a3138b87a648155eb3029>        12.416         798                0           -          1665   50                       (daemon) (idle)
         keybagd <3cc5172d4fa8356eb974349470656fdd>         1.527         128                0           -           441   50                       (daemon) (idle)
        sandboxd <9c8a7200ee063eb4b1c5828bfe7a65ee>         0.087         156                0           -           685   50                       (daemon) (idle)
IMDPersistenceAg <2dce0ccfbe5937ab8444f5c6847b4ba1>         0.154         429                0           -          1137   50                       (daemon) (idle)
assistant_servic <97db64323f2e364ea0af497680126850>         1.214        1592                0           -          3994   50                       (daemon) (idle)
      assistantd <8cd686ffca53371b82b5dd21033baf56>         4.423        1004                0           -          3162   50                       (daemon) (idle)
            geod <0f816c02eb453d968c7bd1e4c1ecb994>         5.666         683                0           -          1510   50                       (daemon) (idle)
       coreduetd <9350124ebae037c6af119882ab89eb49>        16.970        1194                0           -          2072   50                       (daemon) (idle)
  mobactivationd <76a2c0e632ca3eb3ba69d95a68bdaee4>         1.238         217                0           -           772   50                       (daemon) (idle)
       securityd <d402105e9df1368ab75d7537cb8b43c0>        30.892        1000                0           -          1649   50                       (daemon) (idle)
       accountsd <75b3925e9bec337abda4f51e69fc8aa3>        37.954        1561                0           -          4443   50                       (daemon) (idle)
    mediaremoted <baa09addc0ae3b55a72cfe7b2699a962>         2.981         307                0           -          1130   50                       (daemon) (idle)
MobileGestaltHel <19968f31a89230a6b66e51ad668f0921>         1.652         180                0           -           534   50                       (daemon) (idle)
coresymbolicatio <09a629143bfc3a7d9228b414bb958ae9>         0.025         102                0           -           221   50                       (daemon) (idle)
     diagnosticd <274578acfd6d358a95c961c0bab148a9>         0.040         122                0           -           216   50                       (daemon) (idle)
   nsurlsessiond <ab90763d8a453fc68012fabc4b4f55fb>       139.588         548                0           -          1542   50                       (daemon)
            seld <18863ab32c7634d5b7f200821acffd06>         0.138         262                0           -           999   50                       (daemon)
            nfcd <59e46913bec838d989d5bed82cb05791>         0.140         261                0           -           717   50                       (daemon)
   biometrickitd <71607be9393c366eb1bbe281256fde77>         0.586         264                0           -           748   50                       (daemon)
notification_pro <b143453e80393938a7ba23a0181dc52c>         1.205         229                0           -           468   50                       (daemon)
           passd <56971afa88b53f05a37688cad47b4160>         1.441         760                0           -          2704   50                       (daemon)
            afcd <af8b79b0410a319c8446f31eb8a9cf5f>         0.663         179                0           -          1326   50                       (daemon)
      MobileMail <4b48abd990e93dbea47db1cbf328da9e>         3.619        1882                0           -          3610   50                       (resume) (continuous)
        mstreamd <61632b0d340f3a9880dece3cccf3d9cc>         0.120         515                0           -          1938   50                       (daemon)
             lsd <f554bd07b90a3cfc9d9ef9f8e234833c>         4.376         596                0           -          1397   50                       (daemon)
            tccd <f2878273872231afa1a6e0af2dcb73a6>         1.038         322                0           -           879   50                       (daemon)
             kbd <8c8bded31cf73db2b44aa996c0e90921>        12.792        2626                0           -          8011   50                       (daemon)
          yymeet <e4fc6b86c9063883ae7db55bf0c92912>       297.273      167019                0           -         50504  100  [per-process-limit]  (frontmost) (resume)
            ptpd <a06176d3eefe3e3c8549bb4f6d340658>         3.163        1010                0           -          2187   50                       (daemon)
        BTServer <2d0fc0974c073a0aafc9954110080950>         1.057         541                0           -          1779   50                       (daemon)
           wifid <43e56e539a6a3114bf4cd7646c8dd90e>        23.386         718                0           -          1831   50                       (daemon)
       lockdownd <3a0b3375ad6e391da37a1f79f46843b0>        25.942         543                0           -          1280   50                       (daemon)
      discoveryd <68f73878299336d7872b0ae9ce3f7f08>        59.952        1071                0           -          1406  100                       (daemon)
       locationd <5b826e2c09c23eaaa2acc2472269cb30>       313.388        2500                0           -          5259   50                       (daemon)
    mediaserverd <a0354e528bc431958df0d50830bead36>      1360.982        2940                0           -          5296   50                       (daemon)
   iaptransportd <4bf77076d69630e389ba64229c526723>         3.205         369                0           -           897   50                       (daemon)
identityservices <9d4b00e3c6003685ac8697c59f4e4d38>        14.896        1033                0           -          5499   50                       (daemon)
         imagent <d5e037ad2173362d8a6077788b2d7074>         1.543         866                0           -          3185   50                       (daemon)
        cfprefsd <4325eab208063b998046460a4c2ee484>        23.317         452                0           -          1575   50                       (daemon)
         syslogd <05f6b5e5512938a892bac5af23ab1c08>        82.871         264                0           -           597   50                       (daemon)
          powerd <2b4ae8758a5b3b709a97c452ec08923b>        13.082         450                0           -           791   50                       (daemon)
            apsd <bb925404cb1137b09b85671a8d2c7656>        14.403         722                0           -          2012   50                       (daemon)
        networkd <fa2acedf0b0035269d66a72e28c3a95a>        29.523         784                0           -          1723   50                       (daemon)
             vmd <c3b3270d187f3dcaa843ba73f01ff8cb>         0.037         254                0           -           859   50                       (daemon)
     dataaccessd <33bcaea3bc473f128685f4df14a115eb>         1.571         940                0           -          2855   50                       (daemon)
        sharingd <1ed17c64831f32ea9cbb47e48c4d222c>         0.662         735                0           -          2200   50                       (daemon)
    syslog_relay <087c67d0371b324fb6df48442016ec90>         9.342         113                0           -           236   50                       (daemon)
     SpringBoard <96f929dd23123d8bbc9ba2a0bb48bde1>       250.312       12307               43           -         20141   50                      
      backboardd <e263837653b434f1880f9d37b3926998>      1753.130        9037               86           -          5946   50                       (daemon)
  UserEventAgent <f5a211b9c88e3fa481f2bd1ee1f5a921>       120.243        1040                0           -          2869  100                       (daemon)
       fseventsd <16c9b62bb28c388ca10d54dbff18c4f8>        13.375         424                0           -           855   50                       (daemon)
         configd <ed40fcde35ae337ab3b70073199564b1>         9.491         552                0           -          1536   50                       (daemon)
    fairplayd.H2 <cae337642f6d396b82ac54e72bc0e0a4>        32.897         456                0           -          1830   50                       (daemon)
   wirelessproxd <ab1fa7e43a7c3f9393533404c2cc80b8>         0.123         242                0           -           971   50                       (daemon)
      assertiond <10ec04add18f3ecd8a8efbb1cc4e2bd6>        16.846         351                0           -           946   50                       (daemon)
       distnoted <cb5e76091dc53ceeaf65290f8e197a89>         2.201         214                0           -           303   50                       (daemon)
      aggregated <281958649a3130aab6ecb1aa47f0a6c1>       316.850        1564                0           -          2521   50                       (daemon)
discoveryd_helpe <492c39ae2d643adca0ed971675c77406>         0.024         153                0           -           688   50                       (daemon)
filecoordination <5ec159db1afe3317878b8ab794e2d7d1>         1.253         284                0           -           940   50                       (daemon)
      DTMobileIS <2fdc94aa5069338e815fbe3a13e3d95c>        88.875        1584                0           -          3570   50                       (daemon)
     ScriptAgent <15de65a9681f396a89c3114abd41c2a6>        83.782        4000                0           -          5300   25                       (daemon)
      CommCenter <33412ab229c738c8860c70803fed173b>       191.895        1602                0           -          4698   50                       (daemon)
         notifyd <5fa8fd5e44c83f64be1475b882b16c82>        52.202         382                0           -           426   50                       (daemon)
     ReportCrash <e946799f25f833fd9b37a6a1c7b1993c>         0.090         340                0           -           806   50                       (daemon)

**End**

 ``` java

其实这个就是崩溃日志了。

你发给我我也分析不了,需要结合 app 的 . dSYM 来解析才能看到具体是哪部分代码引起 crash 。

给你两个参考链接吧:
http://stackoverflow.com/questions/22722640/getting-info-from-ips-crash-report-file?lq=1
http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports/4954949#4954949

另外,你也可以通过 libimobiledevice 实时获取真机上 iOS sys log ,里面说不定有 crash 相关 log 。使用方法可以参考 http://krypted.com/mac-os-x/use-libimobiledevice-to-view-ios-logs/

@chenhengjie123
好的,我先试试

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册