removed checks related to udid and avd and added a check for udid only for ios.