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

NSXMLParser - Part 2

I tried to building the Events project for iOs 7.0 and it seems that there is one build error in XCode 5 that can I can't wrap my mind about(I even compared my code to Amit's Code in the project files)then I downloaded the project files, and they were set to be deployed for iOs 6.1 and they worked fine. The error which was thrown was for the foundCharacters method and it said 'Invalid argument type for unary expression'. Would appreciate any illumination here ;)

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

Can you post your code? Did you set a exception breakpoint? If not, check out the debugging basics video to learn how.

Hi Amit, of course I didn't set an exception breakpoint hehe! Will remind myself how to do it.

The code is exactly the same as in the project files. I even copied and pasted it. But I copied it again down here:

- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string {
    if (self.storeCharacters) [self.currentString appendString:string];

2 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

I would set a breakpoint exception to see exactly which line is throwing the error.

Ok. Will keep you updated.