2014-09-26 92 views
0

當我嘗試讓我的TWEAK包,我與返回錯誤:THEOS致命錯誤:<跳板/ Springboard.h>文件未找到

Tweak.xm:1:9: fatal error: 'SpringBoard/SpringBoard.h' file not found 
    #import <SpringBoard/SpringBoard.h> 
      ^
    1 error generated. 
    make[2]: *** [obj/Tweak.xm.cf890db2.o] Error 1 
    make[1]: *** [internal-library-all_] Error 2 
    make: *** [SMSTrigger.all.tweak.variables] Error 2 

tweak.xml文件包含:

#import <SpringBoard/SpringBoard.h> 

%hook SpringBoard 

-(void)applicationDidFinishLaunching:(id)application { 
    %orig; 

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome" 
     message:@"Welcome to your iPhone Brandon!" 
     delegate:nil 
     cancelButtonTitle:@"Thanks" 
     otherButtonTitles:nil]; 
    [alert show]; 
    [alert release]; 
} 

%end 

makefile文件包含:

include theos/makefiles/common.mk 

TWEAK_NAME = SMSTrigger 
SMSTrigger_FILES = Tweak.xm 
SMSTrigger_FRAMEWORKS = UIKIT 



include $(THEOS_MAKE_PATH)/tweak.mk 

任何幫助,非常感謝!

回答

0

我找到了一些研究的答案。對於所有想誰知道如何解決:

從rpetrich的倉庫使用跳板頭從這裏https://github.com/rpetrich/iphoneheaders

下載這些標題,並把它們在/ var /狄奧/包括。 (如果你正在開發你的iDevice)。然後在頂部的tweak.xm中輸入#import並嘗試編譯。

+0

看起來像現在已被棄用。 – 2017-03-28 06:42:56