Appium 启动 inspector Instruments Trace Error : Target failed to run: Failed looking up pid of launched process

kristina · January 02, 2015 · Last by wm replied at June 01, 2015 · 1153 hits

尝试启动 inspector,但是提示找不到 pid 不知道为何?
使用 appium 官网提供的例子 正常启动 inspector,但是使用开发者提供的 release 版本的 app,无法启动

使用环境是 appium1.3.3,simulator iphone5 ios8.1

错误信息如下:
info: [IOS_SYSLOG_ROW ] Jan 2 13:36:41 KristinadeMacBook-Pro.local SpringBoard[657]: Unable to get pid for 'UIKitApplication:com.unicom.zq.pushtest[0xc103]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] Jan 2 13:36:41 KristinadeMacBook-Pro.local SpringBoard[657]: Application 'UIKitApplication:com.unicom.zq.pushtest[0xc103]' exited voluntarily.

info: [IOS_SYSLOG_ROW ] Jan 2 13:36:41 KristinadeMacBook-Pro.local networkd[682]: -[NETProxyLookup pacLookupComplete:proxies:error:] PAC evaluation error: Error Domain=kCFErrorDomainCFNetwork Code=308 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 308.)"

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Failed looking up pid of launched process

info: [debug] [INSTSERVER] Instruments exited with code 253

info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Jan 2 13:36:42 KristinadeMacBook-Pro.local DTMobileIS[666]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Jan 2 13:36:42 KristinadeMacBook-Pro.local DTMobileIS[666]: Could not create service named com.apple.instruments.server.services.launchdaemon

看到有人遇到此类情况,但未看到解决方案,希望大神指教~

共收到 3 条回复 时间 点赞

开发者提供的 release 版本的 app。 是神马证书? 看看 appium 能测试神马证书的 app

#1 楼 @lihuazhang 多谢提醒,做了 2 个试验,同一个 app,打包出一个带证书,一个不带证书,带证书的 app 在 appium 上运行,会出现上述问题,不带证书的正常运行,
真机上 带证书的 app 正常运行,应该是 appium 在模拟器上不能运行带证书的 app。

碰到了跟这个一样的问题,原因是因为 debug 出来的包当时只选择了 iphone5s ios8.1,而我 appium 中设置的跟这个不一致,所以会有问题,解决方法就是 appium 在使用模拟器时 device 配置与 debug 一致

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up