Xcode outputs an error when I try to import <AppKit.framework/AppKit.h>, even though the file exists.
Example script:
#import <Foundation/Foundation.h>
#import <AppKit.framework/AppKit.h>
int main (int argc, const char * argv[])
{
@autoreleasepool {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.google.com/"]];
}
return 0;
}
Change that line to:
And also make sure that
AppKit.frameworkis added to the list of included frameworks in your project.