elliotweiser / ansible-osx-command-line-tools

An Ansible role for installing OS X Command Line Tools
https://galaxy.ansible.com/elliotweiser/osx-command-line-tools/
MIT License
96 stars 42 forks source link

Why is it necessary to check? That also pop-up a unwanted dialog #62

Closed senguttuvang closed 3 years ago

senguttuvang commented 4 years ago

I don't know the purpose of gcc check but it fails and brings up a pop-up in the target Mac system. Is it expected behavior?

image

image

elliotweiser commented 4 years ago

Hmm. I don't recall this behavior happening at any point up to OS X 10.14 (Mojave). Is this on Catalina? Can you share some details about your target OS version?

senguttuvang commented 4 years ago

Yes, that's Catalina with latest update (10.5.6)

elliotweiser commented 4 years ago

I haven't gotten around to adding catalina support just yet, and there have been some reports of other weird issues when running this role on OS X 10.15.+. There will need to be some investigation to fully add this support.

jdumas commented 3 years ago

FYI I'm also experiencing this issue on Big Sur (macOS 11.2.3).

jdumas commented 3 years ago

According to this SO answer, we should use the following to check for command line tools:

xcode-select -p
elliotweiser commented 3 years ago

Hi @jdumas. Last time I messed with this, that would also spawn the unwanted dialogue. I haven't had much time to test this on Big Sur. Feel free to submit a PR if you believe this is a better/more appropriate way to test the presence of the CLI tools.