XCode crashes everytime I try to run project - xcode

Ever since I upgraded to XCode 5, I havent been able to run a project. Every time I hit the play button, XCode immediately freezes, and then crashes a few seconds later. If I press Command+B to build the project, it succeeds, its just running it that causes issues. This is on both iOS and OSX projects.
Here is the crash log it presents after the program closes: https://gist.github.com/EthanArbuckle/7406894
Does anyone have any ideas on how to fix this? Its driving me crazy!

Go to /Applications/Xcode.app/Contents/PlugIns and remove the following directory (take the backup first) IDERepositoryViewer.ideplugin. Quit and relaunch the XCode and it should work fine.

Related

Xcode 11.5/Catalina not responding on startup

I have recently upgraded both Xcode (to 11.5) and Mac OS to Catalina. Xcode has been working fine for a few days. I clicked on a JSON file in my project and Xcode hung (with SBBOD). I forced quit and rebooted but now Xcode will not load - it starts, but just shows SBBOD again. On startup, it tries to load my last project, I have tried launching from Finder by clicking on a PlayGround project but same issue!
Any suggestions for how I recover this situation?
While the cause is not resolved, I left Xcode running overnight and it is now working. This issue seems to be with displaying a large JSON file (about 1MB). Xcode is taking a few hours before it becomes responsive. I just left it to run.

Xcode 8 freezes on Signing product

I can no longer access any storyboards or XIBs in my project. As soon as I do,Xcode starts building and when it gets to Signing product it just hangs. I left it open for about half an hour, nothing happens. I need to Force Quit every time.
Signing works otherwise thou, that's the weird part. I can build normally, I can run on simulator, device, I can archive, everything is fine, EXCEPT when I open an IB file.
I tried all the usual, deleting DerivedData, cleaning everything, nothing seems to work. This is extremely frustrating and I can't find anything on the subject.
I'm using Xcode 8.2 beta (8C30a) currently, but it's also happening in the release 8.1.
Can you file a bug report with a bit more info? Please provide a copy of the build log and the output of sysdiagnose Xcode (it will produce an archive).
http://bugreporter.apple.com/
Thanks!

Xcode 8.0 Simulator broken

Something has gone wrong with my Xcode install... I was running my app and seeing odd behaviour within the app itself, for starters I wasn't able to run the build in the simulator.. it'd install and never launch, eventually putting up a dialogue box about being unable to bless the connection to the simulator. I'd had this problem a few days before but it eventually went away, googling just revealed people having issues with the beta builds or beta MacOSX.
Eventually today I rebooted my Mac and having done so, launching Xcode gave me some other error about the simulator, which I didn't properly take notice of. Since then my project no longer lists any simulators to deploy with, if i try to add new simulators the button to add the simulator does nothing and I have to cancel the dialogue box. If I try and run the simulator or watch simulator directly it just beach balls indefinitely and i have to force kill it.
I've created a new user account and within that made a new Xcode project, which also has no simulators.
I've got a zipped backup of my Xcode from before this problem occurred which I've extracted and swapped in place and it makes no difference.
I guess I could do with redownloading the app off the AppStore in hope that the installer would do something to fix this problem.
Anyone got any thoughts on other things I can try?!
Cheers
What is most likely to be the case is that your XCode installation is corrupt. The best thing to do is to delete Xcode entirely and also these directories and files:
~/Library/Caches/com.apple.dt.*
~/Library/Caches/xctest
~/Library/Containers/com.apple.dt.*
~/Library/Developer
~/Library/MobileDevice
~/Library/Preferences/com.apple.dt.*
~/Library/SavedState/com.apple.dt.*
Then reboot your system and reinstall Xcode. Hopefully that should have cleared out the issue.

xcode 4.3.2 process hangs

I have run into a rather annoying bug in Xcode 4.3.2.
If you run a process from within Xcode, then stop the simulator directly (outside of Xcode), Xcode still shows the process as running and effectively disables any further interaction with the simulator.
I can't stop the process from within Xcode (no response), and I can't start a new process either as Xcode sees the simulator as being in use. Shutting down the simulator does not notify Xcode either, so I have no option but to shut down Xcode and open it up again But even that does't work as Xcode hangs whilst trying to shut down the process too! So I have to force quit Xcode!
Has anyone found a way round this? I realise I should now only operate the simulator from within Xcode, but I am used to being able to operate the simulator independently.
thanks
I was having similar issues with Xcode 4.3.2. I fixed them by doing the following:
Launch Xcode.
Close any open projects.
Open Organizer.
Delete project form left panel using the gear icon on the bottom left. Select "Remove from Organizer...". This clears all the data about your project that Xcode has cached (indexes, DerivedData, Snapshots, etc.).
5). Re-open project.
Since doing this, my Xcode hanging issues have disappeared.
Here are the steps I follow when this happens:
Start the simulator if it isn’t already running
Choose the option “Reset Content and Settings…” from the iOS Simulator menu
Clean and rebuild the project

Run 2 times for simulator to start - iOS Simulator failed to install the application

Yesterday I finally got everything set up for sending to testflightapp.com and also setup to upload to Apple.
But now when I click on RUN the app compiles and uploads to the simulator and then the window at the top of XCode says "Attaching to myAppName". It hangs at that point. The simulator has nothing on the screen other than the standard desktop.
If I hit RUN the 2nd time, then the app runs right away. So all day I have been hitting run 2 times. Obviously something is wrong, but haven't a clue where to start.
any ideas?
thanks for any help!
**EDIT: Got this from the console after waiting 2 minutes:
8/15/11 10:05:01 PM [0x0-0x18018].com.apple.iphonesimulator[262] MobileInstallationInstall: failed with -1
8/15/11 10:05:01 PM Xcode[143]
Error launching simulated application:
Error Domain=DTiPhoneSimulatorErrorDomain Code=1 UserInfo=0x2028d71c0
"iOS Simulator failed to install the application."**
Yes, i have an idea: Be patient. I have had this too, just wait until the Simulator starts up, 'attatching to ...' means that the Simulator.app is still opening and that xcode is waiting for the Simulator to be fully loaded. So once the simulator is running your app will start to run on the simulator. Just don't close the Simulator.app everytime you have finished running the app, like that you wont have to wait for Simulator to boot up everytime. Also if that still does not work, restart xcode, and simulator or just reboot your mac. Also try deleting your app from the Simulator.
I wound up making a new project copying everything over to the new project. It was easier than spending hours trying to find what change I made :(

Resources