Monday, March 23, 2009

nested functions are disabled use -fnested-functions to re-enable

You'll get this error for a weird variety of tricky syntax errors - forgetting to close blocks etc. You'll also get it if you try to use Java syntax for iterators rather than Obj-C2.0 syntax. Don't write this:

for (NSString *value : myArray) {

write this instead:

for (NSString *value in myArray) {

No comments:

Post a Comment