You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I opened this issue, it appears that I failed to copy in the first error, which is key to the solution. In response to the installation command:
devtools::install_github(
"diyabc/diyabcGUI",
subdir = "R-pkg"
)
I received the following. The error "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun" was the key.
Downloading GitHub repo diyabc/diyabcGUI@HEAD
'/usr/bin/git' clone --depth 1 --no-hardlinks --recurse-submodules --branch prod https://github.com/diyabc/DesktopDeployR.git /var/folders/h_/5sq53ll92_3chqcnft0tvpfr0000gn/T//RtmpobBulX/remotes146c52499bad0/diyabc-diyabcGUI-45092b9/R-pkg/../build/DIYABC-RF_GUI_windows
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failed to install 'diyabcGUI' from GitHub:
Command failed (1)
In addition: Warning message:
In system(full, intern = TRUE, ignore.stderr = quiet) :
running command ''/usr/bin/git' clone --depth 1 --no-hardlinks --recurse-submodules --branch prod https://github.com/diyabc/DesktopDeployR.git /var/folders/h_/5sq53ll92_3chqcnft0tvpfr0000gn/T//RtmpobBulX/remotes146c52499bad0/diyabc-diyabcGUI-45092b9/R-pkg/../build/DIYABC-RF_GUI_windows' had status 1
The solution (pointed out to me by Alex Bajcz) is to install the Command Line Tools from Xcode
Open a terminal and run:
xcode-select --install
As detailed in the linked discussion (below) "...This will pop a dialogue box, Select "Install", and it will download and install the Command Line Tools package and fix the problem. (The popped Window may be behind other windows.)"
Due to work overload, the development, support and maintenance for the project diyabcGUI is currently paused. Feel free to contact us (by submitting an issue) if you want to take over the development for this project. Pull request are also welcome to fix bug or implement missing functionalities.
I have updated the README file to announce this. This is the official announcement to clarify a situation that has been going on for quite some time.
You can still use the command line version of the software which is still maintained/supported. Check the documentation page here.
Activity
mamccartney commentedon Apr 4, 2023
When I opened this issue, it appears that I failed to copy in the first error, which is key to the solution. In response to the installation command:
I received the following. The error "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun" was the key.
Downloading GitHub repo diyabc/diyabcGUI@HEAD
'/usr/bin/git' clone --depth 1 --no-hardlinks --recurse-submodules --branch prod https://github.com/diyabc/DesktopDeployR.git /var/folders/h_/5sq53ll92_3chqcnft0tvpfr0000gn/T//RtmpobBulX/remotes146c52499bad0/diyabc-diyabcGUI-45092b9/R-pkg/../build/DIYABC-RF_GUI_windows
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failed to install 'diyabcGUI' from GitHub:
Command failed (1)
In addition: Warning message:
In system(full, intern = TRUE, ignore.stderr = quiet) :
running command ''/usr/bin/git' clone --depth 1 --no-hardlinks --recurse-submodules --branch prod https://github.com/diyabc/DesktopDeployR.git /var/folders/h_/5sq53ll92_3chqcnft0tvpfr0000gn/T//RtmpobBulX/remotes146c52499bad0/diyabc-diyabcGUI-45092b9/R-pkg/../build/DIYABC-RF_GUI_windows' had status 1
The solution (pointed out to me by Alex Bajcz) is to install the Command Line Tools from Xcode
Open a terminal and run:
xcode-select --install
As detailed in the linked discussion (below) "...This will pop a dialogue box, Select "Install", and it will download and install the Command Line Tools package and fix the problem. (The popped Window may be behind other windows.)"
You don't have to install Xcode, just the Command Line Tools package.
For more details, see: https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a
All the best,
Michael
Michael A McCartney, PhD
Research Associate,
Aquatic Invasive Species
Ecology, Evolution and Genomics
St. Paul MN, USA
gdurif commentedon Aug 30, 2024
Hi, I am really sorry for the very late reply.
Due to work overload, the development, support and maintenance for the project diyabcGUI is currently paused. Feel free to contact us (by submitting an issue) if you want to take over the development for this project. Pull request are also welcome to fix bug or implement missing functionalities.
I have updated the README file to announce this. This is the official announcement to clarify a situation that has been going on for quite some time.
You can still use the command line version of the software which is still maintained/supported. Check the documentation page here.
All my apologies for the trouble,
Best regards