2. copy the .app and .dSYM and .crash to the same folder
3. then run: ./symbolicatecrash
-(UIImage *)createMask:(UIImage*)temp {
size_t height = CGImageGetHeight(temp.CGImage);
size_t width = CGImageGetWidth(temp.CGImage);
UIGraphicsBeginImageContext(CGSizeMake(width, height));
CGContextRef context = UIGraphicsGetCurrentContext();
const float colorMasking[6] = { 255.0, 255.0, 255.0, 255.0, 255.0, 255.0};
CGImageRef maskedImageRef = CGImageCreateWithMaskingColors(temp.CGImage, colorMasking);
CGContextDrawImage (context, CGRectMake(0, 0, width, height), maskedImageRef);
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
Note that you can give a range of colors to CGImageCreateWithMaskingColors..