#import 报错 Lexical or Preprocessor Issue 'Cocoa/Cocoa.h' file not found

#import <Cocoa/Cocoa.h> 报错 Lexical or Preprocessor Issue 'Cocoa/Cocoa.h' file not found

错误原因: Cocoa是Mac的库,在iOS上不支持.


解决办法: #import <Foundation/Foundation.h>

你可能感兴趣的:(error,X-Code)