Can't Open .xip Xcode File - xcode

I'm trying to install XCode 10.2 (most recent) through the developer.apple.com download. After downloading the .xip file, I try to open it like many other people have suggested, but it just creates a XCode_10.2.xip.cpgz file. I click on that and it creates an XCode_10. 2 2.xip and the cycle continues.
Because of billing issues, I can't use the app store to download XCode.

You can install upgrades from the terminal without going to app store. If your running Mojave then Xcode 10.2 will run on your machine. If not, then Xcode 10.1 is latest version.
Go to the terminal and type sudo softwareupdate -i -a and press Enter. This will download all application upgrades for your computer; not just Xcode.
Again, don't attempt to upgrade XCode unless you are running Mojave 10.14

Related

Terminal does not find the installed Xcode

i have download and installed the Xcode 12.4 from apple site (not apple store) because I am using macOS Catalina 10.15.7 and the latest Xcode version right now requires at-least BigSur 11.0. I have also installed the latest Xcode command line tools.
But when i try to open my react native project in Xcode simulator from terminal using npm run ios it says,
"Xcode needs to be installed (don't worry, you won't have to use it), would you like to continue to the App Store? › (Y/n)"
By the way, I am a new mac user so, i don't know much about it yet. So, any kind of help will be appreciated.
My bad, i have not selected the installed command line tools in Xcode. If anybody got this issue then make sure you also select the installed command line tools. Simply open Xcode, go to preference -> locations -> command line tools.
If you're having this issue, running this in the terminal may fix it for you.
sudo xcode-select -s /Applications/Xcode.app
Open Xcode
go to settings
go to locations tab
select an Xcode version in the select labeled "Command Line Tools"

How can I update only Xcode from a shell script?

man softwareupdate says --list will "List all available updates." but it does not list Xcode. Manually opening the App Store shows an Xcode update.
How can I update only Xcode from within a script without updating the entire system and macOS itself (by running softwareupdate --install --all)?
Perhaps mas-cli can do it, but the preferred method to install chokes on the problem I would be using it to solve:
$ brew install mas
Error: Your Xcode (7.2) is too outdated.
Please update to Xcode 8.3 (or delete it).
Xcode can be updated from the App Store.

Uninstalling Xcode 3.2.6 from Lion 10.7.2

I've installed xCode 3.2.6 on my Lion 10.7.2.
After install I can't find the xCode icon to launch it. I've got to know 3.2.6 doesn't support Lion.
However, the worst thing happen when I tried to uninstall it with
sudo /Developer/Library/uninstall-devtools --mode=all
Unfortunately uninstall-devtools wasn't there. I'm stuck middle of nowhere.
Does anybody have any idea how to uninstall it and install xCode 4.2?
Following command fire on terminal and remove the all files and folder of xcode
sudo /Developer/Library/uninstall-devtools --mode=all
also more information and show log of the uninstal so go refrence link here
If /Developer/Library/uninstall-devtools does not exist skip that step.
Delete the /Develop folder if it exists.
Install xCode 4.2. Th eXcode icon will be in /Developer/Applications
The Xcode latest beta is even easier to install, get it if you have access.
If you install Xcode 3 from the GUI on Lion, you'll end up with a bunch of random tools but not the actual Xcode Toolset. In that case, you can use the uninstall-dev-tools located in /Library/Developer/Shared (rather than /Developer/Library).
You can fully install XCode 3 on Lion via the Terminal with the following commands:
export COMMAND_LINE_INSTALL=1
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
careful: if you work in ruby, you better stay with xCode 4.1

Xcode says I have 4.2 installed, but only 4.1 opens

I'm confused about this. When I go on the market or try to download 4.2 to get ios5 it says that it is Installed. I check my Xcode in the about section and it says it is running 4.1. I tried this Install Xcode that is in my applications folder assuming maybe it was for the update and it still shows 4.1. How do I update my xcode?
In your Applications folder, there is an app called Install Xcode. Run that to actually install Xcode4.2 after the App Store finishes downloading the upgrade. Weird, unexpected process, I know.
I had the same problem. After reading the answers here I looked for the "Install Xcode.app" file in the /Application directory and it wasn't there. It turns out that I had moved the "Install Xcode.app" bundle out of /Applications after I installed Xcode 4.1 (I didn't think it would be used again). I used Spotlight to remind me where I had moved it to and I ran it again and it updated the files. Now Xcode reports it is at version 4.2 like I expected. This is not at all like any other Apple installs. I wonder why they did it this way.
The App Store doesn't upgrade Xcode 4.1 to Xcode 4.2 for you like it does for all other apps. Instead, it just downloads an installer/upgrader which gets placed in your Applications folder, and proceeds to not tell you anything about it, hoping you can read its mind. To upgrade, you have to do this:
Download the update via App Store.
Manually upgrade by running: /Applications/Install Xcode
Another way to do an upgrade will be to manually remove Xcode 4.x first:
Delete Xcode: $ sudo rm -r /Developer (takes about 20 minutes to finish)
Delete any "Install Xcode" files from your Applications folder.
Download Xcode 4.2 from the App Store.
When finished, install it: Applications ---> Install Xcode
Re-download all Xcode Documents and Components: Xcode ---> Preferences ---> Downloads
That's the most extreme way of doing things. If you added anything to your /Developer folder, you should back it up before running the rm -r command, as that will delete EVERYTHING in it.
Your Xcode preferences will remain in-tact, as they're stored in ~/Library/Application Support/Xcode/ and ~/Library/Preferences/com.apple.dt.Xcode......plist
follow the instructions given in http://simplecodebits.blogspot.com/2011/10/update-to-xcode-42-in-mac-osx-lion.html

How do i install additional packages for Xcode on OSX Lion to allow MacPorts to work

When I try and install MacPorts it complains
'Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected.'
I do have Xcode installed from the Appstore so I guess I just have to install these extra parts but how ?
Ive read a couple of questions on Stack Overflow about this but I think the answers must be outdated as they do notmake sense for me, I do not have an Xcode dmg I can reinstall from, and I can't see anything useful in /Developer either, or any preferences within Xcode itself.
I only want Xcode for the purposes of using Macports so I'm not familiar with it.
You probably got Xcode 4.1 from the Mac App Store. In that case, you haven't got Xcode 4.1 installed. However, you now have an Xcode installer in your Applications directory.
Spotlight should find it in any case.
The command line tools aren't included in the default install of Xcode anymore.
Goto the Xcode Preferences --> Downloads Pane --> click the Install button beside "Command Line Tools".
If you don't have Xcode installed you can get the command line tools separately as explained here..
http://osxdaily.com/2012/07/06/install-gcc-without-xcode-in-mac-os-x/
The App Store installs the XCode installer, not Xcode itself. The installer is in your applications folder. Run that.
Today, 16 Feb 2012, when I installed Xcode 4 from the App Store, there was no Setup. Just the app installed, because it was Xcode 4.3 !
Make sure that you install Xcode 4.2 with UNIX Devel. to MacPorts works!
To get the Xcode 4.2 go to https://developer.apple.com.

Resources