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 trialrosemarymeehan
1,475 PointsUnexpected output got an unexpected output. self FunFacts.ViewController 0x00007fc5
am viewing a split screen with a reference to (lldb)
Rick Hoekman
9,494 PointsI'm having the same issue as Rosemary.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func showFunFact() {
println("You pressed me!")
}
}
4 Answers
Rick Hoekman
9,494 PointsIt seems that the project file you can download is causing this error. I created a new project in Xcode, followed the instructions and now it works fine!
Michelle Hermanson
1,949 PointsHow far were you able to get in the course? I am not able to associate the button click with the label. As soon as I attempted that (via the instructions in the video) I have an error: setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key FunFactLabel.'
Someone else posted the same error (15 days ago) and did not indicate if he ever resolved the problem.
Rick Hoekman
9,494 PointsMichelle Hermanson : I did not ran into that particular error. Though I had numerous others. I just started over with a clean project following the video's and along the way Xcode suggested some fixes which allowed me to proceed. Swift is still evolving as a language so there is some 'hot fixing' needed as you go along. The course is based on a Beta version of Xcode and I think Pasan needs to stay on top of it not just in the teacher notes but also needs to update the example project files you can download.
Hope Pasan Premaratne reads this to shed some light on this.. (don't know how to tag him in this post to get his attention (found the tag.. it's @ and then the name ;))
Pasan Premaratne
Treehouse TeacherHey Rick Hoekman,
Thanks for the heads up! I I wasn't able to reproduce the error on my end but I'll update the project files today. A few people have been having these errors regardless of whether they used the project file or started a clean project so I'm leaning towards thinking its an Xcode issue in certain cases. It's almost certainly an Xcode issue if you're running it on a Beta version on your end.
I'll post back here when the files have been updated!
Wameedh Mohammed Ali
5,150 PointsI am having the same error! I am going to update the project files per your advice, and will let you know if its fixed or not! Thanks!
Wameedh Mohammed Ali
5,150 PointsThank you guys. I updated the project files and the problem was solved!
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsHi Rosemary,
Could you please take a screenshot of the error your receiving and also post the code you currently have in your view controller.
https://teamtreehouse.com/forum/posting-code-to-the-forum