2016-05-11 9 views
0

テストサーバーを起動しようとしています。以下のエラーが表示されます。 解決策を教えてください。私は宝石のバージョンの異なる組み合わせを試みたが、運がない。 これについてのお礼をいただきました。Calabash-iosコンソールはDEVICE_TARGET = 'iPhone 5(9.2)'で起動できません

私はあなたのコメントから、

DEVICE_TARGET='iPhone 5 (9.2)' calabash-ios console 


irb(main):001:0> start_test_server_in_background 

ArgumentError: Could not find a device with a UDID or name matching 'iPhone' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop/device.rb:126:in device_with_identifier' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop/device.rb:160:in detect_device' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop/core.rb:71:in run_with_options' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop.rb:134:in run' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:718:in block in new_run_loop' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:716:in times' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:716:in new_run_loop' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:584:in relaunch' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/core.rb:943:in start_test_server_in_background' from (irb):1 from /Users/test/.rvm/rubies/ruby-2.0.0-p353/bin/irb:12:in '

答えて

0

UPDATE

ようなコマンドを使用しています、あなたが物理デバイスではなく、シミュレータ上で起動しようとしている表示されます。これは "iPhone 5(9.2)"がシミュレータと同じ命名規則を持っているので混乱します。

:上記の例では

$ xcrun instruments -s devices 
stern [4AFA58C7-5D39-54D0-9733-04302E7XXXXX] 
neptune (9.3.1) [43be3f89d9587e9468c24672777ff6241bdXXXXX] 
uranus (9.3.1) [6c3ed5434b5dfc29758f8835644b55bd43XXXXX] 
Apple TV 1080p (9.0) [D6875A98-2C0E-4138-85EF-841025A54DE0] (Simulator) 
# the rest are simulators. 

:あなたは物理的なデバイスをターゲットとする場合

は、あなたがinstrumentsの出力の最初の数行に見つけることができるデバイスのUDIDを使用する必要がありますあなたは賢明にあなたのデバイスに名前を付ける場合は、あなたを

$ DEVICE_TARGET=43be3f89d9587e9468c24672777ff6241bdXXXXX \ 
    DEVICE_ENDPOINT=http://<ip of your device>:37265 \ 
    calabash-ios console 

* stern is the host computer. 
* neptune and uranus are physical devices. 
は海王星を対象とするために、また、これを行うことができます。

$ DEVICE_TARGET=neptune \ 
    DEVICE_ENDPOINT=http://<ip of your device>:37265 \ 
    calabash-ios console 

私はあなたの物理デバイス名が正確シミュレータ名と一致するため、カラバッシュはあなたがターゲットにしたいどのデバイスについて混乱があると思われます。要約すると

:あなたは役に立ちTesting on Physical Devices wikiページを見つけるかもしれない

1. Use the UDID you get from instruments. 
$ DEVICE_TARGET=43be3f89d9587e9468c24672777ff6241bdXXXXX \ 
    DEVICE_ENDPOINT=http://<ip of your device>:37265 \ 
    calabash-ios console 

2. Rename your device to something like "iphone5" 
$ DEVICE_TARGET=iphone5 \ 
    DEVICE_ENDPOINT=http://<ip of your device>:37265 \ 
    calabash-ios console 

:あなたは2つのオプションがあります。

前の回答

あなたは"引用符を試みたことがありますか?何らかの理由

$ DEVICE_TARGET="iPhone 5 (9.2)" calabash-ios console 

ArgumentError: Could not find a device with a UDID or name matching 'iPhone' from

、実行ループの文字列の "5(9.2)" の部分が欠落しています。

あなたがiPhone 5 iOS 9.2シミュレータをインストールしていないということが私には分かります。あなたはXcodeで1つを見ますか?

また、UDIDを直接使用することもできます。

# List the available simulators 
$ xcrun instruments -s devices 
<snip> 
iPhone 6 Plus (9.3) [D6AFEDFE-2E02-4A33-AEC8-740053DDC6DE] (Simulator) 

# Use the UDID directly. 
$ DEVICE_TARGET="D6AFEDFE-2E02-4A33-AEC8-740053DDC6DE" calabash-ios console 
+0

も、私は以下のように同じエラーを取得しています二重引用符で試した後:IRBを実行DEVICE_TARGET = "A45EB390-9BE5-4B49-A933-E1F91B5334CA" ひょうたん-IOSコンソール ... IRB(メイン):001:0> start_test_server_in_background と、ArgumentError:/Users/.rvm/gems/ruby-2.0.0-p353/gems/run_loopからUDIDまたは名前一致する 'iPhone' \tとデバイスが見つかりませんでした-2.1.1/lib/run_loop/device.rb:126: 'device_with_identifier ' \t /Users/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop/からdevice.rb:160: 'detect_device ' – apparao

+0

私はUSBを使ってデバイスを接続していて、そのデバイスをXCODEの名前であるiPhone 5(9.2)で見ることができます。しかし、まだそれは動作していません。 宝石のバージョンに問題はありますか? – apparao

+0

あなたのコメントに基づいて私の答えを更新しました。 – jmoody

関連する問題