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 Build a Simple iPhone App with Swift Structs As Data Models Creating a Data Collection

I am having some issues with my xcode

I've followed every instruction from the tutorials, and everything was going fine, until one day when suddenly I started to have this errors on the variables and console views and now the simulator won't show anything.

Variables View aDecoder NSCoder 0x00007fd206013400 baseNSCoder@0 NSCoder arrayClass Class NSArray 0x000000010c26fe28 setClass Class NSSet 0x000000010c270be8 dictionaryClass Class NSDictionary 0x000000010c2702d8 classes Class * 0x618000072840 0x0000618000072840 missingClasses id * 0x618000072600 0x0000618000072600 valueTypes char * "\n\n\n\n\n\n\n\x05\n\x05\n\n\n\n\b\n\x05\n\n\b\x05\n\n\n\n\n\n\b\n\n\n\b\b\x05\n\n\n\n\n\n\n\n\b\b\b\b" 0x0000618000051670 valueData void * 0x7fd20560a890 0x00007fd20560a890 valueDataSize unsigned long long 512 objectsByObjectID id * 0x618000141760 0x0000618000141760 longObjectClassIDs unsigned int * NULL 0x0000000000000000 shortObjectClassIDs char * "\x05\x04\x02\x04\x03\x02\x04\x03" 0x00006180000376a0 keyMasks unsigned int * 0x6180000ba1c0 0x00006180000ba1c0 inlinedValueKey long long 6 keyIDTable UINibStringIDTable * 0x618000051580 0x0000618000051580 delegate id 0x0 0x0000000000000000 lookupRounds long long 0 maxPossibleLookupRounds long long 0 failedByKeyMask long long 0 savedByKeyMask long long 0 self FunFacts.ViewController 0x00007fd20560ada0 UIKit.UIViewController UIViewController
funFactLabel UILabel! nil none

Console (lldb)

I also have a kind of warning on line 13 that says the following: Thread 1: breakpoint 1.5

1 Answer

Hey! When I'm trying to click the button it keeps giving me errors, the error it looks like this Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setText:]: unrecognized selector sent to instance 0x7fa34b4114e0' *** First throw call stack: