#import <Cocoa/Cocoa.h> 报错 Lexical or Preprocessor Issue 'Cocoa/Cocoa.h' file not found 错误原因: Cocoa是Mac的库,在iOS上不支持. 解决办法: #import <Foundation/Foundation.h>