diff --git a/scripts/find-ios-device.rb b/scripts/find-ios-device.rb index 623fde50..cb5a2a51 100644 --- a/scripts/find-ios-device.rb +++ b/scripts/find-ios-device.rb @@ -19,4 +19,6 @@ else .reverse! end -puts device[0]['udid'] +if device and device[0] then + puts device[0]['udid'] +end