Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Xcode buggy?

Does anybody else find the latest version of Xcode buggy?

My gutter isn't behaving as normal. On lines where I have written code the line numbers are invisible until I click on that line, then they turn pale white.

I also cannot see on what line my errors occur since the red error symbol isn't showing up in the gutter. The errors just show in the Status Bar and in the column to the left. My first though was that Apple had removed that feature but now I just think this is a bug.

I'm using Xcode Version 9.2 (9C40b)

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

You could be right. I haven't used Xcode in a while as I've been concentrating on JavaScript, but when I did use it, I did run into problems now and then. So I can at least give some advice on how you might go about fixing it. First, make sure both your operating system and Xcode are up to date. If they are and you're still experiencing problems, you might try reinstalling Xcode. I have had to do that a few times.

Thank you so much, guys! It's good to hear that it's not just me that is the problem every now and then.

Are there preferable alternatives to Xcode? Can I use Sublime Text here too?

2 Answers

Dave Harker
PLUS
Dave Harker
Courses Plus Student 15,510 Points

Xcode is best and worst IDE for iOS/MacOS you can use! I still have nightmares!

To be fair I've been out of iOS dev for about 10 months now so have not been active with Xcode9; however based on the total disaster of all other Xcodes (with one exception) I imagine it's still buggy and causes many a ARGGHHH!! moments.

A few tips for working with it:

  1. Save often
  2. Save often (worth mentioning twice)
  3. If you get bugs but you think your code is OK, reboot Xcode. Often, it's just buggy and there's nothing wrong with your code ... of course, often it's actually your code too grin ... but it can't hurt to rule out Xcode from the equation as being the cause of all your woes.
  4. Wear a hat, so you don't tear your hair out when Xcode corrupts your config and you can't load your project (refer points 1. and 2.)
  5. Did I mention save often? :D

Best of luck Linus,

Dave.

P.S. You get used to it, and work around it's flaws for the most part. Truthfully, I enjoyed iOS dev quite a lot.

I'll add an answer of my own as well:

LET IT FINISH LOADING!

I've noticed that if you're too quick to start writing code in your new project, at least for playground projects, that is if the Status Bar doesn't say "Ready" before you start making changes, then your project will most likely not run properly.

Make sure to look to the right where you should see "Hello World!" written out before you start.