Xcode 4.6 crash on Mountain Lion - xcode

I'm trying to use Xcode but since I'm on OS X Mountain Lion (10.8) it always crashes. If I try to run an app (a new project without anything) with the iOS Simulator it crashes. If I go into settings it crashes.
I've tried removing Xcode (moving to trash), reinstalling it from the Mac App Store, repairing the hard disk...but nothing worked.
Any ideas?
I can copy the log if you need it.
Edit: log http://pastebin.com/rgsYbpQ0

I would try wiping out these two folders after uninstalling:
~/Library/Developer/Xcode/
/Library/Developer/Xcode/

Related

Message from debugger: unable to attach error for osx app

I have been building mac app on my mac mini and it always worked well but today i faced this error, searched a lot but no luck.
Message from debugger: unable to attach
What i tried:
Clear derived data
Quit Xcode
Restart machine
installation directory set to blank and also to /Applications
Tried Skip Install No / Yes
Using developer Signing certs
M using only Developer certificates and not provisioning profile to sign my cocoa app
Xcode 8.2
OSX 10.12.1
Please help :)
This is what fixed it for me, perhaps it will help others but I do realize the question was for 8.2. I had it set to Xcode 9 "New Build System" disabling this and switching to "Standard Build System" in the Project Settings under the File Menu. I had tried all the other things like killing DerivedData, clean build, restarting Xcode. I also verified that my dependent libraries were set correctly. The only thing that worked was disabling new "New Build System"
I just had this problem today. I have little demo code in a mac project(created with Xcode 9.4). This error just started to occur after I upgraded system to macOS Mojave 10.14. However, in Xcode 10 this project runs no problem(without changing anything). If you can use Xcode 10 it will probably be fixed.
Unfortunately, the above solutions didn't work for me (although I am sure they work for some people).
Here is what worked for me, in case this helps anyone else:
Close Xcode
Open Xcode and Create a new Xcode project
In the iOS template, select Single View App then click Next
yes, I know you are trying to get a macOS app attaching to the debugger :).
Give the iOS app any product name and organization identifier you would like and click Next
Create the new project anywhere you would like (I saved it to my desktop)
Build and run (cmd + r) the iOS app on a simulator like the iPhone 8 (starting a simulator and running the iOS app will take a little time, so have patients)
After the iOS app runs in the simulator, click to stop it from running (the stop button is next to the run button)
Open your macOS app that you are having trouble connecting a debugger to, and build and run it (cmd + r)
This, for some reason, allowed me to connect to the debugger with my macOS app...
Xcode version: 10.1, macOS Mojave version: 10.14.2

Storyboard Preview in Xcode force closes every time

Whenever I try to use the Storyboard Preview feature as part of the Preview Assistant Editor in Xcode, the whole program just force closes each time. However, there is nothing wrong with the code as it runs just fine in simulator.
The message I get simply states: "Xcode closed unexpectedly".
OS X Version: 10.11.6
Xcode version: 7.3.1
I have had the same problem and the only thing that solved it for me was to completely uninstall and remove Xcode and the to reinstall it again.
This is the stops you do to uninstall Xcode you need to remove:
/Applications/Xcode.app
/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Caches/com.apple.dt.Xcode
~/Library/Application\ Support/Xcode
~/Library/Developer/Xcode

xcode 6.1 GM Seed Hang and stops responding

I'm working on a project and a few seconds after I open a project and try to start working, I get the spinning ball and xcode stops responding completely. I tried restarting the comptuer and everything. I'm running xcode version 6.1 GM Seed with Mac OSx 10.9.4 on a Mac Mini. Mainly hang when try to do something with Views and LayoutSubviews. Is there anything I can do to fix this?

Xcode quit unexpectedly while using the dsc_extractor.bundle plugin

When I attach my new iPhone 5s to my Mac, Xcode crashes with this error:
Xcode quit unexpectedly while using the dsc_extractor.bundle plugin
This happens while Xcode is processing symbols from the device.
It all works fine on my iPad4 which is running IOS 6.1.3.
I updated MacOS to Maverick, I reinstalled Xcode and I still have the same error.
My current Xcode version is 5.0.2 (3335.32), iPhone IOS is 7.0.4 (11B554a).
For me it worked out when I delete the "~/Library/Developer/Xcode/iOS DeviceSupport/(iOS Version of the device)" folder. It is recreated next time, when the device is connected to the Mac and Xcode is running.
A previous restore of the iPhone 5S did not help and I had no problems to connect the device to another Mac. So it seems to be an issue only on the Mac and not on the device.
I use a 5S both with a MBPro/Mavericks and regular MB/Snow Leopard; it works fine. Something is messed up on your system, I suspect. Any 3rd party extensions? Try logging out, and logging back in with the shift key down (prevents extensions from loading).
I formatted hard drive and re installed Maverick and that did the trick.

IOS Simulator cannot find sdk and the simulated application quit errors

I have been having this Xcode problem for a couple of months where my iOS simulator stops working whenever i run any application on Xcode and says, "The simulated application quit." and "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." I am running Xcode 4.3.3 and have iOS sdk 5.1 and everything updated but it happened on my previous version of Xcode also. I have tried reinstalling Xcode over 10 times now and have been posting this question for a while now. No one has been able to get a solution. I have even sent in a bug report to apple but i don't think they will respond. I have tried doing everything every other person that has this problem has been told to do in other threads. I'm honestly thinking about just buying a new mac and seeing if Xcode will work on that one or taking in my current one to get looked at by apple. So if anyone has any ideas please let me know.
Go to Xcode -> Preferences -> Downloads and make sure the "Target SDK" you have selected in your project is in fact installed under the Downloads windows. For me this magically was uninstalled. Once i installed the SDK that my app was using, all worked again
This worked for me: http://www.colinbowern.com/posts/the-simulated-application-quit
I just deleted the folder "6.1" under ~/Library/Application Support/iPhone Simulator
The I just launched again the app and the simulator recreated correctly the 6.1 folder.
Resetting the simulator settings (iOS Simulator > Reset Contents and Settings) resolved this issue for me.
I had the same issue. For me suddenly all the installed simulators (4.3 through to 6.0) stopped working. I then went to Xcode -> Preferences -> Downloads, and there I had the chance to update at least the 5.0 simulator. This is now working, yet I was not able to get the 4.3 or 5.1 or 6.0 to work.
I have personally experienced a weird thing with xcode regarding this issue. Sometimes the sdk is installed properly but it still gives this error. I have two classes, if I call first class from the app delegate then the ipad simulator works fine but when I call the second class then it gives the error that the sdk needs to be re-installed.
In my case when the error occured, I had two errors in the second class. When I corrected the errors after debugging, the ipad simulator started to work completely fine. This is quite weird but its not the problem with your sdk, the problem is somewhere in the code.
This just happened to me. I tried to launch with iPhone 5.1 Simulator, got the error "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." I tried running iPad 5.1 Sim, which worked. I switched to non-retina iPad. Then I tried running iPhone 5.1 Simulator again, and it worked.

Resources