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 trialStefan Buttigieg
10,065 PointsNSXMLParser - 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 ;)
Stefan Buttigieg
10,065 PointsHi 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
Treehouse Guest TeacherI would set a breakpoint exception to see exactly which line is throwing the error.
Stefan Buttigieg
10,065 PointsOk. Will keep you updated.
Amit Bijlani
Treehouse Guest TeacherAmit Bijlani
Treehouse Guest TeacherCan you post your code? Did you set a exception breakpoint? If not, check out the debugging basics video to learn how.