新手区 appium 真机 ios,inspector 能启动应用,但是不能打开 inspector

不二家 · 2016年06月02日 · 最后由 陈恒捷 回复于 2016年06月23日 · 1809 次阅读

问题:appium 能启动真机应用,但是不能打开 inspecort


log 如下:


info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 3c6df83d9258975196dbdd2725a32f3e3e06a64d
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 3c6df83d9258975196dbdd2725a32f3e3e06a64d HM.wristband2 -e UIASCRIPT "/Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}

info: [debug] [INST STDERR] 2016-06-02 16:40:19.677 instruments[10902:278574] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"ffcc56b8-be46-4c9d-a549-80848af996b6"}

info: <-- GET /wd/hub/status 200 1.537 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"ffcc56b8-be46-4c9d-a549-80848af996b6"}

info: [IOS_SYSLOG_ROW ] Jun  2 16:40:15 diaojunxiande-iPhone syslog_relay[2902] <Notice>: syslog_relay found the ASL prompt. Starting...

info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone DTMobileIS[2816] <Warning>: Could not create service named com.apple.instruments.server.services.assets

info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone assertiond[60] <Error>: assertion failed: 12F70: assertiond + 56820 [F4173726-3BBE-36BE-9CDB-7AA4EF6CB94E]: 0x3
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone Unknown[60] <Error>:
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone SpringBoard[50] <Warning>: Entitlement com.apple.multitasking.termination required to kill applications.
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone assertiond[60] <Warning>: pid_suspend failed for <BKNewProcess: 0x1365623c0; HM.wristband2; pid: 3036; hostpid: -1>: Unknown error: -1, Unknown error: -1
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone com.apple.xpc.launchd[1] (UIKitApplication:HM.wristband2[0x70c2][3036]) <Notice>: Service exited due to signal: Killed: 9

info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone SpringBoard[50] <Warning>: Application 'UIKitApplication:HM.wristband2[0x70c2]' exited abnormally via signal.
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone UserEventAgent[17] <Warning>: id=HM.wristband2 pid=3036, state=0
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:21 diaojunxiande-iPhone kernel[0] <Notice>: xpcproxy[3043] Container: /private/var/mobile/Containers/Data/Application/74EF8BBB-3017-4DA8-9336-BE78A0020CDB (sandbox)
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone DTMobileIS[2816] <Error>: kernel symbolicator unable to open /mach.release.s5l8960x

info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone DTMobileIS[2816] <Error>: Device Info Service was unable to create symbolicator for the kernel
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:20 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Jun  2 16:40:21 diaojunxiande-iPhone notification_proxy[2796] <Error>: 0x10042c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun  2 16:40:21 diaojunxiande-iPhone MiFit[3043] <Error>: assertion failed: 12F70: libxpc.dylib + 71768 [B870B51D-AA85-3686-A7D9-ACD48C5FE153]: 0x7d

info: [IOS_SYSLOG_ROW ] rawData = <004c0000 06000300 00030000 03000003 00000300 000a1400 — 42 total bytes>;
info: [IOS_SYSLOG_ROW ] heartRateData = <ffffffff ffffffff ffffffff ffff — 14 total bytes>;
info: [IOS_SYSLOG_ROW ] creatingOrder = 5;
info: [IOS_SYSLOG_ROW ] source = 103;
info: [IOS_SYSLOG_ROW ] deviceID = D6DF69FFFEB223AE;
info: [IOS_SYSLOG_ROW ] mac = D6DF69B223AE;
info: [IOS_SYSLOG_ROW ] synchronized = 1;
info: [IOS_SYSLOG_ROW ] },
info: [IOS_SYSLOG_ROW ] [5] DCActivityRaw {
info: [IOS_SYSLOG_ROW ] startTimeUTC = 2016-06-02 06:02:00 +0000;
info: [IOS_SYSLOG_ROW ] offsetOfUTC = 28800;
info: [IOS_SYSLOG_ROW ] rawData = <03000000 07000300 00001600 00220003 00000300 00030000 — 294 total bytes>;
info: [IOS_SYSLOG_ROW ] heartRateData = <ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff — 98 total bytes>;
info: [IOS_SYSLOG_ROW ] creatingOrder = 6;
info: [IOS_SYSLOG_ROW ] source = 103;
info: [IOS_SYSLOG_ROW ] deviceID = D6DF69FFFEB223AE;
info: [IOS_SYSLOG_ROW ] mac = D6DF69B223AE;
info: [IOS_SYSLOG_ROW ] synchronized = 1;
info: [IOS_SYSLOG_ROW ] },
info: [IOS_SYSLOG_ROW ] [6] DCActivityRaw {
info: [IOS_SYSLOG_ROW ] startTimeUTC = 2016-06-02 07:40:00 +0000;
info: [IOS_SYSLOG_ROW ] offsetOfUTC = 28800;
info: [IOS_SYSLOG_ROW ] rawData = <80150080 1500000e 00002c00 — 12 total bytes>;
info: [IOS_SYSLOG_ROW ] heartRateData = <ffffffff — 4 total bytes>;
info: [IOS_SYSLOG_ROW ] creatingOrder = 7;
info: [IOS_SYSLOG_ROW ] source = 103;
info: [IOS_SYSLOG_ROW ] deviceID = D6DF69FFFEB223AE;
info: [IOS_SYSLOG_ROW ] mac = D6DF69B223AE;
info: [IOS_SYSLOG_ROW ] synchronized = 1;
info: [IOS_SYSLOG_ROW ] },
info: [IOS_SYSLOG_ROW ] [7] DCActivityRaw {
info: [IOS_SYSLOG_ROW ] startTimeUTC = 2016-06-02 07:44:00 +0000;
info: [IOS_SYSLOG_ROW ] offsetOfUTC = 28800;
info: [IOS_SYSLOG_ROW ] rawData = <00260000 09000016 00000b00 00090000 04000018 00001600 — 168 total bytes>;
info: [IOS_SYSLOG_ROW ] heartRateData = <ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff — 56 total bytes>;
info: [IOS_SYSLOG_ROW ] creatingOrder = 8;
info: [IOS_SYSLOG_ROW ] source = 103;
info: [IOS_SYSLOG_ROW ] deviceID = D6DF69FFFEB223AE;
info: [IOS_SYSLOG_ROW ] mac = D6DF69B223AE;
info: [IOS_SYSLOG_ROW ] synchronized = 0;
info: [IOS_SYSLOG_ROW ] }
info: [IOS_SYSLOG_ROW ] );
info: [IOS_SYSLOG_ROW ] synchronized = 1;
info: [IOS_SYSLOG_ROW ] modSynchronized = 0;
info: [IOS_SYSLOG_ROW ] }
info: [IOS_SYSLOG_ROW ] Jun  2 16:40:51 diaojunxiande-iPhone MiFit[3043] <Warning>: [LOG] {DCActivityDataProcessor.mm:147 +[DCActivityDataProcessor processBandDataWithYesterdayData:todayData:yesterdayHRData:today
HRData:onDate:useHeartRates:isRecounting:userID:]} => y:4320, <03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03020003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030400 03000003 00000300 00030000 03000003 00000300 00030000 03000003 04000300 00030000 03000003 00000300 00030000 03000003 00000300 00030700 03000003 00000300 00030000 03000003 00000300 00030000 03000003 07000300 00030000 03000003 00000300 00030000 00500080 08000007 00002400 000e0000 1a000005 00004a0b 005c0080 4f0a0027 00002b00 00320000 2900004c 00806000 00640000 60000066 00005e00 00280001 2617624c a152518a 31646b31 4d750062 0c804c00 802a0000 3700802a 00003100 00270080 34000010 00802c00 00150000 24008027 00802000 001a0000 1c000020 00001700 00180000 1600001d 00001300 00180000 1a00001d 00001a00 000b0000 0f000015 00001d00 00190a00 25000028 00001400 00170000 16000030 00916149 11503700 40001153 51015a3b 80220080 3c000024 00801d00 00160000 0b000007 00001e00 00000000 18000007 00000300 00000000 3100804e 00800f00 001b0080 3200800e 00802500 81681800 4a00003b 00001d00 00230080 36008024 00001f00 00300000 45000010 00001d00 002a0000 24000005 00000000 00320000 38000021 00803500 00250000 4800001b 00001700 00300000 3b00000d 00000f00 001e0000 05000018 00003600 00330000 28000009 00000300 00000000 40000038 00002900 000e0000 2100003c 00002600 001b0000 1e00002e 00000b00 002e0000 2b000036 00000500 00090000 3e000014 00001100 00000000 0c00002e 00003b00 00190000 0f000016 00002600 00140000 1d000029 00000c00 00230000 2900002d 00000f00 00000000 5e000039 0001381e 00270000 3
b008047 00803500 80260080 3800000a 00002d00 00220000 22000010 00801d00 00040000 04000021 00802200 801c0000 1d000015 00000000 00270000 1f008010 00803e00 00240000 2700005c 00002800 00150000 2e000004 00002600 00200000 2a00001e 00003c00 00140000 0b000016 00002f00 00250000 1d00000b 00001400 001b0080 1f00802f 00000900 00440000 41000026 00003400 80410000 28000031 00801c00 00090080 2d008143 16004a0a 80280080 0400001f 00002800 80510000 5600801f 00001100 00200080 15000017 00002b00 002a0000 2d000015 00002a00 000e0000 06000004 00000c00 00050000 2d00003a 00002200 001a0000 2100000e 00000000 000c0000 2e000029 00004700 00280000 3700001e 00001a00 802b0000 1a00001b 00000900 00230000 25000018 00000c00 00090000 02000006 00001300 00290000 25000022 00000c00 80160000 25000022 00004400 80140000 2d008031 00802c00 804f0000 6b00005a 00015f30 01525a01 496c013a 75013d6f 01447681 5a6b8143 20002900 00240000 2f00004c 00804900 00500000 55000050 00005700 002f0000 32000030 00003300 00380000 37000030 00001600 003e0000 37000024 00004200 81451f91 61640153 75016473 015e7403 6477015c 71004d09 015a2001 5d200061 00805000 00310000 26000037 00002b00 00080000 2f000019 00802200 00040000 2e00801b 00000700 00070000 02000005 00000000 00000000 02008032 00002200 00380000 33000021 00001c00 00260000 24000027 00001900 004f0000 2a000024 00000600 00000000 04000000 00000000 00000000 00000000 00000000 00000000 00000000 00001400 004d0000 48000033 00801100 00410080 1a000026 00002d00 00200000 3200004c 00001c00 00150000 0e00001d 00004900 00120000 16000013 00000900 00150080 4f00802d 00801e00 000b0000 1a00801f 00003900 00200000 2f000030 00000a00 801c0000 0700001a 00801d00 003f0000 25008025 00000c00 00080080 4b00806a 00002700 00270000 26000008 00006400 00450080 0a00000c 00001400 80360000 1f008146 28004a0e 00300001 4f100059 04814e16 802f0000 36000038 00004300 003e0000 2500803e 00015117 00150000 2800805f 0b803200 11432200 2a00003f 00000c00 00220000 1a00002d 00800900 000b0000 2c000010 00004c00 80570000 60008046 00806100 003e0000 2b000058 00002100 001c0080 1400000b 00000000 00060000 23008014 00003100 00230000 2a000022 00002500 7e00007e 00007e00 007e0000 80170000 13000009 00800f00 000f0080 0f000a14 00000d00 000f0000 18000035 000a1400 00420000 1a00001d 00001200 00170000 1d00000d 00001800 0a140080 0d000002 000a1400 00060000 1300000d 00001000 00080000 0800000f 00001400 000a0000 0a008018 00000200 0002000a 1400000f 00000e00 000f0000 0a00000a 00000700 001c0000 20000007 00000d00 00040000 0f000007 00000e00 00120000 09000002 00001000 00140000 1a000008 00001200 00030000 10000017 00001200 0a140000 0f000013 00001f00 00130000 14000000 00000000 001c0000 00000000 00000000 0000000a 14000001 00000300 00000000 00000a14 000a1400 03000000 01000a14 000a1400 00000000 00000000 00001100 03000003 00000300 00030000 03000003 00000300 00030000 000d0000 00000000 00000000 00000000 00000000 00000000 0000000b 00000000 00000000 00000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 15000025 00001c00 03000003 00000300 000a1400 00060000 0400000e 000c1700 00260000 1a00002a 00000600 00000000 0300000c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00001b00 01692911 3f281144 28016349 0007000a 14000025 00003800 00300000 3200001e 00003700 803c0000 46000030 00002900 00280080 3500003d 00003400 00370000 39000037 00003900 00280080 3b00002e 00002300 003c0080 10000022 00003600 00290080 0300001f 00003400 802c0000 25000017 00000900 00040000 0f008025 00001700 0008000a 14000a14 00000a00 0a140000 15000013 00000e00 00100000 2200000d 00001e00 00100000 1c00002c 00003400 014c1f01 5061014a 44016867 01647801 6e7d015e 4c000a00 00310000 39000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000000b 00000000 00000000 00000000 00000018 00030000 03000003 00000300 00030000 03000003 00000300 00030000 0c000003 00000a14 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00000300 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03
000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000 03000003 00000300 00030000>

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:01 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:13 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"ffcc56b8-be46-4c9d-a549-80848af996b6"}
info: <-- GET /wd/hub/status 200 0.978 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"ffcc56b8-be46-4c9d-a549-80848af996b6"}

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:28 diaojunxiande-iPhone kernel[0] <Notice>: 320141.815978 wlan0.A[77367] AppleBCMWLANConfigManager::configureRoamingProfile(): Received new roaming profile 3 (was 3, flag=0x0)

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:33 diaojunxiande-iPhone kernel[0] <Notice>: 320146.825909 wlan0.A[77368] AppleBCMWLANConfigManager::configureRoamingProfile(): Received new roaming profile 3 (was 3, flag=0x1)

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:35 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:35 diaojunxiande-iPhone mediaserverd[19] <Notice>: '' com.apple.mobilesms.notification(pid = 2865) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:36 diaojunxiande-iPhone SpringBoard[50] <Warning>: Application 'UIKitApplication:com.apple.mobilesms.notification[0xb359]' was killed by jetsam.

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:36 diaojunxiande-iPhone SpringBoard[50] <Warning>: Application 'UIKitApplication:com.apple.mobilephone[0x9f08]' was killed by jetsam.

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:43 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:53 diaojunxiande-iPhone kernel[0] <Notice>: 320166.912815 wlan0.A[77369] AppleBCMWLANConfigManager::configureRoamingProfile(): Received new roaming profile 3 (was 3, flag=0x0)

info: [IOS_SYSLOG_ROW ] Jun  2 16:41:58 diaojunxiande-iPhone kernel[0] <Notice>: 320171.921706 wlan0.A[77370] AppleBCMWLANConfigManager::configureRoamingProfile(): Received new roaming profile 3 (was 3, flag=0x1)

info: [IOS_SYSLOG_ROW ] Jun  2 16:42:00 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Jun  2 16:42:06 diaojunxiande-iPhone configd[29] <Notice>: DHCP en0: can't schedule wake-up, expiration is too soon

info: [IOS_SYSLOG_ROW ] Jun  2 16:42:06 diaojunxiande-iPhone configd[29] <Notice>: DHCP en0: now = 0x1d0028de, lease = { start 0x1d0027b2, t1 0x1d0028de, t2 0x1d0029bf, expiration 0x1d002a0a }

info: [IOS_SYSLOG_ROW ] Jun  2 16:42:06 diaojunxiande-iPhone configd[29] <Notice>: DHCP en0: can't schedule wake-up, expiration is too soon
info: [IOS_SYSLOG_ROW ] Jun  2 16:42:06 diaojunxiande-iPhone configd[29] <Notice>: DHCP en0: now = 0x1d0028de, lease = { start 0x1d0028de, t1 0x1d002a0a, t2 0x1d002aeb, expiration 0x1d002b36 }

info: <-- POST /wd/hub/session - - ms - - 

info: [IOS_SYSLOG_ROW ] Jun  2 16:42:17 diaojunxiande-iPhone locationd[2582] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

undefined

实在不知道是原因:

我的环境是 xcode 7.3.1 ;appium 14.16 ; 应用是已经登录状态,且 appium 客户端配置如下:


如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 11 条回复 时间 点赞

设置里 developer 的 Enable UI Automation 开了没?

只看到了 info: [IOS_SYSLOG_ROW ] Jun 2 16:40:20 diaojunxiande-iPhone DTMobileIS[2816] <Warning>: Could not create service named com.apple.instruments.server.services.assets 这条信息比较有用。你用的是模拟器还是真机?

建议把 show Simulator Log 和 Show iOS System Log 先关掉,这两个 log 的信息对于你这个问题没太大用处。

#2 楼 @chenhengjie123 我用的是真机。 明天回公司关掉 重新运行一下 再提供日志,我其实今天发现,在我不登录 app 的时候,就是未登录状态下,我发现 inspector 是能将 查看控件的窗口调起来的,但是如果从未登录状态调起以后,我再输入用户名密码进入 app,这个时候 点击 refresh,我发现,点击 app 就死机了,点击任何控件位置都没有用。

#2 楼 @chenhengjie123
关闭 show Simulator Log 和 Show iOS System Log 日志

info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 0509b98b-adc7-40ac-9a6c-96a751b5e199
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid...
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn't exist
info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/djx/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
info: [debug] Dynamic bootstrap path: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Reusing dynamic bootstrap: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] App is installed.

info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5d2d323666d505449e9a67cbd3fccc8ff80baadf HM.wristband2 -e UIASCRIPT "/Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}

info: [debug] And launch timeouts (in ms): {"global":90000}

info: [debug] [INST STDERR] 2016-06-07 16:07:04.206 instruments[6594:714644] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 1.612 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.226 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: Instruments is ready to receive commands

info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"

info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;


info: [debug] Socket data received (27 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":true}

info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: Running system command #1: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}...

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: target.setDeviceOrientation("1")

info: [debug] Socket data received (33 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: Running system command #2: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":false,"valid":false,"visible":false,"hint":null,"path":"/0","x":0,"y":0,"width":0,"height":0},">":[]}}}
info: [debug] Waited for 4045ms so far

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: evaluation finished

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: responding with:

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled...

info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:25 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()
       2016-06-07 08:07:25 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 3.208 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.244 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- POST /wd/hub/session - - ms - - 

undefined

#2 楼 @chenhengjie123
关闭 show Simulator Log 和 Show iOS System Log 日志

info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 0509b98b-adc7-40ac-9a6c-96a751b5e199
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid...
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn't exist
info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/djx/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
info: [debug] Dynamic bootstrap path: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Reusing dynamic bootstrap: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] App is installed.

info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5d2d323666d505449e9a67cbd3fccc8ff80baadf HM.wristband2 -e UIASCRIPT "/Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}

info: [debug] And launch timeouts (in ms): {"global":90000}

info: [debug] [INST STDERR] 2016-06-07 16:07:04.206 instruments[6594:714644] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 1.612 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.226 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: Instruments is ready to receive commands

info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"

info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;


info: [debug] Socket data received (27 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":true}

info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: Running system command #1: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}...

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: target.setDeviceOrientation("1")

info: [debug] Socket data received (33 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: Running system command #2: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":false,"valid":false,"visible":false,"hint":null,"path":"/0","x":0,"y":0,"width":0,"height":0},">":[]}}}
info: [debug] Waited for 4045ms so far

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: evaluation finished

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: responding with:

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled...

info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:25 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()
       2016-06-07 08:07:25 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 3.208 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.244 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- POST /wd/hub/session - - ms - - 

undefined

关闭 show Simulator Log 和 Show iOS System Log 日志

info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 0509b98b-adc7-40ac-9a6c-96a751b5e199
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid...
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn't exist
info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/djx/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
info: [debug] Dynamic bootstrap path: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Reusing dynamic bootstrap: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] App is installed.

info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5d2d323666d505449e9a67cbd3fccc8ff80baadf HM.wristband2 -e UIASCRIPT "/Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}

info: [debug] And launch timeouts (in ms): {"global":90000}

info: [debug] [INST STDERR] 2016-06-07 16:07:04.206 instruments[6594:714644] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 1.612 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.226 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: Instruments is ready to receive commands

info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"

info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;


info: [debug] Socket data received (27 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":true}

info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: Running system command #1: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}...

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: target.setDeviceOrientation("1")

info: [debug] Socket data received (33 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: Running system command #2: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":false,"valid":false,"visible":false,"hint":null,"path":"/0","x":0,"y":0,"width":0,"height":0},">":[]}}}
info: [debug] Waited for 4045ms so far

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: evaluation finished

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: responding with:

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled...

info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:25 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()
       2016-06-07 08:07:25 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 3.208 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.244 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- POST /wd/hub/session - - ms - - 

undefined

关闭 show Simulator Log 和 Show iOS System Log 日志

info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 0509b98b-adc7-40ac-9a6c-96a751b5e199
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid...
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/HM.wristband2/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn't exist
info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/djx/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
info: [debug] Dynamic bootstrap path: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Reusing dynamic bootstrap: /Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] App is installed.

info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 5d2d323666d505449e9a67cbd3fccc8ff80baadf

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5d2d323666d505449e9a67cbd3fccc8ff80baadf HM.wristband2 -e UIASCRIPT "/Users/djx/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}

info: [debug] And launch timeouts (in ms): {"global":90000}

info: [debug] [INST STDERR] 2016-06-07 16:07:04.206 instruments[6594:714644] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 1.612 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.226 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: Instruments is ready to receive commands

info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"

info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;


info: [debug] Socket data received (27 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":true}

info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:18 +0000 Debug: Running system command #1: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}...

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')

info: [debug] [INST] 2016-06-07 08:07:19 +0000 Debug: target.setDeviceOrientation("1")

info: [debug] Socket data received (33 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: responding with:
info: [debug] [INST] 2016-06-07 08:07:20 +0000 Debug: Running system command #2: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:21 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":false,"valid":false,"visible":false,"hint":null,"path":"/0","x":0,"y":0,"width":0,"height":0},">":[]}}}
info: [debug] Waited for 4045ms so far

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: evaluation finished

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: responding with:

info: [debug] [INST] 2016-06-07 08:07:24 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled...

info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2016-06-07 08:07:25 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()
       2016-06-07 08:07:25 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- GET /wd/hub/status 200 3.208 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}
info: <-- GET /wd/hub/status 200 1.244 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"0509b98b-adc7-40ac-9a6c-96a751b5e199"}

info: <-- POST /wd/hub/session - - ms - - 

undefined

#2 楼 @chenhengjie123

从 log 来看,获取元素树命令发出后就没回应了。

你试试直接用 UIAutomation 来执行获取元素树的 api,看能不能获取到?

#9 楼 @chenhengjie123 我直接在 instruments 界面下,输入

var target = UIATarget.localTarget();
var app = target.frontMostApp();  
var window = app.mainWindow(); 
target.logElementTree();

是可以打印出来的

#10 楼 @diao2007 这种情况略神奇。。。

想确认下,出现 undefined 后就一直都没有输出了吗?

需要 登录 後方可回應,如果你還沒有帳號按這裡 注册