还未发布过话题
  • 已阅

  • STF 集成 iOS 之 开源了 at 2019年10月24日

    WebDriverAgentRunner-Runner(2301,0x16e3eb000) malloc: *** mach_vm_map(size=458752) failed (error code=3)
    *** error: can't allocate region
    *** set a breakpoint in malloc_error_break to debug
    控制一段时间后,图像会卡住,然后 wda 重启,看 wda 有部分是这个错误,这是什么原因

  • 你这个问题怎么解决的哦

  • 是怎么解决的呢 stf provider 和 adb server 命令格式是怎样的哦

  • 是因为 10 不支持 uiautomation 改用 xcuitest?

  • 你用的 appium 是 1.5.3 吗 怎么在 ios10 的设备上跑起来哦

  • appium 1.5.3 的 inspector 在 ios 10 没跑起来 ios9 可以跑起来

    ios 10 报的错误:

    2017-02-23 14:52:50:408 - [debug] [Instruments] [INST STDERR] 2017-02-23 14:52:50.408 instruments[26163:392816] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.  Adding it now.
    
    2017-02-23 14:52:50:419 - [debug] [Instruments] [INST STDERR] 2017-02-23 14:52:50.419 instruments[26163:392816] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-209.19/CoreSimulator/SimServiceContext.m:536
    
    2017-02-23 14:52:50:485 - [debug] [Instruments] [INST STDERR] 2017-02-23 14:52:50.484 instruments[26163:392816] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The loaded com.apple.CoreSimulator.CoreSimulatorService job does not match our expectations: pathOfLoadedJob: /Users/liuyinping/Downloads/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService, our frameworkPath: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework'
    *** First throw call stack:
    (
        0   CoreFoundation                      0x00007fff8df2a4f2 __exceptionPreprocess + 178
        1   libobjc.A.dylib                     0x00007fff96ee8f7e objc_exception_throw + 48
        2   CoreFoundation                      0x00007fff8df2f1ca +[NSException raise:format:arguments:] + 106
        3   Foundation                          0x00007fff8fc7c856 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
        4   CoreSimulator                       0x0000000108a743e9 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid] + 1313
        5   CoreSimulator                       0x0000000108a74d01 -[SimServiceContext connect] + 41
        6   CoreSimulator                       0x0000000108a737a6 -[SimServiceContext initWithDeveloperDir:connectionType:] + 1108
        7   CoreSimulator                       0x0000000108a73071 __63+[SimServiceContext sharedServiceContextForDeveloperDir:error:]_block_invoke_2 + 127
        8   libdispatch.dylib                   0x00007fff9f9fb40b _dispatch_client_callout + 8
        9   libdispatch.dylib                   0x00007fff9f9fc9f2 _dispatch_barrier_sync_f_invoke + 74
        10  CoreSimulator                       0x0000000108a72ea6 +[SimServiceContext sharedServiceContextForDeveloperDir:error:] + 226
        11  XRMobileDeviceDiscoveryPlugIn       0x00000001142c464d XRMobileDeviceDiscoveryPlugIn + 26189
        12  libdispatch.dylib                   0x00007fff9f9fb40b _dispatch_client_callout + 8
        13  libdispatch.dylib                   0x00007fff9f9fb303 dispatch_once_f + 67
        14  XRMobileDeviceDiscoveryPlugIn       0x00000001142c4537 XRMobileDeviceDiscoveryPlugIn + 25911
        15  XRMobileDeviceDiscoveryPlugIn       0x00000001142c2e13 XRMobileDeviceDiscoveryPlugIn + 19987
        16  InstrumentsPlugIn                   0x0000000108da3f40 _startListening + 86
        17  libdispatch.dylib                   0x00007fff9f9fb40b _dispatch_client_callout + 8
        18  libdispatch.dylib                   0x00007fff9f9fc9f2 _dispatch_barrier_sync_f_invoke + 74
        19  InstrumentsPlugIn                   0x0000000108da3d00 __47+[XRDeviceDiscovery _faultDeviceDiscoveryImpls]_block_invoke + 592
        20  libdispatch.dylib                   0x00007fff9f9fb40b _dispatch_client_callout + 8
        21  libdispatch.dylib                   0x00007fff9f9fb303 dispatch_once_f + 67
        22  InstrumentsPlugIn                   0x0000000108da3aae +[XRDeviceDiscovery _faultDeviceDiscoveryImpls] + 91
        23  InstrumentsPlugIn                   0x0000000108da5a09 +[XRDeviceDiscovery devicesMatching:] + 44
        24  instruments                         0x0000000108a5b735 instruments + 10037
        25  instruments                         0x0000000108a5f9ef instruments + 27119
        26  libdyld.dylib                       0x00007fff91ffa5ad start + 1
    )
    
    2017-02-23 14:52:50:486 - [debug] [Instruments] [INST STDERR] libc++abi.dylib: terminating with uncaught exception of type NSException
    2017-02-23 14:52:50:493 - [debug] [Instruments] Instruments exited with code null
    
    2017-02-23 14:52:50:497 - [Instruments] Error launching instruments: Instruments crashed on startup
    
    
    
    2017-02-23 14:53:16:143 - [Instruments] Error launching instruments: Instruments crashed on startup
    
    2017-02-23 14:53:16:089 - [iOSLog] [IOS_SYSLOG_ROW] Feb 23 14:53:16 chenyibode-iPod locationd[59] <Notice>: message 'kCLConnectionMessageWatchdog' received from client '/System/Library/LocationBundles/AppGenius.bundle'
    2017-02-23 14:53:16:141 - [debug] [Instruments] Instruments exited with code 253
    2017-02-23 14:53:16:210 - [iOSLog] [IOS_SYSLOG_ROW] Feb 23 14:53:16 chenyibode-iPod gputoolsd(GPUToolsCore)[1877] <Notice>: schedule invalidation <DYTransport 0x1003027b0, error: lost transport connection (31)>
    2017-02-23 14:53:16:211 - [iOSLog] [IOS_SYSLOG_ROW] Feb 23 14:53:16 chenyibode-iPod gputoolsd(GPUToolsCore)[1877] <Notice>: terminating daemon 0x100302480
    2017-02-23 14:53:16:212 - [iOSLog] [IOS_SYSLOG_ROW] Feb 23 14:53:16 chenyibode-iPod DTServiceHub(DVTInstrumentsFoundation)[1473] <Notice>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
    2017-02-23 14:53:16:212 - [iOSLog] [IOS_SYSLOG_ROW] Feb 23 14:53:16 chenyibode-iPod notification_proxy(MobileSystemServices)[236] <Notice>: 0x16e113000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
    2017-02-23 14:53:16:213 - [iOSLog] [IOS_SYSLOG_ROW] Feb 23 14:53:16 chenyibode-iPod notification_proxy(MobileSystemServices)[236] <Notice>: 0x16e087000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
    2017-02-23 14:53:16:221 - [HTTP] <-- POST /wd/hub/session 500 33835 ms - 232 
    
    2017-02-23 14:53:16:209 - [Instruments] Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
        at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
        at Instruments.launch$ (lib/instruments.js:220:15)
        at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
        at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
        at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
        at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
        at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
        at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
        at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
    
  • 没卸载 ios-webkit-debug-proxy 按他的提示执行了 brew uninstall —ignore-dependencies libimobiledevice 然后执行 install --HEAD libimobiledevice -g
    之前太粗心了 没注意这个错误 所以没成功,刚刚试了用 appium 1.5.3 安装 debug 包在 ios10.1 上是成功了 但是 inspector 还是没起来,在看看是什么问题

  • 谢谢 大神 没报这个错了
    brew uninstall libimobiledevice -g
    Error: Refusing to uninstall /usr/local/Cellar/libimobiledevice/1.2.0
    because it is required by ios-webkit-debug-proxy, which is currently installed.
    You can override this and force removal with:
    brew uninstall —ignore-dependencies libimobiledevice
    liuyinpingdeMac-mini:db liuyinping$ brew uninstall —ignore-dependencies libimobiledevice
    Uninstalling /usr/local/Cellar/libimobiledevice/1.2.0… (65 files, 982.0K)

  • ios10.1.1 用了这个方法还是不行,ios9.3 使用正常,你们用的是什么版本