{"action":"created","issue":{"url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/issues/152","labels_url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/issues/152/comments","events_url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/issues/152/events","html_url":"https://github.com/libimobiledevice/libimobiledevice/issues/152","id":50741292,"number":152,"title":"idevice_id --list is returning iPhones that are not attached via USB","user":{"login":"jmoody","id":466104,"avatar_url":"https://avatars.githubusercontent.com/u/466104?v=3","gravatar_id":"","url":"https://api.github.com/users/jmoody","html_url":"https://github.com/jmoody","followers_url":"https://api.github.com/users/jmoody/followers","following_url":"https://api.github.com/users/jmoody/following{/other_user}","gists_url":"https://api.github.com/users/jmoody/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoody/subscriptions","organizations_url":"https://api.github.com/users/jmoody/orgs","repos_url":"https://api.github.com/users/jmoody/repos","events_url":"https://api.github.com/users/jmoody/events{/privacy}","received_events_url":"https://api.github.com/users/jmoody/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/labels/OS%20X","name":"OS X","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-12-02T22:57:07Z","updated_at":"2015-01-28T18:11:25Z","closed_at":null,"body":"I am not sure if this is expected behavior or not.\r\n\r\nI have rspec tests that target physical devices.  Part of the test setup is to re-install an .ipa on the (test) target devices.  \r\n\r\nPrior to Xcode 6, I asked `instruments` for the list of connected devices.\r\n\r\n```\r\n$ xcrun instruments -s devices\r\n```\r\n\r\nStarting with Xcode 6, iOS 8 devices on the local network appear as available for UIAutomation testing. However, ideviceinstaller cannot install an .ipa over the network.\r\n\r\nUntil the latest version of libimobiledevice, I have been able to find only those devices that are connected via USB using `idevice_id --list`.\r\n\r\nAfter updating to 1.1.7, I started seeing devices that are not attached via USB appearing in the output of `idevice_id --list`.\r\n\r\n### Configuration\r\n\r\n* MacOS 10.10.1\r\n* Xcode 6.1.1\r\n* libimobiledevice toolchain version 1.1.7\r\n\r\nThe offending device is iOS 8.1.1.\r\n\r\n### Reproduce\r\n\r\n1. Turn on an iOS 8.1.1 device, but don't connect it via USB.\r\n2. `$ idevice_id --list`\r\n\r\n### Expected\r\n\r\nThe device UDID to _not_ appear in the list of devices reported by `idevice_id --list`.\r\n\r\n### Found\r\n\r\nThe device UDID appears.\r\n\r\n### Notes\r\n\r\nOccasionally, the iOS 8.1.1 device appears 2x in the output:\r\n\r\n```\r\n$ idevice_id -l\r\n43be < snip > 91124\r\n89b5 < snip > 0ab7b\r\n43be < snip > 91124\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/issues/comments/71884862","html_url":"https://github.com/libimobiledevice/libimobiledevice/issues/152#issuecomment-71884862","issue_url":"https://api.github.com/repos/libimobiledevice/libimobiledevice/issues/152","id":71884862,"user":{"login":"FunkyM","id":1871867,"avatar_url":"https://avatars.githubusercontent.com/u/1871867?v=3","gravatar_id":"","url":"https://api.github.com/users/FunkyM","html_url":"https://github.com/FunkyM","followers_url":"https://api.github.com/users/FunkyM/followers","following_url":"https://api.github.com/users/FunkyM/following{/other_user}","gists_url":"https://api.github.com/users/FunkyM/gists{/gist_id}","starred_url":"https://api.github.com/users/FunkyM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FunkyM/subscriptions","organizations_url":"https://api.github.com/users/FunkyM/orgs","repos_url":"https://api.github.com/users/FunkyM/repos","events_url":"https://api.github.com/users/FunkyM/events{/privacy}","received_events_url":"https://api.github.com/users/FunkyM/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T18:11:25Z","updated_at":"2015-01-28T18:11:25Z","body":"WiFi communication is unstable and Apple's usbmuxd might have cached an older WiFi connected device to overcome connection drops. This is probably the reason why you still see some devices despite turning off WiFi.\r\n\r\nAs you can imagine, it doesn't make sense that your device would still be working when neither attached by USB or WiFi.\r\n\r\nAnyways, this is an unhandled feature to be fixed in libusbmuxd which needs to learn to skip devices with the \"Network\" connection type property.\r\n\r\nThus confirming this is a duplicate of libimobiledevice/libusbmuxd#22 (see related ticket for a temporary workaround, too).\r\n\r\nWe'll probably fix it properly soon in libusbmuxd without implementing WiFi support yet."}}