簡體   English   中英

calabash-ios物理設備測試,應用程序啟動但崩潰

[英]calabash-ios physical device test, app starts but crashes

為簡單的iPhone應用程序運行calabash-ios黃瓜。 模擬器工作得很好。 在物理設備上嘗試時,應用程序會加載,崩潰,然后再次加載,並在循環中再次崩潰。

錯誤信息:

Unable to start. Make sure you've set APP_BUNDLE_PATH to a build supported by this simulator version
  Calabash::Cucumber::Launcher::StartError: Time out waiting for UIAutomation run-loop Error while writing to fifo. RunLoop::Fifo::NoReaderConfiguredError. 
   Logfile /var/folders/9s/yttj4cz93m98hqs6bfw2x8xr0000gn/T/run_loop20150522-12657-dr3m49/run_loop.out 

   2015-05-22 19:58:11 +0000 Fail: An error occurred while trying to run the script.
  Instruments Trace Complete (Duration : 2.594758s; Output : /var/folders/9s/yttj4cz93m98hqs6bfw2x8xr0000gn/T/run_loop20150522-12657-dr3m49/trace.trace)
  to run the script.  UIAScriptAgentSignaledException

   (Calabash::Cucumber::Launcher::StartError)
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.14.3/lib/calabash-cucumber/launcher.rb:766:in `new_run_loop'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.14.3/lib/calabash-cucumber/launcher.rb:631:in `relaunch'

腳步:

  1. 在設備上加載app-cal
  2. 使用以下命令在命令行中運行:

    $ DEVICE_TARGET = udid BUNDLE_ID = com.company.app DEVICE_ENDPOINT = http:// ip:37265

Error while writing to fifo. RunLoop::Fifo::NoReaderConfiguredError

可能的原因是該設備未啟用UIAutomation。 必須啟用該設備才能進行開發。 如果設備出現在Xcode的設備窗口(Shift + Command +2)中,則設備已啟用開發,您必須通過訪問設備的Settings.app> Developer選項卡手動啟用設備上測試。

如果您最近升級了iOS版本,我們建議您再次檢查UIAutomation設置並重新啟動。 通常,升級后,Xcode無法從設備下載調試信息。 看看Xcode的設備窗口。 設備必須沒有任何警告。

有時設備會進入糟糕狀態,Xcode無法與之通信。 我們建議嘗試使用Apple的儀器與設備進行交互,以清除這種不良狀態。

所有這些信息和更多信息都可以在Calabash iOS Hot Topics頁面上找到。 https://github.com/calabash/calabash-ios/wiki/Hot-Topics#6-errnoeintr-interrupted-system-call

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM