Appium Appium_inspector_ios_Simulator_启动时无法安装.app 文件,之后 Instruments crashed on startup

小明 · 2016年04月15日 · 最后由 小明 回复于 2016年04月22日 · 2064 次阅读

基础环境

  • mac 版本 10.11.4 (15E65)
  • xcode Version 7.3 (7D175)
  • appium 是 dmg 客户端,版本是:1.4.13
  • 测试 app 是官方的例子 TestApp.app
  • simulator 是 iOS 9.3

参数配置

错误日志

info: Launching instruments

info: [debug] Attempting to run app on iPhone 6 (9.3)

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 "iPhone 6 (9.3)" io.appium.TestApp -e UIASCRIPT "/Users/ufenqi/Library/Application Support/appium/bootstrap/bootstrap-f062718992d59810.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}

info: [IOS_SYSLOG_ROW ] Apr 15 15:12:20 --- last message repeated 3 times ---

info: [IOS_SYSLOG_ROW ] Apr 15 15:12:20 localhost SpringBoard[9946]: [FBSystemService] Error launching io.appium.TestApp: NotFound (4)

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'io.appium.TestApp'

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 #2
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Apr 15 15:12:24 --- last message repeated 15 times ---
info: [IOS_SYSLOG_ROW ] Apr 15 15:12:24 localhost DTServiceHub[9955]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: Launching instruments

info: [debug] Attempting to run app on iPhone 6 (9.3)
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 "iPhone 6 (9.3)" io.appium.TestApp -e UIASCRIPT "/Users/ufenqi/Library/Application Support/appium/bootstrap/bootstrap-f062718992d59810.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}

info: [IOS_SYSLOG_ROW ] Apr 15 15:12:31 localhost SpringBoard[9946]: [FBSystemService] Error launching io.appium.TestApp: NotFound (4)

info: [IOS_SYSLOG_ROW ] Apr 15 15:12:33 --- last message repeated 11 times ---
info: [IOS_SYSLOG_ROW ] Apr 15 15:12:33 localhost mstreamd[9936]: (Note ) PS: Media stream daemon stopping.

info: [IOS_SYSLOG_ROW ] Apr 15 15:12:33 localhost mstreamd[9936]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7f8372506020>: Shared Streams daemon has shut down.
info: [IOS_SYSLOG_ROW ] Apr 15 15:12:33 localhost mstreamd[9936]: (Warn ) mstreamd: mstreamd shutting down.

info: [IOS_SYSLOG_ROW ] Apr 15 15:12:34 localhost SpringBoard[9946]: [FBSystemService] Error launching io.appium.TestApp: NotFound (4)

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'io.appium.TestApp'

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 #3
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Apr 15 15:12:35 --- last message repeated 3 times ---
info: [IOS_SYSLOG_ROW ] Apr 15 15:12:35 localhost DTServiceHub[9955]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: Launching instruments

info: [debug] Attempting to run app on iPhone 6 (9.3)
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 "iPhone 6 (9.3)" io.appium.TestApp -e UIASCRIPT "/Users/ufenqi/Library/Application Support/appium/bootstrap/bootstrap-f062718992d59810.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}

info: [IOS_SYSLOG_ROW ] Apr 15 15:12:41 localhost SpringBoard[9946]: [FBSystemService] Error launching io.appium.TestApp: NotFound (4)

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'io.appium.TestApp'

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

error: Could not pre-launch appium: Error: Instruments crashed on startup

日志中提示找不到 io.appium.TestApp,感觉是安装的过程出问题了,直接将 app 文件拖到模拟器上面可以正常进行下一步操作。请大家帮忙看看是什么问题导致的~~

共收到 8 条回复 时间 点赞

把 BundleID 勾选去掉试试

指定了 app 就不要用 bundleid 了。

#1 楼 @isobel 谢谢,去掉以后可以了,但是原因是什么呢?因为也没有在文档上看到这两个参数不是一起的,我记得以前用低版本的时候是需要这个参数的。

#2 楼 @lihuazhang 谢谢,去掉以后运行成功了,是哪个版本改成这样的?我以前用低版本的时候是需要这个参数的?而且日志和文档没看到只需要其中一个参数。

#4 楼 @mingyuwang 一直都是一个参数起作用。

#5 楼 @lihuazhang 好的,那应该是以前配了两个参数没有报错,但是只有一个起作用了。非常感谢``

#6 楼 @mingyuwang 这个 testAPP.app 在哪里下载的?

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