问题描述
我正在使用 IOSOpenDev 对 Xcode 进行 cydia 调整,我尝试导入 <AppKit/AppKit.h> 但出现此错误!
'AppKit/AppKit.h' file not found'
这是我的代码,当有人尝试截屏时会更改闪光灯颜色
#include <AppKit/AppKit.h> %hook SBScreenFlash -(void)flashColor:(id)color { NSDictionary *prefs=[[NSDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.junyi00.screenshotcolor.plist"]; if ([[prefs objectForKey:@"enable"] boolValue]){ color = [NSColor blueColor]; %orig(color); } else { %orig; } } %end
我查看了 opt/IOSOpenDev/include 和 opt/theos/include 并找不到 AppKit.h
我该如何解决这个问题?请帮忙
推荐答案
AppKit 适用于 Mac;对于你想要 UIKit 的 iOS:
#import <UIKit/UIKit.h>