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 trialFaddah Wolf
12,811 PointsHaving numerous, repetitive errors in Playgrounds & Swift in released Xcode 6.0.1 & Mac OS X 10.9.5 Mavericks, help!
I'm having numerous, repetitive errors in Playgrounds & Swift in released Xcode 6.0.1 & Mac OS X 10.9.5 Mavericks - it makes the Playgrounds totally unusable!
So you know, I have also posted this as a new question Thread in the Apple Developer Forums.
Also, to start, which specific version of Xcode and Mac OS X is Amit, the treehouse video instructor using for these Swift lessons, using here? He seems to be able to get it to work with no hitch, where as i get repetitive errors every couple of characters I type in the Playground.
Set-up —
27" iMac 2010 used for development, intel core i7 processor @ 2.8 GHz, 16 GB RAM, Mac OS X 10.9.5 with all latest regular/security updates, released version from yesterday, 19-Sept.-2014, of Xcode 6.0.1, updated through Apple App Store app, along with latest Command Line Tools 6.0.
Steps To Reproduce —
- Launch Xcode 6.0.1
- Choose a new playground, either from file menu or opening screen choices
- Save playground as an iOS type and give it a name (mine was 'Types.playground')
- In playground editing screen that comes up, begin coding in Swift.
- If you do a
println("[...your strings here...]")
, also go to the menu View > Assistant Editor > Show Assistant Editor, you should see your strings from theprintln()
showing in the Assistant Editor pane
Expected Result —
You are able to code without error and the results for vars, lets, and println()'s all show fine in the right playground pane. If you bring up the Assistant Editor for any println()'s you've done, they show the results of the print fine in the Assistant Editor pane.
Actual Resulting Errors —
Aside from being able to type somewhat in the playground editor, though haltingly and annoyingly as you are constantly interrupted by different "Error running playground" errors, none of it works.
I tried just typing in some lets and interpolating them in a println() to test.
// Playground - noun: a place where people can play
import UIKit
let title: String = "A Dance with Dragons"
let price: Double = 9.99
let yearPublished: Int = 2011
println("Book Listing:\n\(title)\n\(price)\n\(yearPublished)")
When I do this, from the first couple of characters I type i get so many “Error running playgrounds” as I type it is totally unusable and not ready for prime time.
First I get — "Playground execution terminated because the playground process exited unexpectedly."
Then as I continue to try and type the code above, I occasionally get that error, but mostly, every couple of characters I type, I get — "Error running playground. An error occurred while trying to communicate with a helper application. You may need to restart Xcode before playgrounds will run again."
Also, the moment you get these errors, both playground in the right pane and the assistant editor, if you show it, show no results throughout this.
What I have tried thus far to fix this —
- As it suggestes, i have tried restaring Xcode 6.0.1, over a dozen times, it never doesn’t fixes these errors.
- I have tried deleting the playground I created and saved and restarting Xcode *I’ve tried creating new playgrounds for iOS and saving them - still doesn’t fix it.
- I have searced both these Apple developer forums and googled with Stack Overflow - i find stuff from waaaaay back in the beta, but no other mention of problems with this since yesterday’s release. I try what they suggest, like opening a playground by doing the New File dialogue, not New Playground, but no matter what they suggest, I still get these numerous annoying errors.
This is all really aggravating. Xcode 6.0.1, at least for Swift & Playgrounds, seems really not at all ready for prime time. Is anyone else seeing this witht the current Xcode 6.0.1 & Mac OS X 10.9.5 Mavericks release? Anyone know of a fix? Please advise.
best,
— faddah wolf portland, oregon, u.s.a.
4 Answers
Akilah Jones
18,397 PointsAwesome Faddah Wolf ...hopefully Apple will roll-out an update soon.
It looks like I added my response as a "comment" instead of an "answer", so that's mostly likely why there was no option.
Anyway, glad you're up and running, for now ;-)
Faddah Wolf
12,811 Pointsthanks Akilah Jones - believe it or not, that did it! working o.k.... for now. we'll see. the thing was, i had all ready restarted my iMac after the App Store app update to Xcode 6.0.1, and when i had the swift & playground problems, i quit & restarted Xcode, several times. maybe Apple needs to include a disclaimer in the README - “need to restart entire machine several times until it works”??? anyway, thanks for the help. maybe something to keep in mind if anyone else complains about playgrounds in Xcode 6+
Faddah Wolf
12,811 Pointsalso, Akilah Jones, i would have up-voted and tagged your answer as best, but this Treehouse forum software is not letting me do that with your post. sorry!
Faddah Wolf
12,811 PointsAkilah Jones i gave you credit on your last comment. credit where credit is due, i always believe. thank you for the help. yes, an Xcode 6.x update that works from Apple would be a good thing, as Martha Stewart likes to say.
Akilah Jones
18,397 PointsAkilah Jones
18,397 PointsIt is definitely aggravating ...I'm sure there's a better solution, but a good old-fashioned "restart" did the trick for me (restarted my laptop not just xcode).
Xcode definitely seems to be a little bit more buggy than before.
Best Regards
AJ