#import <Cocoa/Cocoa.h> Added to MBProgressHUD.h for OS X targets - Thanks to AntonijoDev for this fix.