Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Appium[iOS]-无法';t在模拟器上启动应用程序_Ios_Automated Tests_Appium - Fatal编程技术网

Appium[iOS]-无法';t在模拟器上启动应用程序

Appium[iOS]-无法';t在模拟器上启动应用程序,ios,automated-tests,appium,Ios,Automated Tests,Appium,我已经安装了Appium和所有必要的东西,以便通过iOS模拟器运行应用程序 然后我启动了一个模拟器并启动了Appium(确保在启动前在设置中设置了应用程序的路径) 我不知道应用程序是否应该在启动后立即打开。这就是我为什么要当督察的原因。似乎设备已连接,应用程序的安装已启动。应用程序在启动屏幕显示后崩溃。我在另一个应用程序中尝试了相同的流程,得到了相同的结果。以下是来自Appium的日志: info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple

我已经安装了Appium和所有必要的东西,以便通过iOS模拟器运行应用程序

然后我启动了一个模拟器并启动了Appium(确保在启动前在设置中设置了应用程序的路径)

我不知道应用程序是否应该在启动后立即打开。这就是我为什么要当督察的原因。似乎设备已连接,应用程序的安装已启动。应用程序在启动屏幕显示后崩溃。我在另一个应用程序中尝试了相同的流程,得到了相同的结果。以下是来自Appium的日志:

info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple com.apple.CoreSimulator.SimDevice.73F7270E-C69E-4CF5-8586-39358163963A.launchd_sim[6364] (UIKitApplication:com.wholefoods.WholeFoods[0x7ca4][6420]): Program specified by service does not contain one of the requested architectures: �<0
info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple.local SpringBoard[6378]: Unable to get pid for 'UIKitApplication:com.wholefoods.WholeFoods[0x7ca4]': No such process (err 3)
info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple.local SpringBoard[6378]: Unable to delete job with label UIKitApplication:com.wholefoods.WholeFoods[0x7ca4]. Error: Operation now in progress
info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple.local SpringBoard[6378]: Application 'UIKitApplication:com.wholefoods.WholeFoods[0x7ca4]' exited for an unknown reason.
info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple com.apple.CoreSimulator.SimDevice.73F7270E-C69E-4CF5-8586-39358163963A.launchd_sim[6364] (UIKitApplication:com.wholefoods.WholeFoods[0x7ca4][6420]): Trampoline was terminated before jumping to service: Killed: 9

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 #2
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple.local DTMobileIS[6387]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Jul 24 10:29:07 MacBook-apple.local DTMobileIS[6387]: Could not create service named com.apple.instruments.server.services.launchdaemon

info: Launching instruments

info: [debug] Attempting to run app on iPad 2 (8.3 Simulator)
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 "iPad 2 (8.3 Simulator)" /var/folders/7x/pfjm_c_s37ngl66yrs82ry3m0000gn/T/115624-6265-9ypyif/Payload/WholeFoods.app -e UIASCRIPT "/Users/apple/Library/Application Support/appium/bootstrap/bootstrap-4e580d338a12229a.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib","LIB_PATH":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {"global":90000}

blablabla

info: [debug] Cleaning up appium session

info: [debug] Error: Instruments crashed on startup
at [object Object].Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:440:31)
at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:353:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Instruments crashed on startup)","origValue":"Instruments crashed on startup"},"sessionId":null}
info: <-- POST /wd/hub/session 500 117025.667 ms - 182 

error: Failed to start an Appium session, err was: Error: Instruments crashed on startup

info:[IOS_SYSLOG_ROW]Jul 24 10:29:07 MacBook apple com.apple.CoreSimulator.SimDevice.73F7270E-C69E-4CF5-8586-39358163963A.launchd_sim[6364](UIKitApplication:com.wholefoods.wholefoods[0x7ca4][6420]):服务指定的程序不包含请求的体系结构之一:� 解决方案很简单,但并不琐碎

为模拟器构建应用程序后:

  • 在左侧面板的Xcode中查找
    产品
  • 在那里你可以找到你的申请表。用鼠标右键单击它(即使它是红色的)
  • 在右侧面板中,您将看到路径位于
    完整路径
    。将其复制到最后一个元素。例如,查看
    /projects/../yourproject-/Build/Products/Debug iphoneos/yourproject.app
    您需要:
    /projects/../yourproject-/Build/Products
    3.1. 或者您可以通过以下方式找到它:用鼠标右键单击它(即使它是红色的),然后选择
    show in finder
  • 转到封闭文件夹(
    Go->封闭文件夹
  • 打开那个目录。你会在那里找到
    Debug iphonesimulator
    yourproject.app

  • 这正是您需要的解决方案。解决方案很简单,但并不琐碎

    为模拟器构建应用程序后:

  • 在左侧面板的Xcode中查找
    产品
  • 在那里你可以找到你的申请表。用鼠标右键单击它(即使它是红色的)
  • 在右侧面板中,您将看到路径位于
    完整路径
    。将其复制到最后一个元素。例如,查看
    /projects/../yourproject-/Build/Products/Debug iphoneos/yourproject.app
    您需要:
    /projects/../yourproject-/Build/Products
    3.1. 或者您可以通过以下方式找到它:用鼠标右键单击它(即使它是红色的),然后选择
    show in finder
  • 转到封闭文件夹(
    Go->封闭文件夹
  • 打开那个目录。你会在那里找到
    Debug iphonesimulator
    yourproject.app
  • 这就是你需要的