Appium [问题] Appium 使用模拟器运行不断闪退解决办法

王明海 · 2016年05月30日 · 最后由 debugtalk 回复于 2016年05月31日 · 3518 次阅读

appiun 使用真机运行安装的 Dedug 包运行正常,但是使用模拟器运行.ipa 包时不断出现不断闪退情况
log 日志

info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Unable to get pid for 'UIKitApplication:cn.com.10jqka.IHexin[0xb611]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Bootstrapping failed for <FBApplicationProcess: 0x7fe46b44aaf0; cn.com.10jqka.IHexin; pid: -1>
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Application 'UIKitApplication:cn.com.10jqka.IHexin[0xb611]' exited for an unknown reason.
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini com.apple.CoreSimulator.SimDevice.3E6EEACD-7542-447F-B768-2C8FE8B0975E.launchd_sim[1713] (UIKitApplication:cn.com.10jqka.IHexin[0x46f4][1870]): Program specified by service does not contain one of the requested architectures: R
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Unable to get pid for 'UIKitApplication:cn.com.10jqka.IHexin[0x46f4]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Bootstrapping failed for <FBApplicationProcess: 0x7fe46b11be60; cn.com.10jqka.IHexin; pid: -1>
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: [FBSystemService] Error launching cn.com.10jqka.IHexin: Unspecified (1)
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 --- last message repeated 1 time ---
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Application 'UIKitApplication:cn.com.10jqka.IHexin[0x46f4]' exited voluntarily.

info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini com.apple.CoreSimulator.SimDevice.3E6EEACD-7542-447F-B768-2C8FE8B0975E.launchd_sim[1713] (UIKitApplication:cn.com.10jqka.IHexin[0xdfa0][1871]): Program specified by service does not contain one of the requested architectures: �

info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Unable to get pid for 'UIKitApplication:cn.com.10jqka.IHexin[0xdfa0]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Bootstrapping failed for <FBApplicationProcess: 0x7fe46b1c8650; cn.com.10jqka.IHexin; pid: -1>
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Application 'UIKitApplication:cn.com.10jqka.IHexin[0xdfa0]' exited voluntarily.
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini com.apple.CoreSimulator.SimDevice.3E6EEACD-7542-447F-B768-2C8FE8B0975E.launchd_sim[1713] (UIKitApplication:cn.com.10jqka.IHexin[0xda11][1872]): Program specified by service does not contain one of the requested architectures: R
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Unable to get pid for 'UIKitApplication:cn.com.10jqka.IHexin[0xda11]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Bootstrapping failed for <FBApplicationProcess: 0x7fe468e74110; cn.com.10jqka.IHexin; pid: -1>
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: [FBSystemService] Error launching cn.com.10jqka.IHexin: Unspecified (1)
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 --- last message repeated 1 time ---
info: [IOS_SYSLOG_ROW ] May 30 19:07:14 fanmaoyudeMac-mini SpringBoard[1730]: Application 'UIKitApplication:cn.com.10jqka.IHexin[0xda11]' exited for an unknown reason.

info: [IOS_SYSLOG_ROW ] May 30 19:07:15 fanmaoyudeMac-mini com.apple.CoreSimulator.SimDevice.3E6EEACD-7542-447F-B768-2C8FE8B0975E.launchd_sim[1713] (UIKitApplication:cn.com.10jqka.IHexin[0xc554][1873]): Program specified by service does not contain one of the requested architectures: R

info: [IOS_SYSLOG_ROW ] May 30 19:07:15 fanmaoyudeMac-mini SpringBoard[1730]: Unable to get pid for 'UIKitApplication:cn.com.10jqka.IHexin[0xc554]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] May 30 19:07:15 fanmaoyudeMac-mini SpringBoard[1730]: Bootstrapping failed for <FBApplicationProcess: 0x7fe468f5c490; cn.com.10jqka.IHexin; pid: -1>
info: [IOS_SYSLOG_ROW ] May 30 19:07:15 fanmaoyudeMac-mini SpringBoard[1730]: [FBSystemService] Error launching cn.com.10jqka.IHexin: Unspecified (1)
info: [IOS_SYSLOG_ROW ] May 30 19:07:15 --- last message repeated 1 time ---
info: [IOS_SYSLOG_ROW ] May 30 19:07:15 fanmaoyudeMac-mini SpringBoard[1730]: Application 'UIKitApplication:cn.com.10jqka.IHexin[0xc554]' exited voluntarily.

info: [debug] [INST STDERR] 2016-05-30 19:07:16.026 instruments[1855:66746] Attempting to change event horizon while disengage

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.) : Failed to launch process with bundle identifier 'cn.com.10jqka.IHexin'
info: [debug] [INST STDERR] 2016-05-30 19:07:16.028 instruments[1855:66743] Attempting to change event horizon while disengage
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killing any other simulator daemons
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] May 30 19:07:16 fanmaoyudeMac-mini DTServiceHub[1739]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [debug] Cleaning sim data files
info: node-simctl: Executing: xcrun with args: simctl erase 3E6EEACD-7542-447F-B768-2C8FE8B0975E and timeout: 2000

info: [debug] Cleaning app data files

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

warn: Applications directory /Users/hulianghai/Library/Developer/CoreSimulator/Devices/3E6EEACD-7542-447F-B768-2C8FE8B0975E/data/Containers/Data/Application doesn't exist. Have you run this simulator before?
warn: Applications directory /Users/hulianghai/Library/Developer/CoreSimulator/Devices/3E6EEACD-7542-447F-B768-2C8FE8B0975E/data/Containers/Bundle/Application doesn't exist. Have you run this simulator before?
info: Couldn't find app directories to delete. Probably it's not installed
info: [debug] Cleaning up appium session
共收到 4 条回复 时间 点赞

iOS 的 ipa 包不跨平台。要不只能用于真机,要不只能用于模拟器。

你先确定你用的 ipa 包是针对模拟器的吧。

貌似要打成对应模拟器的包才行

模拟器的包是.app

之前写的,里面有详细讲解。
https://testerhome.com/topics/4960

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