ios使用预编译命令解决问题 对于MacOS设备不同,做出相应响应
#ifdef __OBJC__ #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import "AppDelegate.h"#endif