I'm having some trouble working with xCode. It just keeps hanging and using 100% CPU right after a couple lines of code. I'm working on a new project and it barely has two files and it has become completely imposible to work with.
I tried reinstalling xCode and starting my project from scratch but it won't work.
I noticed three things that may help someone find out what it's going on.
It's slow even when typing, the characters appear delayed on the screen.
It keeps saying indexing on the task bar on top. If I clean the project it will disappear but come back whenever I start working again.
It overheats as soon as I open xCode
And here's some other facts that might help
I'm running xCode 6.1.1 (build 6A2008a)
My Mac is a mid 2012 MacBook pro 8GB Ram
I did a fresh install of Yosemite a month after it was released, so it's pretty clean.
I'm using the latest build of Xampp for my SQL server
I'm using nodejs as a backend so I'm running an http with nodemon
Hope any of you has a solution to this.
Thanks and merry christmas to all of you.
EDIT
I found out that it will build just fine if I remove my conditional cast to NSInteger, NSString, Float, etc. I have like 8 of them one after the other, and just replacing as? for as did the trick. I'm curious as for why this is happening anyway though.
Similar problems on 6.1.1 (but also source kit crashes) were improved (but not completely resolved) for me by deleting derived data.
I'm having weird issues with Xcode. I am trying to install the new Xcode 6 from the Mac App Store, but it got stuck at "4 minutes remaining".
Earlier I had Xcode6 GM which was working perfectly fine. I thought of downloading the new version from the App Store so I deleted the GM.
Did anybody else have the same issue?
I had the same problem.
Forgive the cliche, but I had to "turn it off, then on again" (reboot the MacBook) and only then could I re-click on the "Install" button, and it'd start downloading XCode, from scratch.
Previously, using the App Store "Check for unfinished downloads" just told me that I didn't have any downloads pending, yet in the App Store app, it had XCode stuck in the "Installing" state.
Update
It's that time again. iOS 8.4 has been released, but you can only get XCode to connect to an iOS 8.4 device if you've upgraded to XCode 6.4... but you can only do that if you've upgraded OS X to the latest version. Thanks, Apple.
And as usual, download times are appalling, even if (like me), you've waited a few weeks until after the release, to avoid the rush.
And when you finally do get to click on the Update button in App Store to update XCode, it changes to "Installing" but actually, it's busy spending the next few hours downloading, rather than installing anything.
You have to keep an eye on the download bar, just below the Launchpad icon on the taskbar, to check how far the painfully-slow download has got...
I'm really not impressed.
I quit App Store, then searched for XCode in my Applications folder, clicked it, after a few seconds the download status vanished and I was able to click it again and open the app.
If it's any help, I was in Software Update this morning updating to Xcode 6.2. For several minutes, the installer was also stuck at the 4 minutes remaining mark, and then started changing the time remaining (swapping between longer and shorter intervals). From what it looks like, this is a UI issue (probably not estimating all the time it takes to install all components), more than anything else...
After clicking Install on Xcode in the App Store I got a busy-indicator in the App Store window for a few seconds and then nothing, it still just read "Install" after leaving it sit overnight.
However, I was able to download the latest version of Xcode as a .dmg file at https://developer.apple.com/downloads. The installation process was smooth from there.
In App Store, try "Store" menu -> "Check for unfinished downloads..."
I had a similar problem. Mine was stuck on "Paused". To fix it, I went to "Applications" (command-click the old version in dock -> gets you there faster) and moved to trash the Xcode app that was 337 kb in size. Then rebooted, went to the App Store and started the installation again. Turns out mine was "paused" on 2.27 gb (though I simply left my mac unattended, since the download was taking forever, and returned hours later).
Hope this helps someone, as I could not find an answer to this myself anywhere else.
I got the same problem. I updated to the last version of OSX, and then the update came automatically as a a result of that update.
I have stuck many times, this saved me. Now you try your luck on this
Apple should really consider having some more indication of install progress. Hard seeing any progress with the bar alone when installations exceed a certain amount of time. But then again I see apples security considerations indicating more detailed logging of the progress. I guess they oversee the few situations when updates are in the gigabyte range.
It may seem like a cancellation of the install , and going on for a second time, gives a faster install. But I would guess thats only because some of the install progress is cached.
My tip is; wait it out.
My company is still running Snow Leopard and we're thinking about upgrading to Mountain Lion (Edit: Mavericks) soon. We are developing iOS and Mac OS X applications and have a small break between the old projects and the new projects. What this means is, that we can start over with the new applications on the new version. But what happens to the old versions? They don't have ARC, Storyboards etc... I know you can switch off ARC but we want to make sure that we will still be able to commit updates to our old projects and we can't afford to put lots of time and effort in the conversion process.
I spent some time reading the user comments below the xCode update on the AppStore and read that the new Version deleted old projects. Of course we have a backup but this makes me uncertain if it's the right step.
Does anybody have experience how this works in a non personal environment? At home I'm running Mountain Lion and xCode converted small projects by itself. I'm just not sure about large scale projects...
Thanks for your time!
Edit: I will upgrade one system tomorrow and then try to post the results and maybe some tipps, important steps and things to be aware of.
Tipps what to consider when doing an upgrade:
Before you start
Take your time for a good backup! - You can regard data which is only
located on one harddrive as non existend.
Start with one system first and try out everything before doing the
major upgrade.
Installation
Consider it takes way more time than it does at home! The
MountainLion Download took >5 hours because of a symmetrical internet
connection. Installation time was ~1 hour (MacMini 2009 - 4Gigs Ram
1067). + xCode Downloadtime ~1hour
Before you install the new xCode make sure all your projects and your old xCode Dev Folder are
backupped.
When the installation routine asks you to delete your old xCode do so
(I didn't do it and now I have to manually assign each project to the
new xCode. I've to delete the old version manually too and it's a bit
more complicated if you have to do the research which files you are
allowed to delete and which not)
Then you have to download the different xCode
libraries. There goes at least 1 additional hour.
Time of the downloading- and installation process so far: ~8 hours. (Keep in mind we've a slow internet connection)
Projects
Copy your projects and don't run your conversion and tests on the
original.
When you open the project you'll probably receive lots of warnings.
Don't Panic!
When clicking on the "Validate Project Settings" warning xCode will suggest to convert your
project for you. I've done this for 3 iOs applications (Build Target:
4.3) now and it worked every single time. Let it create a snapshot for you. Just in case.
If your app has already been code signed you'll probably receive the
"Target Integrity" warning. In every single case it worked for me to
edit the path for the "entitlement.plist". (Just click the warning
and edit the path at "Code Signing Entitlements")
It may happen that you've to change the deployment-target. To do so
go to the Project Navigator (cmd + 1), click on your
project's name and then Summary. There you can edit your
Deployment Target.
If you get warnings on deprecated methods you should search
stackoverflow.com for your particular case. If it has to do with
NSURLConnection look here.
To be continued...
I have tried uninstalling and reinstalling Xcode so it should behave normally but it keep open up with my last project and crash. No matter how many times i uninstall and reinstall. Is there a fix for this?? Please help i need to get this thing fix soon.
At the time of crash it says internal logic error. I read somewhere that i should restart my system after installing the new Xcode of it will crash again but as it gets installed it reopen automatically.
Thanks,
This might not be the optimal solution but I have talked to other people who have had problems like this and the solution they ended up doing was to create a new user on the Macintosh where they were having trouble and then Xcode worked perfectly fine.
Try that and see if you have any good luck.
I suspect there's some cached settings that aren't being cleared out with uninstalls & reinstalls.
Closed my laptop when I left work. When I got home and opened it, it had restarted. Now when I go to open Titanium Developer it instantly crashes.
So I can't even open it now. Any ideas on how to debug this or figure out what is going wrong?
Thoughts of even trying to see a message or any detailed error report would be helpful. I'm pretty new to the Mac world, I'm not even sure why my computer restarted - is there a place to see events or what may have triggered that. Couldn't find anything on their forums about this issue.
I experienced the same instant crash problem and found a post on http://developer.appcelerator.com/question/21121/titanium-crashing-on-startup-on-mac that suggests running this chmod -R g+u /Library/Application\ Support/Titanium - so far so good.
Solved this awhile back, just realized I didn't tie up this loose end. I actually had to reinstall the OS. One of the Os files must have been corrupted or locked. With OS X you can reinstall the OS without reinstalling over your apps or data. So took about 30 minutes to reinstall and everything was fixed!
For anyone experiencing this in 2017 and beyond:
Quit Appcelerator
Load Terminal
appc logout
The Dashboard was attempting to load my cached user stats but appcelerator was rejecting my expired session. Logging out of appc solved my issue.