Xcode 4.2 uninstall crashes Xcode 4.3 - xcode

When XCode 4.3.1 was installed, it asked me if I wanted to remove 4.2. I said no, and proceeded using it. Last night, I decided to uninstall 4.2 with the script included. Now, whenever I run XCode 4.3, it crashes 90% of the time. Has this happened to anyone else, and is there a fix?

When uninstalling xcode 4.3.1 try removing the preferences from xcode in ~/Library/Preferences/ too. It sometimes help me with other applications.

This appears to fix the problem
Enter these commands into the Terminal.
sudo ln -s /Applications/Xcode.app/Contents/Developer /
sudo ln -s /Applications/Xcode.app/Contents/OtherFrameworks/DevToolsFoundation.framework /Developer/Library/PrivateFrameworks
Quoted from:
http://swipeware.com/xcode-4-3-and-broken-utilities/

Related

Command Line Tools Not Found MacOS Monterey XCode13

I´m currently trying to resign a wrapped app from mobileiron with terminal.
When I try it says:
"sign_wrapped_app.sh Version 4.7.0.0
Usage: sign_wrapped_app.sh -i [-b -e -p -s -d -o ]
This script MUST be run on a computer with Xcode command-line tools installed.
jonasromankiewicz#MacBook-Pro-von-Jonas wrapping %"
I have MacOS Monterey on my MacBook Pro M1 2020
Xcode 13 Beta & I downloaded and installed CLT from the apple developer homepage.
I have the latest Version of Node, Homebrew, Ionic, Cordova installed.
I have tried to switch path. I have tried to reinstall CLT.
Also tried the Rosetta way...
Nothing worked. PLS Help :D
Thanks
Try to select your Command Line Tools in Xcode Preferences (⌘+, -> Locations)
Reinstalling both Xcode and CommandLineTools fixed the issue for me.
What I did:
Delete Xcode.app.
Delete CLT (sudo rm -rf /Library/Developer/CommandLineTools).
Download Xcode and CLT from Apple developer downloads. I installed the exact same version.
Install Xcode and then the CLT.
Reinstalling just CLT did not resolve the issue.
Related issues that helped me find the solution.

MobileDevice.pkg untrusted, cannot open Xcode after OS X update

After an automatic update of macOS v10.15 (Catalina), I am unable to open Xcode. Xcode prompts me to install additional components but the installation fails because of MobileDevice.pkg (Applications/Xcode.app/Contents/Resources/Packages)
I have found multiple answers on how to locate MobileDevice.pkg and that I should try to install it directly, but when I try to do this the installation fails too. I have also tried updating Xcode from App Store, but the update failed when it was nearly finished.
Has anyone experienced the same behaviour? Should I reset the Mac to default and install macOS v10.13 (High Sierra) or Catalina from scratch or it is a problem of Xcode and re-install would do the job?
I have found a discussion here that was posted today and is probably regarding the same issue and it seems like many people are dealing with it, too.
The log:
*2019-10-25 01:03:34+02 Vendula-MacBook-Pro Xcode[1567]: Package: PKLeopardPackage
<id=com.apple.pkg.MobileDevice, version=4.0.0.0.1.1567124787, url=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg>
Failed to verify with error: Error Domain=PKInstallErrorDomain Code=102
"The package “MobileDevice.pkg” is untrusted."
UserInfo={
NSLocalizedDescription=The package “MobileDevice.pkg” is untrusted.,
NSURL=MobileDevice.pkg -- file:///Applications/Xcode.app/Contents/Resources/Packages/,
PKInstallPackageIdentifier=com.apple.pkg.MobileDevice,
NSUnderlyingError=0x7fabf6626d00
{
Error Domain=NSOSStatusErrorDomain
Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED"
UserInfo={
SecTrustResult=5,
PKTrustLevel=PKTrustLevelExpiredCertificate,
NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED
}
}
}*
Edit and set the date of your Mac as October 1st, 2019.
I didn't have Xcode 11.1 installed and even though I could open and run the 11.0 after the below workaround I could not update to 11.1 as the update always failed. So I have just re-installed the whole app from the App-Store - you could probably also do this instead of the below method.
I have tried setting my system time to 1st October 2019 when the certificate should had been still valid. After that I tried to open Xcode and followed the component install which went well and now I am able to work with Xcode again.
I had a similar problem, where I installed Xcode 11.1, and installed the components and everything within the same folder where I had Xcode 10.2.1. Then, I tried to go back to Xcode 10.2.1 and couldn't opened as it was asking me to install components again, and when I tried I was getting this error.
The package “MobileDeviceDevelopment.pkg” is untrusted.
So, the workaround that fixed it for me was navigating to...
/Users/YourUser/Applications/Xcode\ 10.2.1.app/Contents/Resources/
Then, deleting MobileDeviceDevelopment.pkg and everything went back to normal :)
I hope this helps anyone else with this issue. Cheers!
At macOS Catalina
cd /Applications/Xcode.app/Contents/Resources/Packages
sudo rm -rf MobileDevice.pkg
sudo rm -rf MobileDeviceDevelopment.pkg
Try again.
It means you entered on the Xcode downloaded packages and remove it. I really don't understand how Apple do but if you remove Xcode will download it again and revalidates.
Some remarks, I'm on XCODE Version 11.0 (11A420a) if you are not this is not guaranteed to work.
You may solve this issue by setting the date of your Mac as October 1st, 2019. But this is just a hack! The real solution (suggested by apple) is this:
All you have to is to upgrade Xcode
But there is a known Issues on apple developers site
Xcode may fail to update from the Mac App Store after updating to macOS Catalina. (56061273)
Apple suggests this:
To trigger a new download you can delete the existing Xcode.app or temporarily change the file extension so it is no longer visible to the App Store.
Always working solution for all Xcode issues:
Go here and log in.
Then download the xib from here.
More information here on this answer.
##Answer to this specific issue##
Get rid of those packages.
cd /Applications/Xcode.app/Contents/Resources/Packages
sudo rm -rf MobileDevice.pkg
sudo rm -rf MobileDeviceDevelopment.pkg
Xcode will install all of them again for you.
rm -rf /Applications/Xcode.app/Contents/Resources/Packages/*.pkg
It will work and re-open the x-code
Try to run Xcode-beta instead of Xcode to install additional components. After that you'll be able to use Xcode release.
For me, I just uninstalled (deleted the app from the Applications folder) and then went back to app store and clicked the cloud icon and it downloaded fresh and installed. Now all is good and back to normal.
Here's what I did to resolve:
Right click the xcode.app > show package contents > Contents > Developer > Platforms > iPhoneOS.platform > Device Support
I am on XCode 10.2.1. I had downloaded a 13.7 folder and contents from an external GitHub site and imported that folder into here for running my app on a physical iPhone Xr. I am prevented from upgrading to Catalina on my dev machine. Deleting the 13.7 folder and then re-launching XCode resolved the issue for me.
Reinstall Xcode 11.1 from https://developer.apple.com/download/more/ . Afterwards the update works.
This requires Xcode 11.1 to be installed.
I was not able to update to Xcode 11.1 until I updated macOS Catalina to 10.15.1. After updating my macOS, I was able to install Xcode 11.1, which also allowed the installation of the additional components package.

xcode simulator is installed but isn't available from terminal

I've installed xcode Version 5.1.1 (5B1008), and I've installed command line tools using xcode-select --install. I can check it using xcode-select -p.
but when I call simulator from terminal I get the error "XCode not installed." why?
note: I'm using AppGyver Steroids and I call simulator while working with it.
Since I didn't get any help on this, I removed the Xcode and installed it again and it worked properly. this won't be the best way, but at least solved the issue.

Xcode 6.1: Loading a plug-in failed

I updated Xcode from AppStore but I couldn't open it due to this error message:
"Loading a plug-in failed
The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled"
I tried uninstalling Xcode by deleting it from Application folder and reinstall it but the problem is still the same.
Can anyone figure out what's wrong, and how to fix this? Thank you.
Did you by any chance update your Python? Anyway, I did and I think I also removed python 2.7 for some reason. Turns out, Xcode uses python 2.7 and is required for Xcode 6.0 onwards.
Simply download python 2.7, install it and all should be good.
I have run into the exact same issue with XCode 6.3 and brew upgrade python to version 2.7.10.
For whatever reason the symlinks at /System/Library/Frameworks/Python.framework/Versions/ were not updated...
The fix:
sudo rm -f /System/Library/Frameworks/Python.framework/Versions/2.7
sudo ln -s /usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7 /System/Library/Frameworks/Python.framework/Versions/2.7
sudo rm -f /System/Library/Frameworks/Python.framework/Versions/Current
sudo ln -s /usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7 /System/Library/Frameworks/Python.framework/Versions/Current
(obviously your paths/versions might differ)
And then XCode starts working again.
For me the problem had to do with a missing iTunes.app. I had previously deleted iTunes, but it turns out that Xcode 9 (and possibly Xcode 8) needs the iTunes.app, and will fail with the mysterious "Loading a plug-in failed" error if iTunes is missing on your system.
Downloading and installing iTunes from https://www.apple.com/ca/itunes/download/ solved the issue for me.
By the way, you may be able to get more info about what's causing the plug-in error by running xcodebuild on the command line.

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

Resources