导入<AppKit/AppKit.h>不起作用

jun*_*i00 1 objective-c tweak cydia theos

我正在使用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
Run Code Online (Sandbox Code Playgroud)

我调查了opt/IOSOpenDev/include,opt/theos/include并且无法找到AppKit.h
我如何解决这个问题?请帮忙

tro*_*foe 9

AppKit适用于Mac; 对于iOS,你想要UIKit:

#import <UIKit/UIKit.h>
Run Code Online (Sandbox Code Playgroud)