Attempts to install command line developer tools with xcode-select --install just returns the following error:
xcode-select: note: install requested for command line developer tool
but when the dialog box asks me to confirm my request, it says it failed due to a network problem. Obviously I am online, I think the problem is that it isn't properly connecting to the right network.
I have seen in similar threads that on 10.12 Sierra that the command line tools can be installed/updated through the Mac App Store, but after my wireless card and some other components were replaced in my MacBook Pro, I can no longer connect to the App Store (or iCloud and the iTunes or iBooks stores) without getting an error saying my device cannot be verified. I was told by Apple Support to do an erase-and-reinstall to solve the problem, but that didn't work.
This is why I am trying to find a method to install the command line tools directly from Terminal, one which does not require access to the App Store. xcode-select --install` worked fine on El Capitan and below, so I hope this feature is still available, even if the command is different.
Can anyone help me out, or point me toward an alternate solution? If not, I guess I'll have to downgrade.
I looked on the Apple Developer website and found a Developer Tools download for all the versions of Xcode. You need an iCloud ID to download, but not a paid developer account.
https://developer.apple.com/download/more/
Related
I've got this old error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Side question: why does this error come up from time to time? I could compile my C++ program just fine before. Is this because of a system upgrade?
Anyway, the suggested solution is to run:
xcode-select --install
I guess that would work, except that:
How many hundreds of gigabytes is that exactly? No, my internet connection is not that slow. Since downloading a system update is also unreasonably slow, I blame Apples servers for this.
Now, my question is, are there alternatives? Can I install developer tools via brew for example? Is there a catch, since I already have (probably outdated) Apple developer tools installed?
I trying to add device conditions in my Xcode 11 so that I can simulate a slower network connection. However, when opening Devices and Simulators window and making sure my device is selected, it says that 'No Conditions Available'
How do I make them appear?
I finally managed to fix this. It appears that you need to have a 'Network Link Conditioner' installed on your Mac (in my case Catalina) for the the option to appear in Devices and Simulator window. To install it, go to Downloads for Apple Developers and download 'Additional Tools for Xcode 11'. Once downloaded, you can find it in the Hardware folder. Interestingly, when trying to install it, I received the following error:
“Network Link Conditioner” preferences is installed with macOS and can’t be replaced.
Despite me unable to find it in preferences. Luckily there is an easy fix described in this answer.
I had the same issue. Try to install the latest system software updates (Xcode Command Line Tools in my case). It worked for me.
I am trying to install Xcode 4.2 on my Mac system having OS version 10.6.8.
Actually, I removed the Xcode from the system and tried to reinstall it.
I quit iTunes before installing it, and I have enough free space on disc (111 GB). Below is a screenshot of the error. What should I do?
Set your system time to 1st January 2012 or earlier (but not too early), as the certificate that signed the package has expired.
I had the same error message. In my case, it was solved by updating the OS software. There was an update waiting for "Apple installations software". After the update, Xcode installed perfectly well.
I found out I could download the installer directly from Apple instead of through the app store, and that the error described by the accepted answer could also be circumvented by installing the Mobile Development Framework manually.
See forum post Problems installing Xcode on Lion for more details.
I had the same trouble on Mac OS 10.8.5 when installing Xcode 4.4.1, Xcode 5.1.1, and Security_Update_2014-005. It turned out that the reason was the same in all these cases: an incompatibility with Vodafone/Huawei UMTS drivers. A workaround in this case is to temporarily move them away, e.g.
mv /System/Library/Extensions/{HuaweiDataCardDriver.kext,Vodafone.kext,VodafoneFilter.kext} ~
Then do the installation/update, and then restore those drivers, e.g.,
mv ~/{HuaweiDataCardDriver.kext,Vodafone.kext,VodafoneFilter.kext} /System/Library/Extensions/
I'm using Xcode 4.3.2 and it tried to install an update to the command line tools.
I clicked the update button and Xcode told me that [my apple id] does not have access to Command Line Tools. (Contact Apple Developer Support to resolve account access issues.)
The problem happened with 4.3.1 too, I just did the update to 4.3.2 because I thought that it will resolve the issue.
My account is a paid Mac + iOS Developer account. I am pretty sure I should have access to these tools. But Xcode tells me I don't.
I logged in to the developer portal and checked for new Terms of Service too. Everything looks alright.
How can I install the update? Does anybody have a solution for this?
Yes its all over the Twitter... Just go to Apple Downloads and manually install it. They are investigating the issue as far as I know
Dominik Porada details the solution at Xcode 4.5 and iOS 5.1 Simulator, ie. download the old XCode 4.4.1 from Apple and pull out the simulation. Personally, I just copied the simulator from one of my other Macs that I hadn't upgraded XCode on yet.
Not sure if it's still relevant but xcode-select --install might do it.
I had the same problem last night after the update to Mountain Lion and Xcode 4.4.
This morning I tried to build something in xcode and it told me that developer mode wasn't enabled on the mac. Once I enabled it, I tried to download the command tools again and that happened to work fine now.
I'm a mac OSX developer and have an App which I am trying to get ready for the App Store. The provisioning file which I created on the Apple developer site and then downloaded via Safari is not recognized as a valid extension by anything. I cant load this document into either XCODE4 or the keychain. All of the other certificates have worked as expended. I have uninstalled XCode and then reinstalled it. Still a no-go. I can't find any help anywhere on the web. I have written apple developer support and have been waiting nearly two weeks.
This can't be this difficult to fix... Help please.
I got my own answer from apple dev... You have to be using Lion and Xcode4 for lion...
This really blows since I have some tools that require Rosetta in order to run. Now that Apple has removed Rosetta in lion this will complicate some product development and maintenance.
I will try this upgrade and see if it fixes the provision file problem...