[英]Importing <AppKit/AppKit.h> does not work
我正在使用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; 對於iOS,您需要UIKit:
#import <UIKit/UIKit.h>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.