Hi,
One of my crash reports says that it was caused by using the NSLog() when there is an error retrieving the contents of a URL. If there is no error obviously this line does not execute, therefore no crash. When i debug the line prints to the log fine. The crash report was obtained from the organizer in xcode, and said it happened on 13 devices. Any help would be appreciated.
// This is the line of code that the crash report points to
NSLog(@"Error: Error retrieving JSON Data from URL https://subdomain.domain.com/theNameOfTheFile.json");
NSString *theJSON = [NSString stringWithContentsOfURL:url encoding:NSASCIIStringEncoding error:&error];
if (error) {
NSLog(@"Error: Error retrieving JSON Data from URL https://subdomain.domain.com/theNameOfTheFile.json");
return;
}