xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

Don't output 'Please authenticate to install simulator' is sudo was authenticated earlier. #245

Open nickolas-pohilets opened 7 years ago

nickolas-pohilets commented 7 years ago

If sudo was authenticated before, then password prompt won't appear and installation will proceed. In this case, you see a line telling you to authenticate and an empty line with blinking cursor. The later may be confused for the insecure password prompt.

It is possible to check if sudo requires a password by executing dummy command with sudo -n. This is racy, and there is a chance that password will be requested without printing the line in question. But IMHO, overall user experience should be better with this check.

jshier commented 6 years ago

Ah, I think this is what I've been seeing. Quite confusing. Usually occurs when I'm installing many sims sequentially (and manually).

tolsadus commented 6 years ago

So after the Please authenticate to install iOS 8.1 Simulator... we just need to wait until there is a Successfully installed iOS 8.4 Simulator ?

igorgn commented 5 years ago

Was searching for a solution for this, and turns out patience is the key. Very confusing behaviour

tolsadus commented 5 years ago

Oh. :(